OFFSET
1,3
FORMULA
G.f.: Sum_{k>=1} k!*x^k/(1 + x^k).
a(n) ~ n!. - Vaclav Kotesovec, Nov 13 2018
MATHEMATICA
Table[Sum[(-1)^(n/d + 1) d!, {d, Divisors[n]}], {n, 22}]
nmax = 22; Rest[CoefficientList[Series[Sum[k! x^k/(1 + x^k), {k, 1, nmax}], {x, 0, nmax}], x]]
PROG
(PARI) a(n) = sumdiv(n, d, (-1)^(n/d+1)*d!); \\ Michel Marcus, Nov 12 2018
CROSSREFS
KEYWORD
nonn
AUTHOR
Ilya Gutkovskiy, Nov 12 2018
STATUS
approved