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!)
A062188 a(n+1) = a(n) + a(floor(n/2)), with a(0)=0, a(1)=1. 4
0, 1, 1, 2, 3, 4, 5, 7, 9, 12, 15, 19, 23, 28, 33, 40, 47, 56, 65, 77, 89, 104, 119, 138, 157, 180, 203, 231, 259, 292, 325, 365, 405, 452, 499, 555, 611, 676, 741, 818, 895, 984, 1073, 1177, 1281, 1400, 1519, 1657, 1795, 1952, 2109, 2289, 2469, 2672, 2875, 3106 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,4
LINKS
FORMULA
G.f. A(x) satisfies: A(x) = x * (1 + (1 + x)*A(x^2))/(1 - x). - Ilya Gutkovskiy, May 04 2019
EXAMPLE
a(6) = a(5)+a(2) = 4+1 = 5.
a(7) = a(6)+a(3) = 5+2 = 7.
MATHEMATICA
Join[{0}, Nest[Append[#, #[[-1]] + #[[Quotient[Length@#, 2]]]] &, {1, 1}, 53]] (* Ivan Neretin, Mar 03 2016 *)
PROG
(Magma) [n le 2 select n-1 else Self(n-1)+Self(Floor(n/2)): n in [1..60]]; // Vincenzo Librandi, Mar 03 2016
(Python)
from itertools import islice
from collections import deque
def A062188_gen(): # generator of terms
aqueue, f, b, a = deque([1]), True, 0, 1
yield from (0, 1)
while True:
a += b
yield a
aqueue.append(a)
if f: b = aqueue.popleft()
f = not f
A062188_list = list(islice(A062188_gen(), 40)) # Chai Wah Wu, Jun 08 2022
CROSSREFS
Sequence in context: A304632 A306385 A039853 * A122129 A280909 A003413
KEYWORD
nonn
AUTHOR
Henry Bottomley, Jun 13 2001
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 April 24 22:17 EDT 2024. Contains 371964 sequences. (Running on oeis4.)