login
A050058
a(n) = a(n-1)+a(m), where m=n-1-2^p and 2^p<n-1<=2^(p+1), for n >= 4.
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,2
LINKS
MATHEMATICA
Fold[Append[#1, #1[[-1]] + #1[[#2]]] &, {1, 3, 1}, Flatten@Table[k, {n, 5}, {k, 2^n}]] (* Ivan Neretin, Sep 08 2015 *)
CROSSREFS
Cf. similar sequences, with different initial conditions, listed in A050034.
Sequence in context: A231818 A280633 A084614 * A144204 A048226 A049919
KEYWORD
nonn
STATUS
approved