OFFSET
1,2
LINKS
Paolo Xausa, Table of n, a(n) for n = 1..400
EXAMPLE
For n = 4 a(4) = 59 because:
Concatenation: 1 10 11 100
Reversed order: 00111011
And 00111011 in base 10 is 59.
MATHEMATICA
IntegerReverse[Module[{n = 1}, NestList[#*2^BitLength[++n] + n &, 1, 25]], 2] (* Paolo Xausa, Sep 30 2024 *)
PROG
(Python)
a = lambda n: int("".join(bin(x)[2:] for x in range(1, n+1))[::-1], 2)
print([a(n) for n in range(1, 22)])
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Darío Clavijo, Sep 19 2024
STATUS
approved