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