Goldilocks liked her porridge "just right". Some numbers are the same: not too much, not too little, but exactly right.
Let's start with the divisors of 6. These are the numbers that divide into 6 with nothing left over:
1, 2, 3 and 6
Now leave out 6 itself (we call what's left the proper divisors) and add them up:
1 + 2 + 3 = 6
The proper divisors of 6 add up to... 6 itself! That's no coincidence. It makes 6 a perfect number.
Too Generous, Too Stingy, Just Right
Try the same thing with a few other numbers:
8: proper divisors are 1, 2, 4. Sum = 7. That's less than 8.
12: proper divisors are 1, 2, 3, 4, 6. Sum = 16. That's more than 12.
6: proper divisors are 1, 2, 3. Sum = 6. Exactly right!
Mathematicians have names for these three kinds of number:
Deficient (too stingy): the proper divisors add up to less than the number. Example: 8.
Abundant (too generous): the proper divisors add up to more than the number. Example: 12.
Perfect (just right): the proper divisors add up to exactly the number. Example: 6.
Every prime number is deficient, by the way. A prime has only one proper divisor, 1, which is less than the prime.
Stop and Think
The puzzle: There is another perfect number somewhere between 7 and 30. Can you find it?
Hint 1: You don't have to check every number. Perfect numbers are rare!
Hint 2: Abundant numbers up to 30 include 12, 18, 20 and 24. Try the even numbers near the end of the range.
Hint 3: Look at 28. What are its divisors?
The Reveal
28: proper divisors are 1, 2, 4, 7, 14
1 + 2 + 4 + 7 + 14 = 28
28 is perfect too! Between 1 and 30 there are exactly two perfect numbers: 6 and 28. (We checked every number by computer. The abundant ones up to 30 are 12, 18, 20, 24 and 30. All the others are deficient.)
They Get Rare Very Fast
Here are the first five perfect numbers:
6
28
496
8,128
33,550,336
Nothing else turns up for a very long way. We searched every number up to 40 million on a computer, and these five were the only ones. The ancient Greeks already knew the first four.
Let's check 496. Its proper divisors are 1, 2, 4, 8, 16, 31, 62, 124 and 248:
1 + 2 + 4 + 8 + 16 + 31 + 62 + 124 + 248 = 496
A Recipe for Perfect Numbers
More than 2,000 years ago, the Greek mathematician Euclid found a recipe. Pick a number p. Work out 2 multiplied by itself p times, then take away 1. If the answer is a prime, multiply it by 2 multiplied by itself p − 1 times. You get a perfect number.
p = 2: 2 × (4 − 1) = 2 × 3 = 6
p = 3: 4 × (8 − 1) = 4 × 7 = 28
p = 5: 16 × (32 − 1) = 16 × 31 = 496
p = 7: 64 × (128 − 1) = 64 × 127 = 8,128
The recipe doesn't always work. Try p = 11: 2,048 − 1 = 2,047, but 2,047 = 23 × 89, which is not prime. So no perfect number comes from p = 11. The next one comes from p = 13.
The mathematician Euler later proved the other half: every even perfect number comes from this recipe.
The Mystery Nobody Has Solved
Every perfect number anyone has ever found is even. And here's the odd part:
Nobody knows whether an odd perfect number exists.
Mathematicians have searched for a very long time. They haven't found one, and they haven't been able to prove that none exists. As of late 2024, only 52 perfect numbers are known, all even.
A simple question about adding up divisors, and it's still unsolved.
Try It Yourself
Sort them. Is 20 deficient, abundant or perfect? What about 21? And 22?
Check the recipe. Use p = 13 in the recipe. What do you get? (Hint: 8,192 − 1 = 8,191, which is prime, and 2 multiplied by itself 12 times is 4,096.)
The prime test. What do the proper divisors of 13 add up to? Is 13 deficient, abundant or perfect?
Check your answers: the proper divisors of 20 add up to 1 + 2 + 4 + 5 + 10 = 22, so 20 is abundant. For 21 it's 1 + 3 + 7 = 11, so deficient, and for 22 it's 1 + 2 + 11 = 14, so deficient. With p = 13 you get 4,096 × 8,191 = 33,550,336, the fifth perfect number. And 13 has just one proper divisor, 1, so it's deficient.
The OddMaths Takeaway
Perfect numbers are the numbers that are exactly the sum of their own pieces. They're rare, they follow a surprising recipe, and there's a big question that nobody can answer: is there an odd one?
If you want to be famous in maths, this is one of the places to look.