OFFSET
0,4
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..2500
FORMULA
EXAMPLE
G.f. = x + x^2 + 2*x^3 + 2*x^4 + 3*x^5 + 4*x^6 + 5*x^7 + 6*x^8 + 7*x^9 + ...
MATHEMATICA
a[ n_] := If[ n < 0, 0, Module[{A = 0}, Do[A = (x + (1 + x) (A /. x -> x^2)) / (1 - x^2), {IntegerLength[ n, 2]}]; SeriesCoefficient[ A, {x, 0, n}]]];
PROG
(PARI) {a(n) = my(A = O(x)); if( n<0, 0, for(k=1, #binary(n), A = (x + (1 + x) * subst(A, x, x^2)) / (1 - x^2)); polcoeff(A, n))};
(PARI) {a(n) = if( n<0, 0, polcoeff( sum(k=0, #binary(n\3), x^(2^k*3 \ 2) / prod(j=0, k, 1 - x^2^j), x * O(x^n)), n))};
CROSSREFS
KEYWORD
nonn
AUTHOR
Michael Somos, May 19 2014
STATUS
approved