login
A358389
a(n) = n * Sum_{d|n} (d + n/d - 2)!/d!.
3
1, 3, 7, 29, 121, 745, 5041, 40425, 362917, 3629411, 39916801, 479006233, 6227020801, 87178326495, 1307674369891, 20922790211057, 355687428096001, 6402373709009185, 121645100408832001, 2432902008212933061, 51090942171709581289, 1124000727778046764823
OFFSET
1,2
LINKS
FORMULA
G.f.: Sum_{k>0} k! * (x/(1 - x^k))^k.
If p is prime, a(p) = 1 + p!.
MATHEMATICA
Table[n*DivisorSum[n, ((# + n/# - 2)!)/(#!) &], {n, 22}] (* Michael De Vlieger, Nov 13 2022 *)
PROG
(PARI) a(n) = n*sumdiv(n, d, (d+n/d-2)!/d!);
(PARI) my(N=30, x='x+O('x^N)); Vec(sum(k=1, N, k!*(x/(1-x^k))^k))
CROSSREFS
Sequence in context: A363208 A088095 A333392 * A358279 A217576 A173280
KEYWORD
nonn,easy
AUTHOR
Seiichi Manyama, Nov 13 2022
STATUS
approved