Is There a Quick Formula for Calculating Perfect Numbers?

  • Thread starter Thread starter harisma
  • Start date Start date
  • Tags Tags
    Formula
Click For Summary
SUMMARY

The forum discussion centers around a proposed formula for calculating perfect numbers, expressed as T(v)={{[1+sqrt(1+8*T(v-1))]*[1+sqrt(1+8*T(k))]}^2}/128 - {[1+sqrt(1+8*T(v-1))]*[1+sqrt(1+8*T(k))]}/16. This formula reportedly works for the first 15 perfect numbers but fails for larger ones, as confirmed by user harisma. The discussion also highlights the relationship between perfect numbers and Mersenne primes, specifically that a perfect number can be derived from the formula 2^(n-1)(2^n-1) when 2^n-1 is prime. The need for further testing of the formula on larger perfect numbers is emphasized.

PREREQUISITES
  • Understanding of perfect numbers and their properties
  • Familiarity with Mersenne primes and their significance
  • Basic knowledge of mathematical formulas and sequences
  • Programming skills for testing mathematical hypotheses
NEXT STEPS
  • Research the properties of Mersenne primes and their role in number theory
  • Learn about algorithms for testing primality, particularly for large numbers
  • Explore mathematical proofs related to perfect numbers and their generation
  • Investigate existing software tools for calculating perfect numbers and Mersenne primes
USEFUL FOR

Mathematicians, number theorists, computer scientists, and anyone interested in the study of perfect numbers and prime number theory.

harisma
Messages
3
Reaction score
0
Hi there:)

I found a quick formula for calculate perfect numbers.

T(v)={{[1+sqrt(1+8*T(v-1))]*[1+sqrt(1+8*T(k))]}^2}/128 - {[1+sqrt(1+8*T(v-1))]*[1+sqrt(1+8*T(k))]}/16

T(v-1) is the previous perfect number and T(k) is ONE of the previous, that is to say that k=(1 or 2 or ...or v)

This formula works fine for first 15 perfect numbers but i don't have the knowledge in computer's to test it in biggers perfects.

If the formula is right, then to find the 41 perfect number we have to check only 40 numbers!

If anyone has the knowledge in programing to test the formula that will be pretty good!
 
Last edited:
Physics news on Phys.org
This matter is about 2^(n-1)(2^n-1). In this case 2^n-1 is a prime, to be exact, called a Mersenne prime, of which much research has been done.

To find the sum of the factors (1+2+4+++2^(n-1)(1+2^n-1) =(2^n)(2^2), which is twice the original number, (since the number itself is counted as a divisor.)

So that the matter is all about determining if 2^n-1 is a prime or not. That seems to be as easy a way to proceed as any.
 
Looking at what you are doing in more detail, I take it that if we go through all the math, we are really saying that if 2^K-1 is prime and 2^m-1 is also a Mersenne prime, then by adding exponents and subtracting 1 we find that 2^(p+k-1)-1 is also a Mersenne prime.

Looking at Mersenne primes for N=2,3,5,7,13,17, 19, 31, 67, 127, 257...Of course disregard N=2, but proceeding to 496 and 8128, for N=5 and N=7, we would expect N=11 to be the next case, but N=13 is the next case. However for N=7 and N=13, the case of N=19, works out. Just as it does for 28 and 496, where N=3+5-1 =7, giving us the case of 8128. (The easiest and most likely case to test.)

You will observe that the list above of M. primes gets thinner and thinner so that no two of them can add up to 257. Your idea would allow an arithmatic sequence of primes. Of course, no such thing is know.
 
Last edited:
Tao and Green: existence of arbitrary length arithmetic sequences of primes.
 
Your idea would allow an arithmatic sequence of primes. Of course, no such thing is know.

Oops! I guess it is known. But it could not fit this case using any of the perfect numbers, as indicated by harisma.
 
Last edited:
Hello again!

Its not exactly an arithmetic sequence of primes . Its not a sequence because formula gives and others numbers, that they I don’t have some interest. Is a better way to calculate perfect numbers (and Mersenne’s prime’s of course).
But to be sure for this, must someone test it in bigger perfects!
 
The formula is wrong :/ it's not working in bigger perfects:(

Thank you!
 
harisma: The formula is wrong :/ it's not working in bigger perfects.

I thought Mr. Harisma that I had explained that: Of course disregard N=2, but proceeding to 496 and 8128, for N=5 and N=7, we would expect N=11 to be the next case, but N=13 is the next case.

However, I did make the mistake of generalizing this from the standpoint of an arithmetical progression. But there is no way in which any of your cases could allow us to progress to p=257, because the sum of 67 + 127 -1= 193, which is not a Mersenne prime, that is: 2^(193)-1 is not prime. (You will observe that the list of M. primes gets thinner and thinner so that no two of them can add up to 257.)
 
Last edited:
T_v=\frac{{(1+\sqrt{1+8T_{v-1}})*(1+\sqrt{1+8T_{k}})}^2}{128} - \frac{(1+\sqrt{1+8T_{v-1}})*(1+\sqrt{1+8T_{k}})}{16}

For the sake of making it easier to read, I think that's what you were trying to say^^
 
Last edited:
  • #10
Can you give us a formula to calculate odd primes? :)
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
1K
Replies
2
Views
2K
Replies
1
Views
1K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 3 ·
Replies
3
Views
884
  • · Replies 38 ·
2
Replies
38
Views
4K
  • · Replies 0 ·
Replies
0
Views
2K
  • · Replies 20 ·
Replies
20
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K