OFFSET
0,3
EXAMPLE
a(18) = a(17) + a(9) + a(4) + a(2) + a(1) = 205 + 35 + 6 + 2 + 1 = 205.
PROG
(Python)
a = [0]*1000
a[1] = 1
for n in range(2, len(a)):
a[n] = a[n-1]
d = 2
while d <= n:
a[n] += a[n//d]
d *= 2
print(a)
CROSSREFS
KEYWORD
nonn
AUTHOR
Alex Ratushnyak, Mar 11 2019
STATUS
approved