Perfect Numbers

In this post I’ll move away from my usual topics of astronomy and space science and talk about something more abstract from the world of pure mathematics, perfect numbers.

 Definition of a Perfect Number

A perfect number is a positive whole number that is equal to the sum of its proper divisors, that is the divisors excluding the number itself.  For instance, 6 has proper divisors 1, 2, and 3 and 1 + 2 + 3 = 6. So, 6 is a perfect number. In fact, it is the first perfect number.

  • The second perfect number is 28. It has proper divisors 1, 2, 4, 7 and 14 and 1 + 2 + 4 + 7 + 14 = 28.
  • After 28, the third perfect number is 496, which has proper divisors 1, 2, 4, 8, 16, 31, 62, 124 and 248.
  • The fourth perfect number is 8128, which has proper divisors 1, 2, 4, 8, 16, 32, 64, 127, 254, 508, 1016, 2032, and 4064.

As you get to higher numbers, perfect numbers get rarer and rarer. The next four are:

  • 33 550 336
  • 8 589 869 056
  • 137 438 691 328
  • 2 305 843 008 139 952 128

In recent years computer searches have identified more perfect numbers. But even today, only 52 are known. The largest, discovered in October 2024, has 82 048 640 digits! (see notes at the end of this post). All the known perfect numbers are even.

Some Other Properties of Perfect Numbers

All even perfect numbers are also triangular numbers.  These are numbers formed by summing up the number of dots in a triangle where the first row has 1 dot, the second 2 dots, the third three dots etc. However, the relationship doesn’t work the other way round; clearly not all triangular numbers are perfect.

The first seven triangular numbers

Another property is that every even perfect number other than 6 is the sum of a sequence of consecutive odd numbers cubed. For example:

28 = 13  + 33   (sum of the first two odd numbers cubed)

496 = 13  + 33   + 53 + 73 (sum of the first four odd numbers cubed)

8128 = 13  + 33   + 53 + 73 + 93 + 113 + 133 + 153 (sum of the first eight odd numbers cubed)

Perfect numbers have held a fascination for mathematicians for thousands of years. René Descartes, the great 17th-century French mathematician and philosopher, who had a keen interest in perfect numbers, allegedly said that:

“Perfect numbers, like perfect men, are very rare.” 

Unsolved Problems relating to Perfect Numbers

Most unsolved problems in mathematics are difficult for anyone without an advanced mathematical background to comprehend. Interestingly, there are two unsolved problems in pure mathematics relating to perfect numbers which can be easily understood by the layperson.

  • Are there infinitely many perfect numbers? Or is there a largest perfect number with no further ones above this value? Most mathematicians believe that there are infinitely many, but no one has been able to prove this (or alternatively provide a proof that there can only be a finite number of them).
  • Are there any odd perfect numbers? The general belief among mathematicians is that all  perfect numbers are even. However, although no odd ones have been found, nobody has been able to prove that they don’t exist. This question has taxed the greatest mathematical minds for centuries.

The Importance of Perfect Numbers in Ancient Times

The ancient Greeks had many beliefs which to us seem strange and mystical. Numbers, in particular small numbers, were often assigned personalities and genders. For example, the number 5 represented marriage, because it is the sum of 2 which was assigned a female gender and 3 which was assigned a male gender.

An ancient greek thinking about perfect numbers

Around the year 100 CE the Ancient Greek philosopher Nicomachus wrote a famous text Introductio Arithmetica which divided whole numbers into three classes: [1]

  • Abundant numbers – the sum of their proper divisors is greater than the number, e.g. 12 has proper divisors 1, 2, 3, 4 and 6 which sum up to 16.
  • Deficient numbers  – the sum of their proper divisors is less than the number, e.g. 8 has proper divisors 1, 2 and 4 which sum up to 7. Prime numbers, whose only proper divisors are 1,  are all deficient.
  • Perfect numbers – the sum of their proper divisors is equal to the number.

Nicomachus had a strange philosophical way of looking at groups of numbers and went on to say the following.

[Referring to Abundant Numbers] In the case of the too much, is produced excess, superfluity, exaggerations and abuse;

[Referring to Deficient Numbers] In the case of too little, is produced wanting, defaults, privations and insufficiencies.

[Referring to Perfect Numbers] And in the case of those that are found between the too much and the too little, that is in equality, is produced virtue, just measure, propriety, beauty and things of that sort – of which the most exemplary form is that type of number which is called perfect.

Perfect numbers had an important place in religion and because the first two perfect numbers are 6 and 28, early theologians used them to explain the Universe. For example:

  • God created the Universe in six days because the number 6 is perfect. God was then able to rest on the seventh day.
  • The Moon orbits the Earth in approximately 28 days.

Perfect Numbers in Recent Culture

