The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A049935 a(n) = a(1) + a(2) + ... + a(n-1) + a(m) for n >= 4, where m = 2*n - 2 - 2^(p+1) and p is the unique integer such that 2^p < n - 1 <= 2^(p+1), starting with a(1) = a(2) = a(3) = 1. 4
1, 1, 1, 4, 11, 19, 41, 97, 272, 448, 899, 1813, 3704, 7759, 16883, 39712, 111377, 183043, 366089, 732193, 1464464, 2929279, 5859923, 11725792, 23483537, 47110405, 94769960, 191737006, 392270525, 819925663, 1784477927, 4197144511 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,4
LINKS
FORMULA
a(n) = (1/2)*A049959(n) for n > 3. - Petros Hadjicostas, Apr 27 2020
MAPLE
s := proc(n) option remember; `if`(n < 1, 0, a(n) + s(n - 1)) end proc:
a := proc(n) option remember;
`if`(n < 4, [1, 1, 1][n], s(n - 1) + a(-2^ceil(log[2](n - 1)) + 2*n - 2)):
end proc:
seq(a(n), n = 1..40); \\ Petros Hadjicostas, Apr 25 2020
CROSSREFS
Cf. A049886 (similar, but with minus a(m/2)), A049887 (similar, but with minus a(m)), A049934 (similar, but with plus a(m)), A049959.
Sequence in context: A038431 A009908 A321643 * A074973 A327457 A025526
KEYWORD
nonn
AUTHOR
EXTENSIONS
Name edited by Petros Hadjicostas, Apr 25 2020
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 May 21 07:02 EDT 2024. Contains 372729 sequences. (Running on oeis4.)