Perfect Numbers

The pages on factors introduce the idea of perfect numbers. One way of defining these is to say that the sub-factors, all the factors except the number itself, add up to the number.

So fac(6)={1,2,3,6}  so the sub-factorial sum is 1+2+3 = 6

similarly for 28 1+2+4+7+14 = 28

and the next one is 16x31.

and then …?

I see that 1+2 = 3 for 6 and that 1+2=4 = 7 for 28…..How about the factors starting 1,2,5 then 8, so the number to test is 40? This fails, and 16 is not a factor of 40. Nor does 80 work, since that includes the multiples of ten, And two.  

Could it be that we should start with powers of two? 1+2+4+8=15, 8x15=120 but 120 isn’t perfect any more than 40 is. Why is that? Because 120 has factors including 10 and 12, not in the generated list,  What about the next one, then, which would be 1+2=4+8+16=31, so 16x31 =496. We showed in Factors that 496 is indeed perfect.

So, our ‘rule’ seems to be that we start with factors of 2: 1,2,4,8,16…. And we can use the sums of these  3,7,15, 31 but not the 15. Is that because 15 is the only prime in that list?

Let's have longer list, then:

Are any of the left-hand column not prime? I recognise 15,63,255,1023 as having factors of 3 and / or 5, so I’ll take those lines out. Remember these powers of two add up to the number on the left. We are testing to see if the last power of two and the lefthand number have, as their product, a perfect number.

Are these perfect?  If so, here’s an idea to explore: Look at the row that starts 16x31. I’ve added a column that shows 16 = 2⁴ and that 31 = 2⁵-1  

BUT, those bottom two lines don’t produce perfect numbers, thought the NEXT line is perfect. Why is that? I think the answer is now obvious and you can now attempt to write the next few perfect numbers. There is only one small problem, that you probably can’t do this on your computer, as the numbers are too long. if 8128 is the 4th, then the 10th has 54 digits and the 20th has 2663. So you’re doing very well to write the eighth one down. I’ll tell you it looks a bit like 230……..128, but that’s quite enough help.       The corrected column titled q, when you've written it,  will become known as Mersenne primes.

I took several Y8 classes (and the occasional Y12) through this thinking once they’d become familiar with the idea of investigations. Most of them spotted the powers of two and the primes without further prompting, but that was probably because we’d already spent so much time on powers of two and on primes.

Looking up the answers is cheating; all the excitement lies in having an idea and testing it out to see if it works or only works a bit. This is a good example of such a process; 8x15 = 120 ought to work but doesn’t, so why is that? 64x127 works but 256x511  doesn’t, so what is special about 64x127 that doesn’t apply to 256x511? Does that predict that we think 1024x2047 will fail, and what do we need to do to show that it will? Questions like this make maths as a subject have some meaning, as this is the same process that any sort of engineer will use when testing a process or a piece of equipment (civil, mechanical, electrical, biological) — because it is a process of investigation. the cycle is idea -> test -> modify idea -> test and go round and round until either enough is found to explain what is going on (as seen so far) or the idea is rejected as non-workable. That experience usually teaches enough to make a better suggestion.

To me, this is the whole point of maths. Being given the answer makes it very hard to find new topics to explore. Finding the answer by looking at the work of others does the same — it prevents you from that same discovery. On this page, by having already shown that 496 is perfect, then the testing to see if 8128 is perfect is already that step more difficult. If you’d already discovered that I’ve told you 8128 is perfect without testing that for yourself, then the next one is a LOT of work and many people simply won’t other testing it for themselves, saying it is too much work (which isn’t true, but it feels that way when you see the number for the first time).

What’s the point? I hope I’ve answered that. Who wants to know about perfect numbers? Very few people, though there is a big deal in discovering large primes for security and password purposes. However, the process, that is the thing worth exploring. My classes were surprisingly excited, though in each class was the odd one or two who wouldn’t engage. They would say everyone else was being odd, while accepting that they were suddenly in a world of nerds, excited by these stupid number things. I still say this was their loss and I am still sad at my failure to persuade them to engage.


DJS 20181004

Could there be any odd perfect numbers? This stays unproved when writing in 2018. That is, no-one has yet found one (that would be exciting, since it would generate a load more theory) nor is there yet a proof that there are none.

Just because you have a way of generating Mersenne primes does not mean you have found all primes at all. One counter example, a prime between 31 and 127 would do. How about 101,103,107,109, which are all prime? However, knowing some large primes means you can generate some very large numbers that you know will be prime. If p is prime then 2^p -1 is prime (shown by Euclid, way back around 300 BC). So if q=2p-1 and r = 2q-1 and s=2r-1 you can make some very large numbers that you know will be prime. One such is 2^77232917 -1 which has over 23 million digits and is the 50th Mersenne prime.  Link to why you might want to do this. I didn’t find this at all convincing, as if the big reasons was n=being ignored, like the elephant in the room. The short answer: for security coding. Link to large Mersenne primes.

 However, © David Scoins 2017