Generate Perfect Numbers
Generate perfect numbers using high-precision calculations.
What is a Perfect Number?
A perfect number is a positive integer that is equal to the sum of its positive proper divisors (all positive divisors excluding the number itself).
For example, 6 is a perfect number because its proper divisors are 1, 2, and 3, and:
The next perfect number is 28, because its proper divisors are 1, 2, 4, 7, and 14, and:
The Euclid-Euler Theorem
Euclid discovered that the first four perfect numbers are generated by the formula:
where $2^p - 1$ is a prime number (known as a Mersenne prime). Euler later proved that every even perfect number must be of this form.
Because Mersenne primes are extremely rare and grow extremely quickly, perfect numbers are also very sparse:
- The 3rd perfect number is 496 (for $p = 5$).
- The 4th perfect number is 8,128 (for $p = 7$).
- The 5th perfect number is 33,550,336 (for $p = 13$).
- The 8th perfect number is 2,305,843,008,139,952,128 (for $p = 31$).
Unsolved Mysteries
Despite centuries of study, some of the most fundamental questions about perfect numbers remain unsolved:
- Are there any odd perfect numbers? No odd perfect number has ever been found, and it has been proven that none exist below $10^{1500}$.
- Are there infinitely many perfect numbers? This is still an open question, directly tied to whether there are infinitely many Mersenne primes.
Frequently Asked Questions
How many perfect numbers are known?
As of today, only 51 perfect numbers have been discovered. They correspond directly to the 51 known Mersenne primes.
What is the relation between perfect numbers and Mersenne primes?
Every even perfect number can be written in the form $2^{p-1}(2^p - 1)$, where $2^p - 1$ is a Mersenne prime. If you find a new Mersenne prime, you automatically find a new perfect number.
Do odd perfect numbers exist?
It is currently unknown. No odd perfect numbers have been discovered, but mathematicians have not yet proven that they cannot exist. If they do exist, they must be extremely large (greater than $10^{1500}$).
Related tools
Your recent visits