OFFSET
0,3
LINKS
Paul D. Hanna, Table of n, a(n) for n = 0..300
EXAMPLE
G.f.: A(x) = 1 + x + 3*x^2 + 2*x^3 + 5*x^4 - 2*x^5 + 3*x^6 - 20*x^7 +...
Related series:
A(x)/A(-x) = 1 + 2*x + 2*x^2 - 2*x^4 - 12*x^5 - 20*x^6 - 38*x^7 - 38*x^8 +...
A(x)*A(-x) = 1 + 5*x^2 + 15*x^4 + 36*x^6 + 87*x^8 + 320*x^10 + 1567*x^12 +...
MATHEMATICA
terms = 37; A[_] = 1; Do[A[x_] = 1 + x*A[x]/A[-x] + x^2*A[x]*A[-x] + O[x]^terms // Normal, terms]; CoefficientList[A[x], x] (* Jean-François Alcover, Jan 09 2018 *)
PROG
(PARI) {a(n)=local(A=1+x); for(i=1, n, A=1+x*A/subst(A, x, -x+x*O(x^n))+x^2*A*subst(A, x, -x+x*O(x^n))); polcoeff(A, n)}
for(n=0, 40, print1(a(n), ", "))
CROSSREFS
KEYWORD
sign
AUTHOR
Paul D. Hanna, Mar 09 2012
STATUS
approved