The ancient Greeks called $6$ perfect because its smaller divisors add up to it: $1 + 2 + 3 = 6$. So does $28 = 1 + 2 + 4 + 7 + 14$. With the divisor sum $\sigma$, this becomes a clean equation, and Euclid's recipe for perfect numbers becomes a short proof.
Definitions. A positive integer $n$ is perfect when $\sigma(n) = 2n$, that is, when its proper divisors (all but $n$ itself) add up to $n$. It is deficient when $\sigma(n) < 2n$ and abundant when $\sigma(n) > 2n$.
Worked example: Three kinds
- $\sigma(12) = (1 + 2 + 4)(1 + 3) = 28 > 24$: abundant.
- $\sigma(14) = (1 + 2)(1 + 7) = 24 < 28$: deficient.
- $\sigma(28) = (1 + 2 + 4)(1 + 7) = 56 = 2 \cdot 28$: perfect.
Answer: Abundant, deficient, perfect.
Euclid's theorem. If $2^{p} - 1$ is prime, then $N = 2^{p-1}(2^{p} - 1)$ is perfect. Primes of the form $2^{p} - 1$ are called Mersenne primes.
Why it works
Worked example: Building a perfect number
- $N = 2^{6} \cdot 127 = 64 \cdot 127 = 8128$.
- Check: $\sigma(8128) = (2^{7} - 1)(127 + 1) = 127 \cdot 128 = 16{,}256 = 2 \cdot 8128$.
Answer: $8128$.
Which exponents can work? If the exponent is composite, $n = ab$ with $a, b > 1$, then $2^{a} - 1$ divides $2^{n} - 1$, because $x - 1$ divides $x^{b} - 1$ (take $x = 2^{a}$). For example $2^{6} - 1 = 63 = 7 \cdot 9$ and $2^{3} - 1 = 7$ divides it. So a Mersenne prime needs a prime exponent. But a prime exponent is not enough:
Worked example: A prime exponent that fails
- $2^{11} - 1 = 2047$. Test primes up to $\sqrt{2047} \approx 45.2$.
- $3, 5, 7, 11, 13, 17, 19$ all leave remainders. Then $2047 = 23 \cdot 89$.
Answer: No: $2047 = 23 \cdot 89$.
| $p$ | $2^{p} - 1$ | prime? | perfect number |
|---|---|---|---|
| 2 | 3 | yes | 6 |
| 3 | 7 | yes | 28 |
| 5 | 31 | yes | 496 |
| 7 | 127 | yes | 8,128 |
| 11 | 2,047 = 23 · 89 | no | — |
| 13 | 8,191 | yes | 33,550,336 |
Common mistake
Key idea