OFFSET
1,2
LINKS
Michael De Vlieger, Table of n, a(n) for n = 1..10000
FORMULA
a(p^k) = p^k * (p^(k+1) - p*(k+1) + k) / (p-1), where p is prime and k is a positive integer.
a(n) = n*sigma(n) - n*tau(n) = n*A065608(n). - Ridouane Oudra, Apr 11 2024
EXAMPLE
a(6) = 48; The proper divisors of 6 are 1, 2 and 3. We have (6/1)*(6-1) + (6/2)*(6-2) + (6/3)*(6-3) = 30 + 12 + 6 = 48.
MAPLE
with(numtheory): seq(n*sigma(n) - n*tau(n), n=1..100); # Ridouane Oudra, Apr 11 2024
MATHEMATICA
Table[Sum[(n/i) (n-i) (1 - Ceiling[n/i] + Floor[n/i]), {i, n-1}], {n, 80}]
PROG
(PARI) a(n)={sumdiv(n, d, (n-d)*n/d)} \\ Andrew Howroyd, Apr 28 2020
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Wesley Ivan Hurt, Apr 28 2020
STATUS
approved