A perfect number theory proof
For my first article on this blog (or any blog for that matter), I want to present one of my favorite proofs of elementary number theory. It’s based around the concept of a perfect number. You know that a concept named like that ought to be interesting. A perfect number is any positive integer that is equal to the sum of its positive divisors, except the fact that you don’t count the number itself in that sum. You only sum its proper divisors. The whole is equal to the sum of its parts; that’s why such a number is perfect. For instance, six is a perfect number because its proper divisors are 1, 2 and 3; if you sum these up you get back six. In fact six is the smallest perfect number. The next one is 28 as its proper divisors are 1, 2, 4, 7 and 14.
“Six is a number perfect in itself, and not because God created all things in six days; rather, the converse is true. God created all things in six days because the number is perfect.”
Saint Augustine, The City of God
The Euclid-Euler theorem
If we introduce the notation to mean “the sum of all the positive divisors of , including itself”, then a number is perfect if and only if . For instance, the obvious fact that a prime number cannot be perfect can be translated as saying that for all primes , we have , which is never equal to .
An interesting fact about is that it’s a multiplicative function. It means that if and are two coprime numbers (they have no prime divisors in common), then . Intuitively, that happens because the set of divisors of is essentially disjoint from the set of divisors of — a consequence of coprimality. Therefore each divisor of can be expressed as a product , where divides and divides . Since you can express a sum of products as a product of sums, well, you get the idea.
Euclid’s part
In his Elements, three hundred years before Jesus Christ was born, Euclid proved that if is prime, then any number of the form must be perfect. Using our characterization of perfect numbers using and the fact that it’s a multiplicative function, that’s easy to prove:
A prime number of the form is called a Mersenne prime. Euclid’s result means that each Mersenne prime gives rise to a perfect number. It is not known whether or not there are infinitely many Mersenne primes, but if there were, it would prove that there are infinitely many perfect numbers.
Euler’s part
About two millenia after Euclid, Euler proved that any even perfect number must be of the form with prime. To prove this, he used a simple proof with a very clever idea at a key moment. I still remember the first time I saw this proof. I still find it fascinating. We start with , an even perfect number. First, we compute in two different but equal ways. The first way is trivial: because is perfect, we know that . The second way uses the fact that is even: we write as , with and odd. Now
The two ways of looking at are equal, therefore
We get two things from this equation. Firstly, since is coprime to , we know that must divide . We write for some integer . Secondly, we get that just by dividing both sides by and substituting for . Putting these two things together, we have . Here is the clever part! This means that has only two divisors. The only integers with exactly two divisors are the primes, and so is a prime and . By substituting for in the above equation, we finally obtain . Note that is different from since . That’s in fact why we need to be even, because it guarantees that .
Putting it together
By taking Euclid’s and Euler’s parts and putting them together, we get a characterization of the even perfect numbers! An even number is perfect if and only if there exists a prime number such that
This is called the Euclid-Euler theorem. Interestingly, it is unknown if there are any odd perfect numbers… but if there are, the smallest one must be greater than .
As I mentioned briefly above, that means that you can use Mersenne primes to generate perfect numbers. From GIMPS, the Great Internet Mersenne Prime Search, we know for instance that
is a prime. Therefore,
is perfect. It ends with 6.