OFFSET
0,2
COMMENTS
LINKS
MATHEMATICA
Table[FromDigits[Flatten[IntegerDigits[n, 2]/.(1->{1, 0})], 2], {n, 0, 60}] (* Harvey P. Dale, May 20 2021 *)
PROG
(Haskell)
a124108 0 = 0
a124108 x = 2 * (b + 1) * a124108 x' + (b * 2)
where (x', b) = divMod x 2
-- Reinhard Zumkeller, Mar 31 2015
CROSSREFS
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Nov 26 2006
EXTENSIONS
Offset fixed by Reinhard Zumkeller, Mar 31 2015
STATUS
approved