OFFSET
1,4
FORMULA
a(1) = 1; a(n+1) = Sum_{k=1..n} (-1)^(n-k)*binomial(n,k) * Sum_{d|k} a(d).
MATHEMATICA
terms = 28; A[_] = 0; Do[A[x_] = x (1 + 1/(1 + x) Sum[A[x^k/(1 + x)^k], {k, 1, terms}]) + O[x]^(terms + 1) // Normal, terms + 1]; Rest[CoefficientList[A[x], x]]
a[n_] := a[n] = Sum[(-1)^(n - k - 1) Binomial[n - 1, k] Sum[a[d], {d, Divisors[k]}], {k, 1, n - 1}]; a[1] = 1; Table[a[n], {n, 1, 28}]
CROSSREFS
KEYWORD
sign
AUTHOR
Ilya Gutkovskiy, May 09 2019
STATUS
approved