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

 

Logo

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 60th year, we have over 367,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

Other ways to Give
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A049961 a(n) = a(1) + a(2) + ... + a(n-1) + a(m) for n >= 3, where m = 2^(p+1) + 2 - n and p is the smallest number such that 2^p < n - 1 <= 2^(p+1), starting with a(1) = 1 and a(2) = 2. 0
1, 2, 4, 9, 17, 42, 79, 156, 311, 777, 1477, 2917, 5809, 11610, 23215, 46428, 92855, 232137, 441061, 870517, 1735233, 3467574, 6933708, 13866716, 27732966, 55465777, 110931477, 221862917, 443725809, 887451610, 1774903215 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
MAPLE
s:= proc(n) option remember; `if`(n < 1, 0, a(n) + s(n - 1)) end proc:
a := proc(n) option remember;
`if`(n < 3, [1, 2][n], s(n - 1) + a(2^ceil(log[2](n - 1)) + 2 - n)):
end proc:
seq(a(n), n = 1..40); # Petros Hadjicostas, Nov 12 2019
CROSSREFS
Sequence in context: A059973 A030035 A123431 * A321736 A283315 A024425
KEYWORD
nonn
AUTHOR
EXTENSIONS
Name edited by Petros Hadjicostas, Nov 12 2019
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 December 11 11:45 EST 2023. Contains 367725 sequences. (Running on oeis4.)