In the Pursuit of Perfect

BLOG: Heidelberg Laureate Forum

Laureates of mathematics and computer science meet the next generation
Heidelberg Laureate Forum

There is a common philosophical debate as to whether mathematics is created or discovered. Those arguing that maths is discovered argue that the intrinsic beauty of mathematics cannot have come about by chance – the fact that the same numbers and ideas crop up again and again (I’m looking at you \(\pi\)) is beyond coincidence.

Those on “Team Created” will counter that the maths of today – Fourier analysis, algebraic geometry, even statistics – is so convoluted and abstract that it cannot possibly be innate to the universe. They point to the fact that some mathematical objects do not exist in nature, and so must solely be a creation of the human mind.

But “Team Discovered” have a trump card to play. There are a set of numbers that seem intrinsic to the world, so linked to other important sequences, that they seem to hold an almost spiritual significance. These numbers are those whose proper divisors (i.e. all the positive divisors excluding itself) sum to the original number. These are the aptly named Perfect Numbers.

Perfect Numbers

A more formal and more useful way to define perfect numbers is via the divisor sum function \(\sigma(n)\), which sums all of the positive divisors of \(n\) including \(n\). We then define a perfect number to be any number for which

\( \sigma(n) = 2n\) or, alternatively \( \frac{\sigma(n)}n = 2\).

There are, as you might expect, names for numbers for which \(\sigma(n) > 2n\) (abundant) and \(\sigma(n) <2n\) (deficient). In fact, there is a whole family of names for numbers depending on the properties of \(\sigma(n)\), but that’s a blog post for another time.

The first few perfect numbers are 6, 28, 496, and 8128. These have been known about for so long that we have no record of when they were first calculated. The earliest recorded result about perfect numbers was published in Euclid’s famous Elements, in circa 300BC.  We have, unsurprisingly, found bigger perfect numbers but it may come as a shock to learn that we have, at time of writing, only discovered 52.

Eagle-eyed readers may notice that every perfect number I have listed is even. In fact, every perfect number that has been discovered to date is even. It is unknown if any odd perfect numbers exist – after all, not finding any is not proof that there are none.

Those who are especially observant, and have an encyclopaedic knowledge of mathematical records, may have also spotted that the number of known perfect numbers, 52, matches exactly up with the number of known Mersenne prime numbers. This is not a coincidence, and we can prove why.

Even Perfect Numbers \(\leftrightarrow\) Mersenne Primes

Mersenne numbers are numbers of the form \(q = 2^p -1\) for some prime number \(p\). A Mersenne number that is prime is known (predictably) as a Mersenne prime. Even perfect numbers are in a one-to-one correspondence with Mersenne primes. In fact, we can do better than that and give the explicit relation:

 \(q = 2^p -1\) is a Mersenne prime if and only if \(n = 2^{p-1} (2^p -1)\) is a perfect number.

The proof of this is attributed to two mathematical greats with easily confused names: Euclid and Euler.

In around 300BC, Euclid proved one direction of the theorem, namely that

If \(q = 2^p -1\) is a Mersenne, then \(n = 2^{p-1} (2^p -1)\) is a perfect number.

It was then over 2000 years until, in the 18th century, that Euler proved the other direction, i.e. that

\(q = 2^p -1\) is a Mersenne prime if \(n = 2^{p-1} (2^p -1)\) is a perfect number.

Both of these proofs rely on the fact that \(\sigma\) is what is known as a multiplicative function. This means that if \(a\) and \(b\) share no prime factors (i.e. they are coprime) then \(\sigma(ab) = \sigma(a)\sigma(b)\).

Euler’s Proof

Portrait of Leonhard Euler.
Portrait of Leonhard Euler Image credits: public domain

Euler’s proof of statement (1) starts with \(2^p-1\) being prime and aims to show that \(n = 2^{p-1} (2^p -1)\) is perfect.

Using multiplicativity, \(\sigma(2^{p-1} (2^p -1)) = \sigma(2^{p-1})\sigma(2^{p-1)} \).

We can consider these parts separately. Since \(2^p-1\) is prime, its only positive factors are 1 and itself. Therefore \(\sigma(2^p-1) = (2^p-1) + 1 = 2^p\).

