OFFSET
0,2
FORMULA
EXAMPLE
Given f(x) = 1 + x + x^4 + x^13 + x^40 + x^121 + ... so that f(x)^2 = 1 + 2x + x^2 + 2x^4 + 2x^5 + x^8 + 2*x^13 + ... then A(x) = (1 + x + x^4 + ...) + x*A(x)*(1 + 2x + x^2 + 2x^4 + 2x^5 + ...) = 1 + 2x + 4x^2 + 9x^3 + 20x^4 + 44x^5 + ...
PROG
(PARI) a(n)=local(A, m); if(n<1, 1, m=1; A=1+O(x); while(m<=2*n+1, m*=3; A=1/(1/subst(A, x, x^3)-x)); polcoeff(A, 2*n+1));
CROSSREFS
KEYWORD
nonn
AUTHOR
Paul D. Hanna, Aug 27 2003
STATUS
approved