In Mathematica,DivisorSigma[k,n] calculates the sum of the powers of the divisors of . For example, you can use DivisorSigma[0,n] in order to determine the number of divisors of the integer and DivisorSigma[1,n] to determine the sum of these divisors. This Demonstration allows you to visualize the results of applying DivisorSigma to various ranges of integers.

When Gaussian integers are selected, the Demonstration returns a plot of the absolute values of DivisorSigma, since the result may be complex.