OFFSET
1,3
FORMULA
E.g.f.: Sum_{k>=1} -(-x)^k / (k! + (-x)^k).
a(p) = p! + 1, where p is odd prime.
MATHEMATICA
a[n_] := n! Sum[(-1)^(n - d)/(n/d)!^d, {d, Divisors[n]}]; Table[a[n], {n, 1, 22}]
nmax = 22; CoefficientList[Series[Sum[-(-x)^k/(k! + (-x)^k), {k, 1, nmax}], {x, 0, nmax}], x] Range[0, nmax]! // Rest
PROG
(PARI) a(n) = n!*sumdiv(n, d, (-1)^(n-d)/(n/d)!^d); \\ Michel Marcus, Sep 19 2019
CROSSREFS
KEYWORD
nonn
AUTHOR
Ilya Gutkovskiy, Sep 17 2019
STATUS
approved