OFFSET
1,2
LINKS
Rémy Sigrist, Table of n, a(n) for n = 1..10000
EXAMPLE
The first terms, alongside their binary representation, are:
n a(n) binary(a(n))
-- ---- ------------
1 1 1
2 2 10
3 9 1001
4 4 100
5 5 101
6 18 10010
7 21 10101
8 8 1000
9 9 1001
10 10 1010
11 33 100001
12 36 100100
13 65 1000001
14 42 101010
15 165 10100101
16 16 10000
17 17 10001
18 18 10010
19 133 10000101
20 20 10100
PROG
(PARI) a(n) = forstep (k=1, oo, 2, if (bitand(k*n, 2*k*n)==0, return (k*n)))
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Rémy Sigrist, Mar 14 2018
STATUS
approved