|
|
A356486
|
|
a(n) = (n-1)! * Sum_{d|n} d^n / (d-1)!.
|
|
2
|
|
|
1, 5, 29, 358, 3149, 98196, 824263, 73122736, 784270089, 158028202000, 285315299411, 855386690484096, 302875585593853, 5876921233326141376, 111916280261483009775, 73985874496557113890816, 827240282809126652177, 1625215094103508198780449024
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,2
|
|
LINKS
|
|
|
FORMULA
|
If p is prime, a(p) = p^p + (p-1)!.
E.g.f.: -Sum_{k>0} log(1 - (k * x)^k)/k!.
|
|
MATHEMATICA
|
a[n_] := (n-1)! * DivisorSum[n, #^n / (#-1)! &]; Array[a, 18] (* Amiram Eldar, Aug 30 2023 *)
|
|
PROG
|
(PARI) a(n) = (n-1)!*sumdiv(n, d, d^n/(d-1)!);
(PARI) my(N=20, x='x+O('x^N)); Vec(serlaplace(-sum(k=1, N, log(1-(k*x)^k)/k!)))
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|