login
This site is supported by donations to The OEIS Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A039722 a(1) = 1, a(m+1) = 2*Sum_{k=1..floor((m+1)/2)} a(k). 3
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 (list; graph; refs; listen; history; text; internal format)
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

Cf. A039721 (similar definition).

Sequence in context: A320046 A289835 A168276 * A237363 A082542 A162776

Adjacent sequences:  A039719 A039720 A039721 * A039723 A039724 A039725

KEYWORD

easy,nonn

AUTHOR

Leroy Quet, Dec 11 1999

EXTENSIONS

More terms from Michel Marcus, May 18 2014

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent | More pages
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified October 23 01:24 EDT 2018. Contains 316518 sequences. (Running on oeis4.)