Number Theory
Advanced

Sum of Divisors

Sum of all divisors from prime factorization.

Formula

σ(n)=piai+11pi1\sigma(n) = \prod \frac{p_i^{a_i+1}-1}{p_i - 1}

Variables

p_iPrimes
a_iExponents

Example

Related to perfect numbers

Did You Know?

The sum-of-divisors function unlocks the ancient mystery of perfect and amicable numbers.