Now let us turn our attention to \(2^{p-1}\). Its factors are \(1, 2, 4, 8, \dots, 2^{p-1}\). We can sum this geometric series to get that \(\sigma(2^{p-1}) = 2^p-1\).

Putting all this together, for \( n =2^{p-1} (2^p -1)\), \(\sigma(n) = \sigma(2^{p-1})\sigma(2^p-1) = 2^p \cdot (2^p-1) = 2 ( 2^{p-1}(2^p-1)) = 2n\). Therefore \(n\) is perfect! 

Euclid’s Proof

Statue of Euclid. He holds a scroll on which there is a drawing of Pythagoras Theorem
20th Century Statue of Euclid. Image credits: public domain

As you may have guessed by the 2000-year gap, Euclid’s proof is a bit more complicated, but it still uses very elementary methods and goes a little deeper than the fact that \(\sigma\) is multiplicative.

Euclid begins with an even perfect number. Let us call this number \(n\) and write it as \(n =  2^k\cdot x\), where \(x\) is an odd number, and \(k\) is a positive integer. 

Because \(n\) is perfect, \(2n=\sigma(n)\) i.e. \(2^{k+1}x=\sigma(2^kx)\). By multiplicativity, \(2^{k+1}x =\sigma(2^k)\sigma(x)\). Just as above, we know that \(\sigma(2^k) = 2^{k+1} -1\), which is coprime to \(2^{k+1}\). We therefore have that \( 2^{k+1}\frac{x}{2^{k+1} -1}= \sigma(x)\).

Returning to that \(2^{k+1}x=\sigma(2^k)\sigma(x)\), this coprimality means that \(2^{k+1} -1\) must divide \(x\), and so too must \(\frac{x}{2^{k+1} -1}\). We know that \(x\) is a factor of itself too, so \(\sigma(x) = x + \frac{x}{2^{k+1} -1} + \text{ “other divisors” }= \frac{2^{k+1}}{2^{k+1} -1}\).

But this must mean there are no other divisors, as we know from before that \( 2^{k+1}\frac{x}{2^{k+1} -1}= \sigma(x)\). Therefore \(x\) only has two divisors: itself and \(\frac{x}{2^{k+1} -1}\). So it must be prime! What’s more, \(1\) is a factor of all numbers so we must have that \(\frac{x}{2^{k+1} -1} = 1\), i.e. \(x =2^{k+1} -1\).

It is known that for any prime number of the form \(2^q-1\), \(q\) has to be prime, so this is indeed a Mersenne prime, as opposed to a bog-standard, garden variety prime. And so, this completes the proof – Mersenne primes and even perfect numbers are in a one-to-one correspondence.

Examples

As is natural, I am sure you are wondering which primes correspond to the first four perfect numbers. 

Well, \(6 = 2 \times 3\), so in the above Euler proof, \(k=1\) and \(x=3\). So \(3\) is our Mersenne prime.

\(28 = 4 \times 7\), so in the above Euler proof, \(k=2\) and \(x=7\). So \(7\) is our Mersenne prime.

\(496 = 16 \times 31\), so \(31\) is our corresponding Mersenne prime. And \(8128= 64 \times 127\), giving the corresponding Mersenne prime of \(127\).

Thankfully these are exactly the first four Mersenne primes, as expected! Bigger and bigger Mersenne primes are being found via the Giant Internet Mersenne Prime Search, with the largest being found in 2024. Perfect numbers are then being calculated from these. But there was a gap of 6 years until the 2024 prime was found, so there may be a while to wait yet before a new perfect number comes along. 

Nature’s mystery

It is not even known if there are infinitely many Mersenne prime numbers, so not only do we not know if there is an odd perfect number to be found, but we also do not know if there are any more even perfect numbers. It is in part this mystery that has led mathematicians to be fascinated by perfect numbers for so long. And the deep links to prime numbers lead some to believe that maths is discovered after all.

To Pythagoras, perfect numbers didn’t just hint at some natural secret, they were deeply spiritual and holy in themselves. Philo of Alexandria even suggested that the world was created in 6 days because 6 is a perfect number. And that the lunar month is 28 days because that is another perfect number. 

Whatever you believe, I think we can all agree that perfect numbers are rather special indeed.

A blonde, white woman smiling

Posted by

