OFFSET
0,4
LINKS
David F. Marrs, Table of n, a(n) for n = 0..10000
EXAMPLE
11 is 1011 in binary, and reversing it gives 1101 = a(11).
MAPLE
a:= n-> parse(cat(convert(n, base, 2)[])):
seq(a(n), n=0..75); # Alois P. Heinz, Jun 17 2018
MATHEMATICA
Table[FromDigits@ Reverse@ IntegerDigits[n, 2], {n, 0, 50}]
PROG
(PARI) a(n) = fromdigits(Vecrev(digits(n, 2)), 10);
(Python) print(0)
for i in range(1, 50):
print(format(i, 'b')[::-1].strip("0"))
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
David F. Marrs, Jun 16 2018
STATUS
approved