login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A039722
a(1) = 1, a(m+1) = 2*Sum_{k=1..floor((m+1)/2)} a(k).
4
1, 2, 2, 6, 6, 10, 10, 22, 22, 34, 34, 54, 54, 74, 74, 118, 118, 162, 162, 230, 230, 298, 298, 406, 406, 514, 514, 662, 662, 810, 810, 1046, 1046, 1282, 1282, 1606, 1606, 1930, 1930, 2390, 2390, 2850, 2850, 3446, 3446, 4042, 4042, 4854, 4854, 5666, 5666, 6694
OFFSET
1,2
LINKS
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
Cf. A039721 (similar definition).
Sequence in context: A320046 A289835 A168276 * A237363 A082542 A162776
KEYWORD
easy,nonn
AUTHOR
Leroy Quet, Dec 11 1999
EXTENSIONS
More terms from Michel Marcus, May 18 2014
STATUS
approved