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