Perfect Numbers

A number n is said to be perfect if it is equal to the sum of its proper divisors (or, if the sum of all its divisors is equal to its double 2n). The first obvious example is 6 = 1+2+3. What is the next smallest perfect number? (Answers to questions in this article can be found - after trying to answer them by yourself first - on page ).

Perfect numbers were first (to our knowledge) investigated by the Pythagoreans about 2500 years ago. They felt a deep reverence for such numbers, and in fact felt that all numbers had meaning and significance far beyond their purely mathematical properties. For example, even numbers were female, odd numbers male; 3 was the number of marriage (sum of first male and first female numbers); 4 was the number of justice (we still talk about a square deal, meaning a fair one); 10 = 1+2+3+4 was revered as the tetractys, a very special number indeed. This ``number mysticism'' was a great inspiration to the Pythagoreans to study numbers diligently, and they are often regarded as the founders of Pure Mathematics, certainly of the purest branch of mathematics: Number Theory. They defined other interesting categories of numbers related to perfect numbers.

First, let us introduce the notation s(n) (``sigma n'') for the sum of all divisors of n. The Pythagoreans called a number n deficient if s(n) < 2n and abundant if s(n) > 2n. Perfect numbers have s(n) = 2n. What are the deficient and abundant numbers less than 30? For example, 1+2+4 = 7 < 8 shows that 4 is deficient; 1+2+3+4+6+12 = 28 > 24 shows that 12 is abundant.