Sophie Maclean is a mathematician and maths communicator, currently studying for a PhD in Analytic Number Theory at Kings College London. She has previously worked as a Quantitative Trader and a Software Engineer, and now gives mathematics talks all over the UK (and Europe!). She is also a member of the team behind Chalkdust Magazine. You can follow her on Twitter at @sophietmacmaths

3 comments

  1. There is something I call the thought barrier: The Universe gives us enough information to understand everything within the Universe, but not where it all came from. Reality is Lego, our thoughts is Lego, our logic is Lego, laws of Nature dictate, how Lego works. But whenever I try to understand the origins of it all, I end up with another Universe made of the same Lego. You can ask forever and forever rediscover new variations of the same answers, but „you“ „can“ „ask“ „forever“, cause and event, existence, nothingness, origin, lead you in circles, and even „answers“ are a Lego brick that doesn’t explain the Lego factory.

    Which means, the debate between creationists and non-creationists will remain unsolved because of its inherent absurdity. I can explain them both, I can explain faith and disbelief, I can explain why it’s important to them, I can show them an infinity of Gods to choose from and prove all of them to be fake. But there will always be a God or not at the other end of that infinite chain, beyond my reach.

    Look at the number ray as on the DNA code of the universe and compare it to any other code.

    Imagine numbers as a chain of dots, particles, created one after another out of nothing and prolonging it. Such a chain may stay a line, but it may also form a spiral – the Ulam spiral shows you what it is: The paper pattern for all the origami that the Universe is made of.

    The key is geometry. You see it all in the spiral. But in reality, you have to choose – a sphere can’t also be a pyramid a the same time. So what you see in reality, are only geometrical forms that manifest a part of the code, never the whole thing.

    So the code actually contains innumerable codes at once, built one upon another, but also competing, having to make choices dependent on the situation. There is one code for straight lines, one for zigzag lines, one for planes, one for cubes and so on. And they all interact and deform each other, trying to become physical reality. Mersenne numbers will probably matter in some, in some they will not – in the simple line, they are just dots equal to other dots, it’s just a row of absolutely equal 1’s. You need more complex origami to discover their special status.

    If you see a code, the first thing you think is – how might another code look like? But als the whole universe, our logic, perception, laws of Nature, are based on the number ray and only the number ray, any other code, any other maths, is unimaginable for us.

    The Universe is – a drawing. It’s as simple as it always was, coz we’ve always known it. And anything that can be drawn can come to life in it, if it’s supported and animated by a living canvas. But there can’t be anything perfect in it, as any manifestation of the code behind it can only be incomplete and flawed.

    Is the code perfect? It defines perfection, so it is. On the other hand, this Universe sucks like hell, so it’s a matter of how you look at it.

    The question is – does it contain any codes beyond what we can perceive? A world of triangles wouldn’t understand a world of cubes, but it might be able to discover the same mathematics.

    As far as I can understand, anything we call „above 4D“ is not really other dimensions, but simly objects at different angles than 90 degrees – you have infinite parallel dimensions spreading from the centre of any circle, even if they’re no more than 2D. So that’s not necessarily the way to go if you’re looking for something encoded in maths, that might exist, but not as part of the universe we know.

    Even within the thought barrier, within this incredibly simple, primitive, boring mathematical Universe, there are still mysteries to be solved.

  2. Many Inuit believe that the figure they are carving is already contained within the fish bone; one simply needs to remove the unnecessary bone.

    It’s the same in mathematics. The structure is already there; the mathematician just needs to uncover it.

    And can perfect numbers really create a work of art?

  3. hi, Sophie, thank you for your great post,
    but there might be some tiny imperfection or error facts that confuses me.
    Euler’s Proof and Euclid’s Proof are exactly reversed.

    Over 2300 years ago Euclid proved that If 2ᵖ-1 is a prime number (it would be a Mersenne prime), then 2ᵖ⁻¹(2ᵖ-1) is a perfect number. A few hundred years ago Euler proved the converse (that every even perfect number has this form). It is still unknown if there are any odd perfect numbers (but if there are, they are large and have many prime factors). via https://t5k.org/notes/proofs/EvenPerfect.html

Leave a Reply


E-Mail-Benachrichtigung bei weiteren Kommentaren.
-- Auch möglich: Abo ohne Kommentar. +