OFFSET
1,3
FORMULA
E.g.f.: Sum_{k>0} (1 - exp(-x^k))/k.
E.g.f.: Sum_{k>0} (-1)^k * log(1-x^k)/k!.
If p is an odd prime, a(p) = 1 + (p-1)!.
MATHEMATICA
a[n_] := (n-1)! * DivisorSum[n, (-1)^(#+1)/(#-1)! &]; Array[a, 25] (* Amiram Eldar, Jul 03 2023 *)
PROG
(PARI) a(n) = (n-1)!*sumdiv(n, d, (-1)^(d+1)/(d-1)!);
CROSSREFS
KEYWORD
sign
AUTHOR
Seiichi Manyama, Jun 18 2023
STATUS
approved