OFFSET
0,4
COMMENTS
LINKS
Rémy Sigrist, Table of n, a(n) for n = 0..10000
Rémy Sigrist, Colored logarithmic scatterplot of the first 1000000 terms (where the color is function of A070939(n * a(n)))
EXAMPLE
The first terms, alongside the binary representation of n * a(n), are:
n a(n) bin(n * a(n))
-- ---- -------------
0 1 0
1 1 1
2 1 10
3 3 1001
4 1 100
5 1 101
6 3 10010
7 3 10101
8 1 1000
9 1 1001
10 1 1010
11 3 100001
12 3 100100
13 5 1000001
14 3 101010
15 11 10100101
16 1 10000
17 1 10001
18 1 10010
19 7 10000101
20 1 10100
PROG
(PARI) a(n) = forstep (k=1, oo, 2, if (bitand(k*n, 2*k*n)==0, return (k)))
CROSSREFS
KEYWORD
AUTHOR
Rémy Sigrist, Mar 14 2018
STATUS
approved