OFFSET
1,4
LINKS
Ivan Neretin, Table of n, a(n) for n = 1..8192
EXAMPLE
Concatenate the initial 2^3 terms: {1,1,1,2,1,2,3,5} to the partial sums {1,2,3,5,6,8,11,16}
to obtain the initial 2^4 terms: {1,1,1,2,1,2,3,5, 1,2,3,5,6,8,11,16}.
MATHEMATICA
Nest[Join[#, Accumulate@#] &, {1}, 7] (* Ivan Neretin, Jan 31 2018 *)
PROG
(PARI) {a(n)=local(A=[1, 1], B=[1]); for(i=1, #binary(n)-1, B=concat(B, vector(#B, k, polcoeff(Ser(A)/(1-x), #B+k-1))); A=concat(A, B); ); A[n]}
CROSSREFS
KEYWORD
nonn,look
AUTHOR
Paul D. Hanna, May 28 2005
STATUS
approved