OFFSET
0,1
LINKS
Harvey P. Dale, Table of n, a(n) for n = 0..1000
EXAMPLE
2 = 10 in binary, is rewritten as 1100 so a(2)=12.
4 = 100 in binary, is rewritten as 1100100 which is 100 as decimal number, thus a(4)=100.
5 = 101 in binary, is rewritten as 11001, 25 in binary, thus a(5)=25.
MATHEMATICA
Table[FromDigits[Flatten[IntegerDigits[n, 2]/.(0->{1, 0, 0})], 2], {n, 0, 80}] (* Harvey P. Dale, Aug 19 2021 *)
PROG
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Antti Karttunen, Mar 02 2003
STATUS
approved