NumberTheory
SumOfDivisors
sum of powers of the divisors
Calling Sequence
Parameters
Description
Examples
Compatibility
SumOfDivisors(n)
SumOfDivisors(n, k)
sigma(n)
sigma[k](n)
tau(n)
n
-
integer
k
(optional) non-negative integer; defaults to
The SumOfDivisors(n) command computes the sum of the positive divisors of n.
If n has divisors for from to , then SumOfDivisors(n, k) computes the sum of the powers of the positive divisors and is equal to .
sigma () is an alternate calling sequence for SumOfDivisors, where sigma[k](n) is equal to SumOfDivisors(n, k) and k defaults to if the index is omitted.
tau () counts the number of divisors of n. That is, tau(n) is equal to SumOfDivisors(n, 0).
Every prime number divides 0 evenly, so 0 has infinitely many prime factors. For consistency with, for example, the Divisors command, SumOfDivisors(0) returns an error, as does SumOfDivisors(0, k) for any k.
You can enter the commands sigma and tau using either the 1-D or 2-D calling sequence. For example, sigma(8) is equivalent to , sigma[2](8) is equivalent to , and tau(8) is equivalent to .
If is the prime factorization of the n, then SumOfDivisors is given by the formula if k is nonzero and by the formula if k is zero.
Error, (in NumberTheory:-SumOfDivisors) 0 has infinitely many prime factors
The NumberTheory[SumOfDivisors] command was introduced in Maple 2016.
For more information on Maple 2016 changes, see Updates in Maple 2016.
See Also
NumberTheory[Divisors]
Download Help Document