OFFSET
0,4
LINKS
Harvey P. Dale, Table of n, a(n) for n = 0..1000
FORMULA
MATHEMATICA
IntegerReverse[IntegerReverse[Range[0, 80], 2]] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, Oct 03 2017 *)
PROG
(Python)
def a(n): return int(str(int(bin(n)[:1:-1], 2))[::-1])
print([a(n) for n in range(75)]) # Michael S. Branicky, Jan 30 2023
(PARI) a(n) = fromdigits(Vecrev(digits(fromdigits(Vecrev(binary(n)), 2)))); \\ Michel Marcus, Jan 30 2023
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Reinhard Zumkeller, Mar 20 2003
STATUS
approved