OFFSET
0,3
LINKS
Harvey P. Dale, Table of n, a(n) for n = 0..80
EXAMPLE
Binary representations:
a(0): 0;
a(1): 1;
a(2): 1011;
a(3): 10110111;
a(4): 1011011101111;
a(5): 1011011101111011111;
a(6): 10110111011110111110111111;
a(7): 1011011101111011111011111101111111;
a(8): 1011011101111011111011111101111111011111111, etc.
MATHEMATICA
nxt[{n_, a_}]:={n+1, FromDigits[Join[IntegerDigits[a, 2], PadRight[{0}, n+2, 1]], 2]}; NestList[nxt, {0, 0}, 15][[All, 2]] (* Harvey P. Dale, Feb 11 2023 *)
PROG
(Python)
a = 0
for n in range(1, 10):
print(a, end=', ')
a = a*(2**(n+1)) + 2**n - 1
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Alex Ratushnyak, Aug 05 2012
STATUS
approved