OFFSET
0,3
LINKS
Rémy Sigrist, C++ program
FORMULA
a(2^k) = 2^k for any k >= 0.
EXAMPLE
The first terms, alongside their binary expansions, are:
n a(n) bin(a(n))
-- ---- ---------
0 0 0
1 1 1
2 2 10
3 9 1001
4 4 100
5 33 100001
6 18 10010
7 5 101
8 8 1000
9 17 10001
10 66 1000010
11 25 11001
12 36 100100
13 65 1000001
14 10 1010
15 37 100101
PROG
(C++) See Links section.
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Rémy Sigrist, Apr 08 2022
STATUS
approved