A050058
a(n) = a(n-1)+a(m), where m=n-1-2^p and 2^p= 4.
1, 3, 1, 2, 5, 6, 9, 10, 12, 13, 16, 17, 19, 24, 30, 39, 49, 50, 53, 54, 56, 61, 67, 76, 86, 98, 111, 127, 144, 163, 187, 217, 256, 257, 260, 261, 263, 268, 274, 283, 293, 305, 318, 334, 351, 370, 394, 424
Offset: 1
Keywords
Links
- Ivan Neretin, Table of n, a(n) for n = 1..8193
Crossrefs
Cf. similar sequences, with different initial conditions, listed in A050034.
Programs
-
Mathematica
Fold[Append[#1, #1[[-1]] + #1[[#2]]] &, {1, 3, 1}, Flatten@Table[k, {n, 5}, {k, 2^n}]] (* Ivan Neretin, Sep 08 2015 *)