Introduction
A number is equal to the sum of its proper divisors when all its positive divisors smaller than itself add up to exactly the number. For example, the proper divisors of 6 are 1, 2, and 3, and their sum is 6. Such numbers are called perfect numbers. Their defining equality comes from the way their factors fit together—not from a special arithmetic trick—and it can be understood through simple examples and patterns.
What Are Proper Divisors?
A divisor of a whole number is another whole number that divides it without leaving a remainder. The divisors of 12, for instance, are 1, 2, 3, 4, 6, and 12. A proper divisor is a positive divisor smaller than the number itself, so 12’s proper divisors are 1, 2, 3, 4, and 6. The number itself is left out.
The sum of a number’s proper divisors is sometimes called its aliquot sum. A number is perfect when this sum equals the number. Thus, “perfect” has a precise mathematical meaning here; it does not mean that the number is better or more useful than other numbers.
The number 1 is a small special case. It has no positive divisors smaller than itself, so its proper-divisor sum is 0. It is therefore not perfect.
How the Equality Works
Consider 6. Its positive divisors are 1, 2, 3, and 6. Removing 6 leaves 1, 2, and 3, and adding those gives 1 + 2 + 3 = 6. The smaller factors collectively account for exactly the original number.
The same happens with 28. Its proper divisors are 1, 2, 4, 7, and 14. Their sum is 1 + 2 + 4 + 7 + 14 = 28. Neither example works because every divisor is close to the number or because the divisors are all prime. Instead, the complete set of proper factors happens to balance at the number itself.
This balance can be compared with two other possibilities. If the proper divisors add to less than the number, it is called deficient. If they add to more, it is called abundant. For example, the proper divisors of 8 are 1, 2, and 4, which total 7, so 8 is deficient. The proper divisors of 12 total 1 + 2 + 3 + 4 + 6 = 16, so 12 is abundant. Perfect numbers sit exactly between these outcomes.
Why Some Numbers Have the Right Balance
Every whole number has its own collection of divisors. A number with few factors may have too little total divisor value to reach itself; one with many useful factors may have a sum that goes beyond it. A perfect number is one for which the smaller factors, taken together, land exactly on the number.
Divisors often come in pairs. For 28, the factor pairs are 1 and 28, 2 and 14, and 4 and 7. Each pair multiplies to 28. The proper-divisor sum uses every member of these pairs except 28 itself. Pairing is a useful way to find divisors, though it does not by itself guarantee that their sum will equal the original number.
More formally, let the sum of all positive divisors of a number n be written as σ(n), the Greek letter sigma applied to n. Since the full list includes n itself, the proper-divisor sum is σ(n) − n. The perfect-number condition is therefore σ(n) − n = n, or equivalently σ(n) = 2n. In plain language, all the divisors, including the number itself, must add to twice the number.
A Formula Behind the First Perfect Numbers
The numbers 6 and 28 belong to a particularly clear family. The first examples follow the pattern:
6 = 2 × 3 = 1 × 2 × 3
28 = 4 × 7 = 1 × 2 × 4 × 7
More generally, a number of the form 2p−1(2p − 1) is perfect whenever 2p − 1 is prime. For p = 2, this gives 2 × 3 = 6. For p = 3, it gives 4 × 7 = 28. The expression 2p − 1 is called a Mersenne number; when it is prime, it is known as a Mersenne prime.
Why does this formula work? Suppose q = 2p − 1 is prime. Then the number is 2p−1q, and its divisors are formed by choosing a power of 2 from 1 through 2p−1, and either multiplying by 1 or by q. The sum of the powers of 2 is 1 + 2 + 4 + … + 2p−1 = 2p − 1 = q. Including the versions multiplied by q, the sum of all divisors is q + q² = q(q + 1). Since q + 1 = 2p, this is 2q × 2p−1, or twice the original number. The proper divisors must therefore add to the number itself.
The condition that 2p − 1 is prime matters. The formula does not say that every choice of p produces a perfect number. For instance, when p = 4, 24 − 1 = 15, which is not prime, and the resulting value is not perfect.
More Examples and the Role of Prime Numbers
Taking p = 5 gives 25 − 1 = 31, which is prime. The formula produces 24 × 31 = 496. Its proper divisors are 1, 2, 4, 8, 16, 31, 62, 124, and 248. These add to 496.
The next value of p that produces a Mersenne prime is 7: 27 − 1 = 127. The corresponding perfect number is 26 × 127 = 8128. These examples show that perfect numbers can grow quickly, even though their definition is simple.
Prime numbers matter in this pattern because their factor structure is tightly controlled. If q is prime, its only positive divisors are 1 and q. Combined with the powers of 2 in the formula, that makes the full divisor list and its sum manageable. This is one reason the prime condition leads to a clean result rather than a coincidence in a single example.
Perfect Numbers Are Not the Same as Amicable Numbers
A related idea is an amicable pair: two different numbers where the proper divisors of each add to the other. For example, the proper divisors of 220 add to 284, and the proper divisors of 284 add to 220. Each number points to its partner rather than back to itself.
A perfect number can be thought of as matching its own proper-divisor sum, while an amicable pair involves two numbers matching each other’s sums. The ideas are connected by divisor sums, but they describe different relationships. The pair 220 and 284 is not made up of perfect numbers: neither number’s proper-divisor sum equals itself.
What Is Known About Perfect Numbers?
The formula involving Mersenne primes gives a way to build even perfect numbers, and it also describes all even perfect numbers: every even perfect number has the form 2p−1(2p − 1), where 2p − 1 is prime. This is a powerful connection between two questions: finding even perfect numbers and identifying Mersenne primes.
Whether any odd perfect number exists remains an open problem in mathematics. No odd perfect number is known, but that does not prove that none exists. The formula above accounts for even perfect numbers; it does not settle the separate question about odd ones. This distinction is important: a long search that finds no example is not the same as a proof that an example is impossible.
Perfect numbers also become increasingly rare among the numbers people commonly encounter. The first few are 6, 28, 496, and 8128. Their gaps grow, but this list alone should not be treated as a proof of a general claim about how frequently perfect numbers occur. The formula explains the even cases, while the prime condition determines which exponents generate them.
How to Check a Number
To test a modest number, list its positive divisors, leave out the number itself, and add what remains. For 18, the proper divisors are 1, 2, 3, 6, and 9. Their sum is 21, so 18 is abundant, not perfect. For 15, they are 1, 3, and 5, which total 9, so 15 is deficient.
For larger numbers, factor pairs can make the task more efficient. To find the divisors of 28, check factor pairs: 1 × 28, 2 × 14, and 4 × 7. This produces every divisor without testing every integer separately. For very large numbers, prime factorization and divisor-sum formulas are more practical than listing each factor by hand.
One common counting mistake is to include the number itself in the proper-divisor sum. Another is to miss a factor pair, especially when the number has many divisors. A careful list or a check using σ(n) − n helps avoid both errors.
Conclusion
Some numbers equal the sum of their proper divisors because their smaller factors collectively add to exactly the number itself. These are perfect numbers, with 6 and 28 as the simplest examples. Their balance can be expressed as σ(n) = 2n, and every even perfect number is linked to a prime of the form 2p − 1. The pattern explains the known even cases, while the existence of odd perfect numbers remains unresolved.

