login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A070992 Partial sums of A002487. 0
1, 3, 4, 7, 9, 12, 13, 17, 20, 25, 27, 32, 35, 39, 40, 45, 49, 56, 59, 67, 72, 79, 81, 88, 93, 101, 104, 111, 115, 120, 121, 127, 132, 141, 145, 156, 163, 173, 176, 187, 195, 208, 213, 225, 232, 241, 243, 252, 259, 271, 276, 289, 297, 308, 311, 321, 328, 339, 343, 352, 357 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,2
LINKS
FORMULA
a(2n) = a(n-2)+2a(n-1)+2, a(2n+1) = 2a(n-1)+a(n)+2. - Ralf Stephan, Oct 08 2003
PROG
(PARI) a(n)=if(n<2, if(n<1, 1, 3), if(n%2==0, if(n==2, 4, a(n/2-2)+2*a(n/2-1)+2), 2*a((n-3)/2)+a((n-1)/2)+2))
CROSSREFS
Sequence in context: A329963 A198772 A185256 * A246514 A060142 A049844
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, May 24 2002
STATUS
approved

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified August 17 19:02 EDT 2024. Contains 375227 sequences. (Running on oeis4.)