OFFSET
0,2
COMMENTS
Partial sums of A023359.
LINKS
MAPLE
a:= proc(n) option remember; 1+
`if`(n>0, add(a(n-2^i), i=0..ilog2(n)), 0)
end:
seq(a(n), n=0..50); # Alois P. Heinz, Apr 28 2018
MATHEMATICA
nmax = 38; CoefficientList[Series[1/((1 - x) (1 - Sum[x^2^k, {k, 0, nmax}])), {x, 0, nmax}], x]
a[0] = 1; a[n_] := a[n] = Sum[Boole[k == 2^IntegerExponent[k, 2]] a[n - k], {k, 1, n}]; Accumulate[Table[a[n], {n, 0, 38}]]
CROSSREFS
KEYWORD
nonn
AUTHOR
Ilya Gutkovskiy, Apr 28 2018
STATUS
approved