MathorynMathematical Formula Database

Number Theory

Sum of Divisors

The sum of all positive divisors of nn follows from its prime factorisation. It is used to study perfect numbers, where σ(n)=2n\sigma(n)=2n.

σ(n)=∏i=1kpi ei+1−1pi−1\sigma(n)=\prod_{i=1}^{k}\frac{p_i^{\,e_i+1}-1}{p_i-1}
LaTeX\sigma(n)=\prod_{i=1}^{k}\frac{p_i^{\,e_i+1}-1}{p_i-1}

Variables

σ(n)\sigma(n)
sum of positive divisors
pi, eip_i,\ e_i
primes and exponents of n

Example

Find σ(12)\sigma(12).

  1. 12=22⋅312=2^2\cdot3.
  2. 23−11⋅32−12=7⋅4\frac{2^3-1}{1}\cdot\frac{3^2-1}{2}=7\cdot4.

Answer: 2828 (1+2+3+4+6+121+2+3+4+6+12).

Related formulas