login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

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