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!)
A050066 a(n) = a(n-1) + a(m) for n >= 4, where m = n - 1 - 2^p and p is the unique integer such that 2^p < n - 1 <= 2^(p+1), starting with a(1) = 1 and a(2) = a(3) = 3. 4
1, 3, 3, 4, 7, 8, 11, 14, 18, 19, 22, 25, 29, 36, 44, 55, 69, 70, 73, 76, 80, 87, 95, 106, 120, 138, 157, 179, 204, 233, 269, 313, 368, 369, 372, 375, 379, 386, 394, 405, 419, 437, 456, 478, 503, 532, 568, 612 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
MAPLE
a := proc(n) option remember;
`if`(n < 4, [1, 3, 3][n], a(n - 1) + a(-2^ceil(-1+log[2](n - 1)) + n - 1)):
end proc:
seq(a(n), n = 1..40); #
MATHEMATICA
Fold[Append[#1, #1[[-1]] + #1[[#2]]] &, {1, 3, 3}, Flatten@Table[k, {n, 5}, {k, 2^n}]] (* Ivan Neretin, Sep 08 2015 *)
CROSSREFS
Cf. similar sequences with different initial conditions listed in A050034.
Sequence in context: A091973 A328798 A327726 * A050064 A137894 A087329
KEYWORD
nonn
AUTHOR
EXTENSIONS
Name edited by Petros Hadjicostas, Nov 18 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 July 13 07:05 EDT 2024. Contains 374267 sequences. (Running on oeis4.)