Perfect numbers appear in modern culture, usually in quite subtle ways which can be only picked up by people with mathematical knowledge.

Perhaps the most interesting example is in a 2006 episode of The Simpsons  “Marge and Homer Turn a Couple Play”. This contained some  secret mathematics.  A question appeared on the large screen at Springfield Stadium asking fans to estimate the attendance at the game. [2]

Scoreboard at Springfield Stadium in the Simpsons

Although these numbers might appear to be purely random, there is a hidden meaning for pure mathematics geeks. (Of which I am definitely not one 😊. I certainly would not have noticed this if I’d been watching the episode)

The number 8128

As I’ve mentioned earlier 8128 is a perfect number.

The number 8208

8208 has an interesting property. It has four digits and if you take each digit, raise it to the fourth power and then add all four numbers together you get 8208.

84 = 4096, 24 = 16 and 0 = 0

And adding the four numbers together gives

      84 + 24 + 04 + 84 = 8208.

Because 8208 can create itself from its own components, by raising each digit to the power of the number of digits in the number and then summing them, it is termed a  narcissistic number. An example of a narcissistic number with three digits is 153. If you take each digit, raise it to the third power and add the three numbers together you get 153.

153 = 13 + 53 + 33 = 153

Narcissistic numbers are very rare. For example, there are:

  • No two digit narcissistic numbers
  • Four three digit narcissistic numbers: 153, 370, 371 and 407
  • Only three four digit narcissistic numbers: 1634, 8208 and  9474

 In fact among the infinity of numbers, it can be shown that only 88 narcissistic numbers exist. [4]

The number 8191

The final number on the scoreboard 8191 is a prime number, it has no divisors other than 1 and the number itself. In fact, it is a special type of prime number known as a Mersenne prime.

And finally…

I hope you have enjoyed this article, which is on a topic very different from my usual posts. I certainly enjoyed reseaching and writing on a subject which I don’t cover in my blog. Many areas of obscure mathematics, which were originally thought to be very abstract, later turn out to have a practical value in understanding the Universe. For example much of Einstein’s theory of general relativity is built on the complex mathematics of non-Euclidean geometry.

Even so , I just can’t see perfect numbers ever making such an important contribution. If a mathematical genius were able to PROVE that no odd perfect numbers exists, something that has eluded the best minds for centuries, it would be a amazing achievement but it is difficult see how this would be of any benefit to our scientic understanding of the world around us

I have blogging since 2014 and over the last 12 years I have written two other posts on more abstract mathematical topics which may be of interest.

For those of you who want a little more detail, here’s some extra information on how perfect numbers can be calculated.

Calculating Perfect numbers – relationship with Mersenne primes.

A Mersenne number is a number that is one less than a power of two. That is a number of the form Mn = 2n − 1 where n is a positive whole number. Some examples are 1, 3, 7 and 15.

  • M1 = 1, which is 21 – 1
  • M2 = 3, which is 22 – 1
  • M3 = 7, which is 23 – 1
  • M4 = 15, which is 24 – 1

They are named after the French mathematician Marin Mersenne (1588 -1648).

If a Mersenne number is also a prime number, then it is known as a Mersenne prime. For this to be the case the power which 2 is raised to (the exponent) must also be a prime number. A few examples are below.

The first five Mersenne Primes

Not all Mersenne numbers with a prime number exponent are Mersenne primes. For example, in the case of M11, 11 is prime but 211 – 1 = 2047 which is not prime. In fact in turns out that for the vast majority of prime numbers (2p– 1 ) is not prime and so far only 52 Mersenne primes have been discovered, and it is an unsolved problem in mathematics whether or not there are infinitely many.

Around the year 300 BCE Euclid proved that

If (2p – 1) is a prime number then the number 2p−1(2p − 1) is a perfect number.

However, it was 2000 years after Euclid before the Swiss mathematician Leonhard Euler (1707 – 1783) was able to prove the result also held the other way round.

Every even perfect number has the form  2p−1(2p – 1) where  (2p – 1) is a Mersenne prime.

The combination of these two results is the Euclid–Euler theorem. This states:

An even number is perfect if and only if it has the form 2p−1(2p − 1), where (2p – 1) is a Mersenne prime.

Using this rule the first eight even perfect numbers and their corresponding Mersenne primes (2p – 1)  are listed below.

The first eight perfect numbers

Interestingly, because any even perfect number has the form 2p−1(2p − 1), it means that when expressed in binary (base 2) it consists of a sequence of p ones followed by (p – 1) zeros. This is shown below for the first four perfect numbers.

The first four perfect numbers in binary

How New Perfect Numbers are Calculated

