OFFSET
0,4
LINKS
Paul D. Hanna, Table of n, a(n) for n = 0..1000
EXAMPLE
A(x)^4 = 1 + 4*x + 2*x^2 - x^4 + 2*x^6 - 5*x^8 + 12*x^10 - 30*x^12 +...
A(x^2)^2 = 1 + 2*x^2 - x^4 + 2*x^6 - 5*x^8 + 12*x^10 - 30*x^12 +...
MATHEMATICA
nmin = 0; nmax = 30; sol = {a[0] -> 1};
Do[A[x_] = Sum[a[k] x^k, {k, 0, n}] /. sol; eq = CoefficientList[A[x]^4 - A[x^2]^2 - 4x + O[x]^(n+1), x][[2;; ]] == 0 /. sol; sol = sol ~Join~ Solve[eq][[1]], {n, 2, nmax}];
a /@ Range[nmin, nmax] /. sol (* Jean-François Alcover, Nov 07 2019 *)
PROG
(PARI) {a(n)=local(A=1+x); for(i=1, n, A=(subst(A, x, x^2)^2+4*x+x*O(x^n))^(1/4)); polcoeff(A, n, x)}
for(n=0, 40, print1(a(n), ", "))
CROSSREFS
KEYWORD
sign
AUTHOR
Paul D. Hanna, May 11 2005
STATUS
approved