# More Perfect Numbers

**URL:** <https://boards.straightdope.com/t/more-perfect-numbers/310676>\
**Category:** Cecil's Columns/Staff Reports\
**Created:** [July 1, 2005, 1:14pm UTC](https://boards.straightdope.com/t/more-perfect-numbers/310676 "2005-07-01T13:14:53Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![RM\_Mentock](https://avatars.discourse-cdn.com/v4/letter/r/e274bd/32.png) [@RM\_Mentock](https://boards.straightdope.com/u/RM_Mentock)\
**Post date:** [July 1, 2005, 1:14pm UTC](https://boards.straightdope.com/t/more-perfect-numbers/310676/1 "2005-07-01T13:14:53Z")

</div>

Mathochist ([What’s the story on perfect numbers?](http://www.straightdope.com/mailbag/mperfectnumbers.html) correctly states that “given a Mersenne prime, applying the formula will always give a perfect number” but he takes the word of the questioner, Mac McCartney, that there are only 38 known perfect numbers. The [42nd Mersenne Prime](http://www.mersenne.org/prime.htm) was found last February, so we know of at least 42 perfect numbers. The 41st was found in May, 2004, and there may be more by now.

---

<div class="post-metadata">

**Author:** ![Exapno\_Mapcase](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/exapno_mapcase/32/1051_2.png) [@Exapno\_Mapcase](https://boards.straightdope.com/u/Exapno_Mapcase)\
**Post date:** [July 1, 2005, 3:53pm UTC](https://boards.straightdope.com/t/more-perfect-numbers/310676/2 "2005-07-01T15:53:14Z")

</div>

**Mathochist** also writes that:

> [@](#):
>
> Euler proved in 1747 that even perfect numbers all have the form 2[sup]n-1/sup, where 2[sup]n[/sup]-1 is a kind of prime number called a Mersenne prime. Also, given a Mersenne prime, applying the formula will always give a perfect number.

It may help those who don’t know math to realize that finding a Mersenne prime is not an easy task when the numbers grow as large as seven million digits. So while we can generate perfect numbers from Mersenne primes, the latter aren’t thick on the ground. That’s what’s really holding back the search.

---

<div class="post-metadata">

**Author:** ![RM\_Mentock](https://avatars.discourse-cdn.com/v4/letter/r/e274bd/32.png) [@RM\_Mentock](https://boards.straightdope.com/u/RM_Mentock)\
**Post date:** [July 1, 2005, 5:33pm UTC](https://boards.straightdope.com/t/more-perfect-numbers/310676/3 "2005-07-01T17:33:25Z")

</div>

Also, on the subject of odd perfect numbers, it is easy to find odd abundant numbers, where the sum of the factors is greater than the number itself (e.g., 945, which is 3^3 x 5 x 7, so it’s sum is 975), or odd deficient numbers (3, 5, 7, all of whose sums are 1; or 9 whose sum is 4), but no one has ever found an odd number whose sum of factors is the number itself. Anyone who ever found such an odd perfect number would be famous.

I just wanted to throw that out, in case there were any geocentrists reading this, with time on their hands.

---

<div class="post-metadata">

**Author:** ![ultrafilter](https://avatars.discourse-cdn.com/v4/letter/u/3d9bf3/32.png) [@ultrafilter](https://boards.straightdope.com/u/ultrafilter)\
**Post date:** [July 1, 2005, 5:36pm UTC](https://boards.straightdope.com/t/more-perfect-numbers/310676/4 "2005-07-01T17:36:41Z")

</div>

Geocentrists?

---

<div class="post-metadata">

**Author:** ![RM\_Mentock](https://avatars.discourse-cdn.com/v4/letter/r/e274bd/32.png) [@RM\_Mentock](https://boards.straightdope.com/u/RM_Mentock)\
**Post date:** [July 1, 2005, 5:47pm UTC](https://boards.straightdope.com/t/more-perfect-numbers/310676/5 "2005-07-01T17:47:46Z")

</div>

[Geocentrists](http://www.fixedearth.com/other.htm)

Sorry, I should have googled for a link.

---

<div class="post-metadata">

**Author:** ![ultrafilter](https://avatars.discourse-cdn.com/v4/letter/u/3d9bf3/32.png) [@ultrafilter](https://boards.straightdope.com/u/ultrafilter)\
**Post date:** [July 1, 2005, 5:49pm UTC](https://boards.straightdope.com/t/more-perfect-numbers/310676/6 "2005-07-01T17:49:13Z")

</div>

I know who the geocentrists are, but what on earth do they have to do with perfect numbers?

---

<div class="post-metadata">

**Author:** ![RM\_Mentock](https://avatars.discourse-cdn.com/v4/letter/r/e274bd/32.png) [@RM\_Mentock](https://boards.straightdope.com/u/RM_Mentock)\
**Post date:** [July 1, 2005, 5:53pm UTC](https://boards.straightdope.com/t/more-perfect-numbers/310676/7 "2005-07-01T17:53:02Z")

</div>

I just meant, they might find it diverting. For a few years.

---

<div class="post-metadata">

**Author:** ![C\_K\_Dexter\_Haven](https://avatars.discourse-cdn.com/v4/letter/c/b2d939/32.png) [@C\_K\_Dexter\_Haven](https://boards.straightdope.com/u/C_K_Dexter_Haven)\
**Post date:** [July 1, 2005, 8:36pm UTC](https://boards.straightdope.com/t/more-perfect-numbers/310676/8 "2005-07-01T20:36:48Z")

</div>

In any case, I want to thank **Mathochist** for another wonderful guest Staff Report! Not all mathematicians can express concepts for non-mathematicians to unnerstand, and I think **Mathochist** has done a fantastic job here.

---

<div class="post-metadata">

**Author:** ![Chronos](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/chronos/32/134_2.png) [@Chronos](https://boards.straightdope.com/u/Chronos)\
**Post date:** [July 1, 2005, 9:48pm UTC](https://boards.straightdope.com/t/more-perfect-numbers/310676/9 "2005-07-01T21:48:05Z")

</div>

A thought: Could perfect numbers be used as part of the prime-testing process for Merseinnes? As in: You have a number of the form 2[sup]n[/sup] - 1, and you want to know it’s prime. n is of course prime (this is a well-known necessary condition for Merseinne primes). Now, if 2[sup]n[/sup]-1 is a true Merseinne prime, then there’s an associated perfect number 2[sup]n-1[/sup](2[sup]n[/sup] - 1). Again assuming that our starting number is prime, it’s very easy to find all of the factors of this potential perfect number. Add up these known factors, and see if they add up to the potential perfect. If they do, well, you still don’t know if your original number was prime, but if they don’t, then you can be sure it wasn’t. Is this a practical test?

---

<div class="post-metadata">

**Author:** ![ultrafilter](https://avatars.discourse-cdn.com/v4/letter/u/3d9bf3/32.png) [@ultrafilter](https://boards.straightdope.com/u/ultrafilter)\
**Post date:** [July 1, 2005, 10:05pm UTC](https://boards.straightdope.com/t/more-perfect-numbers/310676/10 "2005-07-01T22:05:27Z")

</div>

Maybe, but probably not. There are some very fast and highly accurate tests for primality, and factoring is slow. Now, if you show us a quick way to factor, we’re talking something interesting…

---

<div class="post-metadata">

**Author:** ![ultrafilter](https://avatars.discourse-cdn.com/v4/letter/u/3d9bf3/32.png) [@ultrafilter](https://boards.straightdope.com/u/ultrafilter)\
**Post date:** [July 1, 2005, 10:11pm UTC](https://boards.straightdope.com/t/more-perfect-numbers/310676/11 "2005-07-01T22:11:06Z")

</div>

Strike that. 2[sup]n - 1[/sup] only has at less bit than 2[sup]n[/sup] - 1, so if you can factor the former quickly, you can just factor the latter almost as quickly.

---

<div class="post-metadata">

**Author:** ![RM\_Mentock](https://avatars.discourse-cdn.com/v4/letter/r/e274bd/32.png) [@RM\_Mentock](https://boards.straightdope.com/u/RM_Mentock)\
**Post date:** [July 1, 2005, 10:18pm UTC](https://boards.straightdope.com/t/more-perfect-numbers/310676/12 "2005-07-01T22:18:24Z")

</div>

> [@Chronos](#):
>
> A thought: Could perfect numbers be used as part of the prime-testing process for Merseinnes? As in: You have a number of the form 2[sup]n[/sup] - 1, and you want to know it’s prime. n is of course prime (this is a well-known necessary condition for Merseinne primes). Now, if 2[sup]n[/sup]-1 is a true Merseinne prime, then there’s an associated perfect number 2[sup]n-1[/sup](2[sup]n[/sup] - 1). Again assuming that our starting number is prime, it’s very easy to find all of the factors of this potential perfect number. Add up these known factors, and see if they add up to the potential perfect. If they do, well, you still don’t know if your original number was prime, but if they don’t, then you can be sure it wasn’t. Is this a practical test?

No, it’s not practical.

We _know_ that the sum of all the easy to find factors is equal to the number.

For a given number whose prime factorization is A^a x B^b x C^c x …, where A, B, C are unique primes, then the sum of all its factors is (A^a + A^(a-1) + … + A + 1) x (B^b +…) x (C^c + …) x …

The sum of all the factors of 2[sup]n-1[/sup](2[sup]n[/sup] - 1) where the factors are a power of two, or powers of two times (2[sup]n[/sup] - 1), is 2[sup]n-1[/sup](2[sup]n[/sup] - 1) regardless of whether (2[sup]n[/sup] - 1) is prime or not.

> [@ultrafilter](#):
>
> Strike that. 2[sup]n - 1[/sup] only has at less bit than 2[sup]n[/sup] - 1, so if you can factor the former quickly, you can just factor the latter almost as quickly.

I can factor 2[sup]n - 1[/sup] _very_ quickly! 🙂

It’s 2 times 2[sup]n - 2[/sup]

---

<div class="post-metadata">

**Author:** ![Chronos](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/chronos/32/134_2.png) [@Chronos](https://boards.straightdope.com/u/Chronos)\
**Post date:** [July 1, 2005, 11:34pm UTC](https://boards.straightdope.com/t/more-perfect-numbers/310676/13 "2005-07-01T23:34:31Z")

</div>

> [@](#):
>
> No, it’s not practical.
> 
> We know that the sum of all the easy to find factors is equal to the number.

Ah. I should have realized that. And in fact that’s probably a big chunk of Euler’s proof, isn’t it?

---

<div class="post-metadata">

**Author:** ![RM\_Mentock](https://avatars.discourse-cdn.com/v4/letter/r/e274bd/32.png) [@RM\_Mentock](https://boards.straightdope.com/u/RM_Mentock)\
**Post date:** [July 2, 2005, 12:30pm UTC](https://boards.straightdope.com/t/more-perfect-numbers/310676/14 "2005-07-02T12:30:38Z")

</div>

> [@Chronos](#):
>
> Ah. I should have realized that. And in fact that’s probably a big chunk of Euler’s proof, isn’t it?

Yes, the rest of it is proving that all even perfect numbers have that form.

---

<div class="post-metadata">

**Author:** ![ultrafilter](https://avatars.discourse-cdn.com/v4/letter/u/3d9bf3/32.png) [@ultrafilter](https://boards.straightdope.com/u/ultrafilter)\
**Post date:** [July 2, 2005, 4:04pm UTC](https://boards.straightdope.com/t/more-perfect-numbers/310676/15 "2005-07-02T16:04:11Z")

</div>

> [@RM Mentock](#):
>
> I can factor 2[sup]n - 1[/sup] _very_ quickly! 🙂
> 
> It’s 2 times 2[sup]n - 2[/sup]

😛

Anyway, the point is this: something would have to be very unusual for the running time of a general purpose factorization to depend on anything other than the number of bits in its input, so it’s going to be faster to just factor 2[sup]n[/sup] - 1 than to factor 2[sup]n - 1[/sup](2[sup]n[/sup] - 1).

btw, in binary, 2[sup]n - 1[/sup] is 10[sup]n - 2[/sup], while 2[sup]n[/sup] - 1 is 1[sup]n - 1[/sup]. That’s the same number of bits (despite what I said earlier).

---

<div class="post-metadata">

**Author:** ![Mathochist](https://avatars.discourse-cdn.com/v4/letter/m/c89c15/32.png) [@Mathochist](https://boards.straightdope.com/u/Mathochist)\
**Post date:** [July 2, 2005, 10:53pm UTC](https://boards.straightdope.com/t/more-perfect-numbers/310676/16 "2005-07-02T22:53:23Z")

</div>

> [@Exapno Mapcase](#):
>
> That’s what’s really holding back the search.

Well, also as I stated nobody but hobbyists are really doing much searching. Despite a lot of people hearing about them as young students (since the condition can be stated so simply), perfect numbers just aren’t really good for anything.

Incidentally, I’m still waiting to see if anyone finds the hidden joke. **Dex** , no telling 😃

---

<div class="post-metadata">

**Author:** ![John\_W.Kennedy](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/john_w.kennedy/32/1031_2.png) [@John\_W.Kennedy](https://boards.straightdope.com/u/John_W.Kennedy)\
**Post date:** [July 3, 2005, 12:48am UTC](https://boards.straightdope.com/t/more-perfect-numbers/310676/17 "2005-07-03T00:48:35Z")

</div>

Yeah, I’ve got a LISP program (of all the languages I have, it does big-precision arithmetic fastest) which gets the first 15 in a couple of seconds and the next 5 in a few minutes, but to get much beyond that you have to dedicate a supercomputer.

---

<div class="post-metadata">

**Author:** ![Mathochist](https://avatars.discourse-cdn.com/v4/letter/m/c89c15/32.png) [@Mathochist](https://boards.straightdope.com/u/Mathochist)\
**Post date:** [July 3, 2005, 1:50am UTC](https://boards.straightdope.com/t/more-perfect-numbers/310676/18 "2005-07-03T01:50:11Z")

</div>

> [@Mathochist](#):
>
> Incidentally, I’m still waiting to see if anyone finds the hidden joke. **Dex** , no telling 😃

Actually, now that I’ve looked at the final result of my work, it seems that the joke was so carefully crafted and hidden that it’s been edited out!

---

<div class="post-metadata">

**Author:** ![RM\_Mentock](https://avatars.discourse-cdn.com/v4/letter/r/e274bd/32.png) [@RM\_Mentock](https://boards.straightdope.com/u/RM_Mentock)\
**Post date:** [July 3, 2005, 3:16am UTC](https://boards.straightdope.com/t/more-perfect-numbers/310676/19 "2005-07-03T03:16:19Z")

</div>

> [@ultrafilter](#):
>
> Anyway, the point is this: something would have to be very unusual for the running time of a general purpose factorization to depend on anything other than the number of bits in its input, so it’s going to be faster to just factor 2[sup]n[/sup] - 1 than to factor 2[sup]n - 1[/sup](2[sup]n[/sup] - 1).

No, general purpose factoring, when the input is a string of binary zeroes, would always truncate the trailing zeroes. The factors of two are easy to ignore.

> [@](#):
>
> btw, in binary, 2[sup]n - 1[/sup] is 10[sup]n - 2[/sup], while 2[sup]n[/sup] - 1 is 1[sup]n - 1[/sup]. That’s the same number of bits (despite what I said earlier).

You must have left something out. Of the four numerals, the first three include the digit two so they’re not binary, and the last one is always 1, no matter what base, or what n equals.

---

<div class="post-metadata">

**Author:** ![RM\_Mentock](https://avatars.discourse-cdn.com/v4/letter/r/e274bd/32.png) [@RM\_Mentock](https://boards.straightdope.com/u/RM_Mentock)\
**Post date:** [July 3, 2005, 3:17am UTC](https://boards.straightdope.com/t/more-perfect-numbers/310676/20 "2005-07-03T03:17:29Z")

</div>

string of binary _digits_ :smack:

[Next page](https://boards.straightdope.com/t/more-perfect-numbers/310676.md?page=2)
