OFFSET
0,3
COMMENTS
This sequence is a binary variant of A341679; here we look for a term whose binary 1's match those of n, there we look for a term that divides n.
LINKS
Rémy Sigrist, Table of n, a(n) for n = 0..8191
Rémy Sigrist, C program for A341691
FORMULA
EXAMPLE
The first terms, alongside the corresponding value of k, are:
n a(n) k
-- ---- ---
0 0 N/A
1 1 0
2 2 0
3 1 2
4 4 0
5 1 4
6 2 4
7 5 6
8 8 0
9 1 8
PROG
(C) See Links section.
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Rémy Sigrist, Feb 17 2021
STATUS
approved