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”).

A359883
a(n) = Sum_{d|n} d^(n-d) * (n/d)^d.
0
1, 3, 4, 21, 6, 367, 8, 5129, 19693, 106411, 12, 9590989, 14, 105614223, 2439477016, 8590983185, 18, 1788338285659, 20, 44174380774421, 1483406745548512, 584318428289047, 24, 2300697575522919961, 298023223876953151, 2481152876039086107
OFFSET
1,2
FORMULA
a(n) = [x^n] Sum_{k>0} (n * x / k)^k / (1 - (k * x)^k).
If p is prime, a(p) = 1 + p.
MATHEMATICA
a[n_] := DivisorSum[n, #^(n-#) * (n/#)^# &]; Array[a, 30] (* Amiram Eldar, Aug 09 2023 *)
PROG
(PARI) a(n) = sumdiv(n, d, d^(n-d)*(n/d)^d);
CROSSREFS
Cf. A359882.
Sequence in context: A197410 A308689 A339482 * A032830 A225478 A254884
KEYWORD
nonn
AUTHOR
Seiichi Manyama, Jan 16 2023
STATUS
approved