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

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A049913 a(n) = a(1) + a(2) + ... + a(n-1) - a(m) for n >= 4, where m = 2^(p+1) + 2 - n and p is the unique integer such that 2^p < n - 1 <= 2^(p+1), starting with a(1) = 1, a(2) = 2, and a(3) = 4. 2
 1, 2, 4, 5, 11, 18, 37, 76, 153, 231, 501, 1021, 2049, 4104, 8209, 16420, 32841, 49263, 106737, 217579, 437213, 875454, 1751428, 3503126, 7006330, 14012737, 28025513, 56051045, 112102097, 224204200, 448408401, 896816804, 1793633609 (list; graph; refs; listen; history; text; internal format)
 OFFSET 1,2 LINKS Table of n, a(n) for n=1..33. 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, 2, 4][n], s(n - 1) - a(2^ceil(log[2](n - 1)) + 2 - n)): end proc: seq(a(n), n = 1..34); # Petros Hadjicostas, Nov 12 2019 CROSSREFS Sequence in context: A352255 A192581 A095023 * A223220 A113058 A066145 Adjacent sequences: A049910 A049911 A049912 * A049914 A049915 A049916 KEYWORD nonn AUTHOR Clark Kimberling 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.

Last modified September 16 18:48 EDT 2024. Contains 375977 sequences. (Running on oeis4.)