DivisorSigma

Divisor function (SymPy, WMA)


DivisorSigma[k, n]

returns $\sigma_k(n)$

For reference, let us first get the integer divisors of 20:

The DivisorSigma function counts this sum:

This is the same thing as:

To get a sum of the second power of the factors of 20:

Doing this with DivisorSum instead:

See also DivisorSum and Divisors.

ContinuedFraction
DivisorSum