OFFSET
1,2
FORMULA
G.f.: x / Product_{n>=1} (1 + x^n)^(2*a(n)).
a(n+1) = (2/n) * Sum_{k=1..n} ( Sum_{d|k} (-1)^(k/d) * d * a(d) ) * a(n-k+1).
MAPLE
a:= proc(n) option remember; `if`(n=1, 1, 2*add(a(n-k)*add(d*a(d)
*(-1)^(k/d), d=numtheory[divisors](k)), k=1..n-1)/(n-1))
end:
seq(a(n), n=1..25); # Alois P. Heinz, Jun 28 2021
MATHEMATICA
nmax = 25; A[_] = 0; Do[A[x_] = x Exp[2 Sum[(-1)^k A[x^k]/k, {k, 1, nmax}]] + O[x]^(nmax + 1) // Normal, nmax + 1]; CoefficientList[A[x], x] // Rest
a[1] = 1; a[n_] := a[n] = (2/(n - 1)) Sum[Sum[(-1)^(k/d) d a[d], {d, Divisors[k]}] a[n - k], {k, 1, n - 1}]; Table[a[n], {n, 1, 25}]
CROSSREFS
KEYWORD
sign
AUTHOR
Ilya Gutkovskiy, Jun 28 2021
STATUS
approved