There is a large distributed computing project known as the Great Internet Mersenne Prime Search which has been running since 1996 The largest Mersenne prime found so far is 2136279841-1 which has 41 024 320 digits. [3] Because of the connection between Mersenne primes and perfect numbers, it means that the largest even perfect number known is 21362798410 x (2136279841 – 1), which has 82 048 640 digits.

References

[1] Maths History. (2020). Perfect numbers. [online] Available at: https://mathshistory.st-andrews.ac.uk/HistTopics/Perfect_numbers [Accessed 6 Jan. 2026].

[2] the Guardian. (2013). The Simpsons’ secret formula: it’s written by maths geeks. [online] Available at: https://www.theguardian.com/tv-and-radio/2013/sep/22/the-simpsons-secret-formula-maths-simon-singh [Accessed 6 Jan. 2026].

[3] Mersenne.org. (2026). Great Internet Mersenne Prime Search – PrimeNet. [online] Available at: https://www.mersenne.org/. [Accessed 6 Jan. 2026].

[4] Weisstein, E.W. (2026.). Narcissistic Number. [online] mathworld.wolfram.com. Available at: https://mathworld.wolfram.com/NarcissisticNumber.html. [Accessed 6 Jan. 2026].

15 thoughts on “Perfect Numbers”

  1. I first read about perfect numbers in Simon Singh’s book, Fermat’s Last Theorem. They are also covered in a fascinating Japanese novel, The Housekeeper and the Professor. I had not come across their relationship to Mersenne Primes until I read this. Thank you for the excellent article.

    Like

  2. Nice and interesting technical specifications, but I miss the underlying functional specifications, like Mambo number 5, Catch 22, Route 66.

    A perfect example of a perfect number, that is to say a number in which technical specifications and functional specifications are perfectly unified, is 69.

    Liked by 1 person

  3. Hi Steve,

    Apart from their curiosity value to mathematicians (and providing an interesting topic for blog articles), do perfect numbers serve any practical purpose in the real world?

    🙃

    Like

    1. Hi Roger,
      Many areas of obscure mathematics turn out to have a practical value in understanding the Universe. For example much of Einstein’s theory of general relativity is built on the complex mathematics of non-Euclidean geometry.

      However, I can’t see perfect numbers ever making such an important contribution. If a mathematical genius were able to PROVE that no odd perfect numbers exists, something that has eluded the best minds for centuries, it would be a great achievement but I can’t see how this would be of any scientific benefit

      Liked by 1 person

    2. Hi Roger,

      No, I totally agree with Steve: but researchers are never satisfied; if it were proved that there were infinitely many perfect numbers, or (improbably) the converse, there’d still be as much demand to identify an odd perfect perfect number, and if successful, to know whether there were finitely many of those.

      But sometimes these pursuits can have unexpected outcomes. Steve alluded to tensor calculus – and hence general relativity.

      He might have stayed with perfect numbers. They have even more arcane & useless(??) relatives: pernicious numbers, semi-perfect numbers, practical numbers*, and others (all of which I’ve forgotten the properties of ).

      Or he might have mentioned factorization of large numbers; not possible as far as we know, other than exhaustively by trial & error. A hundred years ago such an investigation would have been dismissed as pointless theorizing – hardly deserving of any funding.

      Today we still aren’t aware of any such method. But of course if it were discovered, many of the encryption schemes throughout the world would be at risk.

      In my own field of interest, theoretical physics, there doesn’t seem much scope for research into higher arithmetic, but we can’t be too sure; we may discover processes that require quaternions or octonions for instance.

      David.

      * the misnomer to end all misnomers!

      Liked by 1 person

  4. Steve, please excuse a second comment (which will probably appear first in the listing), from the same reader:

    It occurs to me that many of your loyal readers will be amazed by the perverse delight of number theorists in devising obscure relationships between numbers. Primes are bad enough, but Mersennes, narcissistics, Lychrels, (and worse) … Not everyone is autistic enough to join in appreciating their fascination!

    P.S. See Tom Lehrer: “Lobachevsky” (on Youtube)

    David.

    Like

  5. The ancient greeks were aware of the first four perfect numbers, but to establish that after 496, the next one is not until 8128 they’d have needed remarkable patience – or endurance.

    Obviously we couldn’t expect them to have found the fifth one, at ~33 million, but I can’t help wondering how far beyond 8128 they persisted in investigating. Euclid wrote at some length about perfect numbers, but I suspect that he didn’t do the donkey-work himself but delegated it to a small army of his students.

    He said that he believed that there were infinitely many perfect numbers, but as far as I know, he didn’t offer any reasoning. Maybe – as for a somewhat later theorist – the margin wasn’t big enough to accommodate it!

    Regards, David.

    Liked by 1 person

Leave a reply to Dr Steve Hurley - astrophysicist Cancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.