OFFSET
1,3
FORMULA
MATHEMATICA
a[n_] := Sum[(k - 1)^n * Sum[j^n, {j, 1, Floor[n/k]}], {k, 1, n}]; Array[a, 18] (* Amiram Eldar, Jul 30 2022 *)
PROG
(PARI) a(n) = sum(k=1, n, (k-1)^n*sum(j=1, n\k, j^n));
(PARI) a(n) = sum(k=1, n, k^n*(sigma(k, 0)-(n\k)^n));
(PARI) a(n) = sum(k=1, n, k^n*sumdiv(k, d, (1-1/d)^n));
CROSSREFS
KEYWORD
nonn
AUTHOR
Seiichi Manyama, Jul 30 2022
STATUS
approved