OFFSET
1,3
COMMENTS
If p is prime, a(p) = Sum_{d|p} (p-d)^tau(p/d) = (p-1)^2 + 0^1 = (p-1)^2.
EXAMPLE
a(10) = Sum_{d|10} (10-d)^tau(10/d) = 9^4 + 8^2 + 5^2 + 0^1 = 6650.
MATHEMATICA
Table[Sum[(n - k)^DivisorSigma[0, n/k] (1 - Ceiling[n/k] + Floor[n/k]), {k, n}], {n, 50}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Wesley Ivan Hurt, Jun 12 2021
STATUS
approved