OFFSET
0,2
COMMENTS
Equals the self-convolution of A093636.
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..450
EXAMPLE
( (1+x)(1+2x^2)(1+5x^3)(1+18x^4) )^2 = 1+2x+5x^2+18x^3+...
MAPLE
A:= proc(n) option remember; local i, p, q; if n=0 then 1 else
p, q:= A(n-1), 1; for i from 0 to n-1 do q:= convert(
series(q*(1+coeff(p, x, i)*x^(i+1))^2, x, n+1), polynom)
od: q fi
end:
a:= n-> coeff(A(n), x, n):
seq(a(n), n=0..30); # Alois P. Heinz, Aug 01 2013
MATHEMATICA
a[n_] := a[n] = SeriesCoefficient[Product[(1+a[i]*x^(i+1))^2, {i, 0, n-1}], {x, 0, n}];
a /@ Range[0, 30] (* Jean-François Alcover, Nov 02 2020, after PARI *)
PROG
(PARI) a(n) =polcoeff(prod(i=0, n-1, (1+a(i)*x^(i+1))^2)+x*O(x^n), n)
CROSSREFS
KEYWORD
nonn
AUTHOR
Paul D. Hanna, Apr 07 2004
STATUS
approved