Perfect Number Checker

Discover the magic of perfect numbers. Check if a number is perfect, abundant, or deficient. Explore their fascinating properties and history.

Definition: A perfect number is a positive integer that equals the sum of its proper positive divisors (excluding itself).

For example: 6 = 1 + 2 + 3, 28 = 1 + 2 + 4 + 7 + 14

Enter a positive integer to check if it's perfect
Maximum number to check when searching for perfect numbers
6 (Perfect)
28 (Perfect)
496 (Perfect)
8128 (Perfect)
12 (Abundant)
8 (Deficient)
33,550,336 (Perfect)
8,589,869,056 (Perfect)
Calculating...

The Fascinating World of Perfect Numbers

Perfect numbers have fascinated mathematicians for millennia. They are numbers that are equal to the sum of their proper positive divisors (excluding the number itself).

Mathematical Definition:

A positive integer n is called perfect if:

σ(n) = 2n

where σ(n) is the sum of all positive divisors of n. Equivalently:

s(n) = n

where s(n) = σ(n) - n is the sum of proper divisors.

Euclid-Euler Theorem

The Euclid-Euler theorem establishes a fundamental connection between perfect numbers and Mersenne primes:

1

Even Perfect Numbers: Every even perfect number can be written as:

2p-1 × (2p - 1)

where (2p - 1) is a Mersenne prime (a prime number of the form 2p - 1).

2

Conversely: If (2p - 1) is prime (a Mersenne prime), then 2p-1 × (2p - 1) is a perfect number.

3

Odd Perfect Numbers: As of today, no odd perfect numbers have been discovered. It is unknown whether any exist, though if they do, they must be greater than 101500 and satisfy numerous restrictive conditions.

Known Perfect Numbers

# Perfect Number Mersenne Prime Digits Year Discovered
1 6 3 (2²-1) 1 Ancient
2 28 7 (2³-1) 2 Ancient
3 496 31 (2⁵-1) 3 Ancient
4 8,128 127 (2⁷-1) 4 Ancient
5 33,550,336 8,191 (2¹³-1) 8 1456
6 8,589,869,056 131,071 (2¹⁷-1) 10 1588
7 137,438,691,328 524,287 (2¹⁹-1) 12 1588
8 2,305,843,008,139,952,128 2,147,483,647 (2³¹-1) 19 1772
9 2.658×10³⁶ 2,305,843,009,213,693,951 37 1883
51* 2⁸²⁵⁸⁹⁹³²×(2⁸²⁵⁸⁹⁹³³-1) 2⁸²⁵⁸⁹⁹³³-1 49,724,095 2018

* As of 2023, 51 perfect numbers are known, corresponding to 51 known Mersenne primes.

Properties of Perfect Numbers

Interesting Properties:

  • Every even perfect number is triangular: Tn = n(n+1)/2
  • Every even perfect number ends in 6 or 28 in base 10
  • Perfect numbers are also harmonic divisor numbers
  • They have connections to binary representation: 6 = 110₂, 28 = 11100₂, 496 = 111110000₂
  • The sum of the reciprocals of the divisors of a perfect number is always 2

Historical Timeline

~300 BCE

Euclid discovered the formula for even perfect numbers in his Elements (Book IX, Proposition 36).

~100 CE

Nicomachus listed the first four perfect numbers (6, 28, 496, 8128) in his "Introduction to Arithmetic".

1456

The fifth perfect number (33,550,336) was discovered in a manuscript, though the discoverer is unknown.

1588

Pietro Cataldi correctly identified the sixth and seventh perfect numbers.

1772

Leonhard Euler proved that every even perfect number has the form described by Euclid (completing the Euclid-Euler theorem).

1883

Ivan Pervushin discovered the ninth perfect number, which had 37 digits.

2018

The 51st known perfect number was discovered, corresponding to the Mersenne prime 2⁸²⁵⁸⁹⁹³³-1, with over 49 million digits.

Applications and Significance

  • Mathematics: Perfect numbers are deeply connected to prime numbers, specifically Mersenne primes
  • Number Theory: They are examples of "friendly numbers" and have connections to the Riemann hypothesis
  • Computer Science: Used in pseudorandom number generation and hash functions
  • Cryptography: Mersenne primes (related to perfect numbers) are used in some cryptographic algorithms
  • Cultural Significance: Perfect numbers appear in religious texts, architecture, and philosophy

Calculator Features:

  • Check if a number is perfect, abundant, or deficient
  • Find all perfect numbers up to a specified limit
  • Visualize divisors and their sums
  • Explore connections with Mersenne primes
  • Analyze nearby numbers and their classifications
  • Learn about the history and properties of perfect numbers

Frequently Asked Questions

  • Perfect number: Sum of proper divisors equals the number itself (e.g., 6, 28)
  • Abundant number: Sum of proper divisors exceeds the number (e.g., 12, 1+2+3+4+6=16 > 12)
  • Deficient number: Sum of proper divisors is less than the number (e.g., 8, 1+2+4=7 < 8)
About 75% of numbers are deficient, 23% are abundant, and perfect numbers are extremely rare.

This is an open question in mathematics. Since even perfect numbers correspond to Mersenne primes (numbers of the form 2p-1 that are prime), and it is unknown whether there are infinitely many Mersenne primes, we don't know if there are infinitely many perfect numbers. Most mathematicians believe there are infinitely many of both, but this has not been proven.

This is one of the oldest unsolved problems in mathematics. No odd perfect numbers have ever been found. Euler proved that if an odd perfect number exists, it must have the form p4k+1×Q² where p is a prime of the form 4k+1, and Q is an odd integer. Computer searches have verified that there are no odd perfect numbers below 10¹⁵⁰⁰, but whether any exist at all remains unknown.

The term "perfect" was coined by the Pythagoreans, who believed these numbers had mystical properties. In their philosophy, numbers had personalities and characteristics. Perfect numbers were thought to represent perfection and harmony because their parts (divisors) added up to the whole. Saint Augustine (354-430 AD) also wrote about perfect numbers, saying "Six is a number perfect in itself, and not because God created all things in six days; rather, the converse is true. God created all things in six days because six is a perfect number."

Modern perfect number discovery is tied to the Great Internet Mersenne Prime Search (GIMPS), a distributed computing project where volunteers run software on their computers to test Mersenne numbers for primality. When a new Mersenne prime is found (a prime number of the form 2p-1), it automatically yields a new even perfect number using the formula 2p-1×(2p-1). The largest known perfect numbers have millions of digits and are discovered through this collaborative effort.