OFFSET
1,2
FORMULA
a(n) = Sum_{d|n} (n/d)^(n-n/d) * binomial(d+1,2).
MATHEMATICA
a[n_] := DivisorSum[n, (n/#)^(n-n/#) * Binomial[# + 1, 2] &]; Array[a, 30] (* Amiram Eldar, Jul 18 2023 *)
PROG
(PARI) a(n) = sumdiv(n, d, (n/d)^(n-n/d)*binomial(d+1, 2));
CROSSREFS
KEYWORD
nonn
AUTHOR
Seiichi Manyama, Jun 13 2023
STATUS
approved