OFFSET
1,2
LINKS
Michael De Vlieger, Table of n, a(n) for n = 1..10000
FORMULA
a(1)=1, a(2)=2, a(2m+1)=a(2m), a(2m+2)=a(2m+1)+2a(m+1) {m is a positive integer.}
EXAMPLE
a(6) = 2*(a(1)+a(2)+a(3)) = 2*(1+2+2) = 10.
MATHEMATICA
Fold[Append[#1, 2 Total[#1[[Range[Floor[#2/2] ] ]] ] ] &, {1}, Range[2, 52]] (* Michael De Vlieger, Dec 11 2017 *)
PROG
(PARI) lista(nn) = {v = vector(nn); v[1] = 1; for (n=2, nn, v[n] = 2*sum(k=1, n\2, v[k]); ); v; } \\ Michel Marcus, May 18 2014
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Leroy Quet, Dec 11 1999
EXTENSIONS
More terms from Michel Marcus, May 18 2014
STATUS
approved