OFFSET
1,3
FORMULA
G.f.: x + x^2 * Product_{n>=1} (1 + x^n)^(2*a(n)).
a(n+2) = (2/n) * Sum_{k=1..n} ( Sum_{d|k} (-1)^(k/d+1) * d * a(d) ) * a(n-k+2).
MATHEMATICA
nmax = 32; A[_] = 0; Do[A[x_] = x + x^2 Exp[2 Sum[(-1)^(k + 1) A[x^k]/k, {k, 1, nmax}]] + O[x]^(nmax + 1) // Normal, nmax + 1]; CoefficientList[A[x], x] // Rest
a[1] = a[2] = 1; a[n_] := a[n] = (2/(n - 2)) Sum[Sum[(-1)^(k/d + 1) d a[d], {d, Divisors[k]}] a[n - k], {k, 1, n - 2}]; Table[a[n], {n, 1, 32}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Ilya Gutkovskiy, Jun 11 2021
STATUS
approved