The Pythagoreans also pondered over friendly (or amicable numbers. A pair of numbers is friendly if each is the sum of the proper divisors of the other. For example (due to the Pythagoreans), 220 and 284 are friendly, because:


1+2+4+5+10+11+20+22+44+55+110 = 284,  1+2+4+71+142 = 220.
Charms have been sold through the ages, with those two numbers engraved upon them, said to bring love to the bearer! In the Book of Genesis, Jacob presented his brother Esau (whom he had cheated out of his birthright) with 220 goats; was this perhaps a symbolic profession of his love for his brother? Did he hope Esau would give him 284 sheep in response?! Simon Singh, in his wonderful book Fermat's Last Theorem, mentions an Arabic practice of carving the numbers 220, 284 on two fruits, eating one, and offering the other to one's lover, as a form of mathematical aphrodisiac (surely no less efficacious than powdered rhino horn - and certainly more environment-friendly).

Before leaving the topic of friendly numbers, you will want to know what other amorous couples there are. The next pair of such numbers took a very long time to discover, for it requires a great familiarity with numbers, great patience, and a love of playing with them. Pierre Fermat found the pair 17 296, 18 416 in 1636, and set other mathematicians searching seriously for them. René Descartes found a third pair, 9 363 584,  9 437 056, and Leonhard Euler found an amazing sixty-two friendly pairs! One of those strange quirks of history occurs here, for somehow they had all missed a much smaller pair of friendly numbers, finally discovered by a sixteen-year-old Italian boy, Nicolò Paganini, in 1866. They are 1 184, 1 210. Can you verify his discovery?

Now, how do mathematicians (and sixteen-year-old boys) go about the task of analysing and looking for friendly, deficient, abundant and perfect numbers? By the Unique Factorization Theorem (first clearly stated and rigorously proved by the ancient Greeks and included in Euclid's Elements), each number n can be expressed uniquely as a product of its prime factors. That is, n = p1x1.p2x2.p3x3¼pmxm, where p1 < p2 < p3 < ¼ < pm are primes, and x1,x2,x3¼xm are positive integers. The divisors of n are all possible combinations of powers of these primes, taking the form n = p1y1.p2y2.p3y3¼pmym where 0 £ yi £ xi for all i. The sum of all the divisors of n is therefore


s(n)
=
(1+p1+p12+¼p1x1)(1+p2+p22+¼p2x2)¼(1+pm+pm2+¼pmxm)
=
æ
è
p1x1+1-1
p1-1
ö
ø
. æ
è
p2x2+1-1
p2-1
ö
ø
. æ
è
p3x3+1-1
p3-1
ö
ø
.¼ æ
è
pmxm+1-1
pm-1
ö
ø
;
and the total number of divisors of n is given by the product:


(x1+1)(x2+1)(x3+1)¼(xm+1).
For example, take n = 36 = 22·32. The divisors of 36 are the terms of the product: (1+2+22)(1+3+32), that is: 1, 2, 22, 3, 2·3, 22·3, 32, 2·32, 22·32. It has (2+1)(2+1) = 9 divisors, and


s(36)
=
22+1-1
2-1
· 32+1-1
3-1
=
(8-1) æ
è
27-1
3-1
ö
ø
= 7·13 = 91 > 2(36).
Hence 36 is abundant.

For any number n, these three steps have been achieved so far:

  1. Computation of s(n), and hence classification of n as perfect, deficient or abundant.
  2. Calculation of the number of divisors of n.
  3. Listing of the divisors of n.
The next step could be finding a general formula for generating perfect numbers. We are going to travel the same exciting road that the Pythagoreans travelled, and find a formula! But we want you to find it with us; so, to prepare yourself for the journey, you should right now try your own hand and head at checking for perfect numbers. Here are some exercises for you to practise on. The first few have already been asked above - we hope you did them along the way. The answers are on page .

  1. What is the next perfect number after 6? How many are there up to 100? (There are surprisingly few!)
  2. Classify the numbers up to 30 as perfect, deficient or abundant.
  3. Verify Nicolò Paganini's discovery that 1 184, 1 210 are a friendly pair.
  4. Consider prime p. Can we say anything definite?
  5. What about a power of a prime pn?
  6. Consider next any even number of the form 2np, where p is prime. Show that this is perfect whenever 2n+1-1 = p. This shows that whenever n is such that 2n+1-1 is prime, we have a perfect number 2n(2n+1-1).
  7. A natural question which arises: Is every even perfect number of the form 2n(2n+1-1) given in question 6? Now, this question bothered Euler, and he did produce a proof that the answer is YES. We give you the idea on page , and challenge you to complete the proof, for a prize.
  8. Since the problem of finding even perfect numbers is therefore reduced to finding primes of the form 2k-1, two important questions arise immediately: What can we say about k, and what can we say about a, when a number of the form ak-1, a ³ 1, k ³ 2 is to be prime? Show that a has to be 2 (for otherwise there's an obvious factorization!), and k has to be prime too: if k = rs can you see a factorization?
  9. Can a perfect square be perfect? We are also offering this one as a challenge to readers - for a prize.
Now, to conclude, we should point out that this nice formula for perfect numbers in question 6 was known to the ancient Greeks and included in Euclid's Elements as the climax of the section where he states and proves the formula for the sum of a geometric series - and for the Greeks, that was the whole motivation and point of being able to sum such series! We teach our children to sum geometric series without telling them what made people so keen to do it in the first place: the intellectual quest for perfect numbers! We will tell the story of the subsequent adventures of the explorers, right up to our time, in the next article in this issue - but first, try using this wonderful formula to find some perfect numbers: Put k = 2, 3, etc. in 2k-1(2k-1), and remember that 2k-1 MUST be prime to give you a perfect number.

2  Mersenne Primes

After the formula for perfect numbers was discovered (see previous article), it naturally became of huge interest to ask:
(1) When will 2k-1 be prime?
(2) How many such primes are there?
(3) Are ALL perfect numbers of the form 2k-1(2k-1)? That is (because of Euler's result), are ALL perfect numbers EVEN?
If we can answer these three questions, we will have found all perfect numbers! For question (1) we already have a partial answer from question 7 in the previous article: k has to be prime. But are all numbers 2k-1 prime, for k is prime? Until the year 1536, all mathematicians thought so, but then, Alas! it turned out (thanks to a man called Hudalricus Regius) that 211-1 = 23×89. In 1644, Father Marin Mersenne, a French Minimite friar living in Paris, listed what he claimed were the first eleven values of k which make 2k-1 prime: k = 2,3,5,7,13,17,19,31,67,127,257. Of course, this meant he also claimed to know the first eleven perfect numbers! For this splendid job, he has had his name associated with these prime numbers ever since, and we usually use an M as well: Mersenne primes are primes of the form Mk = 2k-1.

Father Mersenne (1588-1648) has an even more important claim on our gratitude - he was a kind of one-man early Scientific Society, acting as a clearing house for ideas in science and mathematics, corresponding with everyone who was anyone in Europe, and striving to break down the culture of secrecy that bedevilled the intellectual world of the time. It was he who urged reclusive mathematicians like Fermat to make their methods known, and it was `Monsieur Fermat's method of drawing tangents' that inspired Isaac Newton to discover the Calculus.

Unfortunately, Father Mersenne had missed out some of his Mersenne primes: M61, M89, M107, which only goes to remind us how arduous were the difficulties facing people calculating with such enormous numbers before our age of electronic computers. That he made any mistakes was first discovered in the late nineteenth century by a man called Pervouchine, who showed 261-1 to be prime. And Mersenne was also wrong about k = 67 giving a prime; but nobody knew he'd made a mistake there until 1903 when a man called Frank Cole gave a lecture which earned him a standing ovation from his audience: his lecture consisted simply of writing on the blackboard the following:


267-1 = 193,707,721×761,838,257,287.
Any one of you could check that with pencil and lots of paper - though it might take you a couple of days and challenge your powers of concentration. But to find the factorization in the first place, without the benefit of modern computer aid, was a tremendous feat. During the course of the 20th century we developed powerful machines to help us with such tasks, and you may well ask: Where has the search for Mersenne primes and perfect numbers got to, by the year 2001?

By 1947 the list of Mersenne numbers up to k = 257 was finally safely checked, and, halfway through the century, we knew for certain the first twelve Mersenne primes: for k = 2,3,5,7,13,,17,19,31,61,89,107,127, - hence twelve perfect numbers. Then, as computing power grew vastly more efficient, twenty-one more were found by 1994: the latest Mersenne primes known then were for k = 756,839, and k = 859,433. These represented also the greatest known prime numbers, and (calculated from them) the greatest known perfect numbers. Then someone found a bigger Mersenne prime: for k = 1,398,269. The race hotted up as announcements of latest greatest primes could flash across the internet and bring immense financial benefits to the manufacturers of computer hardware or software that thus proved its superiority! Computer companies began to employ mathematicians and programmers to engage in the race for the next prime! And almost all the great prime trophies discovered in the race are Mersenne primes - in spite of the fact that only a tiny proportion of Mersenne numbers are primes, it's still about the most effective way of looking for primes.

On August 24 1997, Gordon Spence, a thirty-eight-year-old Information Technology manager in England, and George Woltmann, a thirty-nine-year-old programmer in Florida USA, announced the discovery (using a Pentium computer with two weeks computing time!) that 22,976,221-1 is prime. That number written in ordinary decimal notation is nearly 900 thousand digits long - roughly equivalent to the first eleven books of the Bible.

In the last few years, an enlightened modern Mersenne, in the anti-secretive, anti-competitive spirit of the original Father M, has conceived a wonderful, cooperative venture called the Great Internet Mersenne Prime Search (known as GIMPS), which puts many amateur prime detectives in touch with each other and seeks to combine not only their intellectual and physical energies, but the computing power and time of their machines! Perhaps in the next issue we will tell you more about this grand co-operative adventure of minds and machines, and what is the first new prime (hence greatest known perfect number) of the new century!

Before ending this article, we should let you into an important secret: the answers to questions (2) and (3) at the beginning of this article are still UNKNOWN to any human being, and are currently being chased with all their hearts, minds and machines, by many mathematicians:

Open Question 1: Is every perfect number even?
Open Question 2: Is there a largest perfect number, or do they go on for ever?
These two articles on perfect numbers and Mersenne primes are by Thomas Masiwa, Temba Shonhiwa and Gavin Hitchcock.


File translated from TEX by TTH, version 2.78.
On 17 Mar 2001, 16:46.