OFFSET
1,2
COMMENTS
If p is prime, a(p) = Sum_{d|p} p^tau(d) = p^1 + p^2 = p*(p + 1).
LINKS
Seiichi Manyama, Table of n, a(n) for n = 1..10000
EXAMPLE
a(10) = Sum_{d|10} 10^tau(d) = 10^1 + 10^2 + 10^2 + 10^4 = 10210.
MATHEMATICA
Table[Sum[n^DivisorSigma[0, k] (1 - Ceiling[n/k] + Floor[n/k]), {k, n}], {n, 50}]
PROG
(PARI) a(n) = sumdiv(n, d, n^numdiv(d)); \\ Michel Marcus, Oct 08 2021
CROSSREFS
KEYWORD
nonn
AUTHOR
Wesley Ivan Hurt, Jun 12 2021
STATUS
approved