Perfect Number Calculator — Check, Generate & Explore

A perfect number is a positive integer that equals the sum of its proper divisors. The first perfect number is 6, since 1 + 2 + 3 = 6. Our Perfect Number Calculator lets you instantly check whether any number is perfect, abundant, or deficient — while showing divisors, aliquot sums, and step-by-step verification for every calculation.
Perfect numbers have captivated mathematicians for over 2,000 years. Euclid proved in 300 BC that numbers of the form 2p−1(2p − 1) are perfect whenever 2p − 1 is prime. Today, only 51 even perfect numbers are known, and whether any odd perfect number exists remains one of mathematics' greatest open questions.
How to Check if a Number Is Perfect
Our perfect number checker tests any positive integer up to 100,000,000. Enter a number in the input field, click Check, and the calculator instantly:
- Finds all proper divisors (factors of n smaller than n)
- Computes the aliquot sum — the sum of those proper divisors
- Compares the aliquot sum with n to classify it as perfect, abundant, or deficient
- Displays the abundancy index σ(n)/n and full divisor analysis
A number is perfect when its aliquot sum equals the number, abundant when the sum is greater, and deficient when the sum is less. For example, 12 is abundant (1+2+3+4+6 = 16 > 12), while 10 is deficient (1+2+5 = 8 < 10).
How to Find Perfect Numbers — The Euler–Euclid Formula
Every even perfect number can be generated with the Euler–Euclid formula: if 2p − 1 is a Mersenne prime, then 2p−1 × (2p − 1) is a perfect number. Our perfect number generator lets you pick a Mersenne exponent and instantly produce the corresponding perfect number.
| # | p | 2p−1 (Mersenne prime) | Perfect Number |
|---|---|---|---|
| 1st | 2 | 3 | 6 |
| 2nd | 3 | 7 | 28 |
| 3rd | 5 | 31 | 496 |
| 4th | 7 | 127 | 8,128 |
| 5th | 13 | 8,191 | 33,550,336 |
The fifth perfect number is 33,550,336, discovered in 1461 by an unknown mathematician. Notice how rapidly perfect numbers grow — the 6th is already 8,589,869,056, and the largest known perfect number has over 49 million digits.
What Is the Aliquot Sum and Why Does It Matter?
The aliquot sum s(n) of a positive integer n is the sum of all its proper divisors — every positive factor of n except n itself. Our calculator displays the aliquot sum for every number you check.
- If s(n) = n, the number is perfect (e.g., s(28) = 1+2+4+7+14 = 28)
- If s(n) > n, the number is abundant (e.g., s(12) = 1+2+3+4+6 = 16)
- If s(n) < n, the number is deficient (e.g., s(10) = 1+2+5 = 8)
The aliquot sum is central to number theory. It defines amicable numbers (pairs where s(a) = b and s(b) = a), sociable numbers (chains of aliquot sums), and the open Catalan–Dickson conjecture about aliquot sequences. Use our calculator alongside the factor calculator or divisibility calculator for deeper divisor exploration.
Perfect Numbers, Mersenne Primes, and Open Problems
Every even perfect number is tied to a Mersenne prime — a prime of the form 2p − 1. Euler proved the converse of Euclid's theorem: every even perfect number has the form 2p−1(2p − 1). This tight connection means that discovering a new Mersenne prime automatically yields a new perfect number.
As of 2024, 51 Mersenne primes are known (via the GIMPS project), so 51 even perfect numbers are known. The largest has over 49 million digits. Whether any odd perfect number exists remains unsolved — if one exists, researchers have shown it must exceed 102000 and have at least 101 prime factors.
To explore the prime foundations of these numbers, try our prime calculator and prime factorization calculator. For computing the large powers of 2 in the Euler–Euclid formula, our exponent calculator is a helpful companion tool.
Properties of Perfect Numbers
Perfect numbers exhibit surprising mathematical patterns that connect them to many areas of number theory:
- Triangular numbers: Every even perfect number is also a triangular number. For instance, 28 = 1+2+3+4+5+6+7, and 6 = 1+2+3.
- Digital root: Except for 6, every even perfect number has a digital root of 1 and ends in either 6 or 8 in decimal.
- Reciprocal sum: The sum of the reciprocals of all divisors of a perfect number always equals 2. For 6: 1/1 + 1/2 + 1/3 + 1/6 = 2.
- Binary representation: In binary, even perfect numbers look elegant — for example, 6 = 110₂, 28 = 11100₂, 496 = 111110000₂.
- Abundancy index: A number is perfect if and only if its abundancy index σ(n)/n = 2. Our calculator displays this metric for every input.
These properties make perfect numbers a natural bridge between elementary arithmetic and advanced number theory. Students can verify each property using our calculator alongside the greatest common factor calculator and even odd calculator.
About the Author
How to Use the Perfect Number Calculator for Education
This tool is designed for students, teachers, and math enthusiasts exploring number theory. Here are practical ways to use it:
Perfect Number Calculator in Classroom Activities
Have students check every number from 1 to 30 and sort them into perfect, abundant, and deficient groups. They'll discover that most numbers are deficient, a few are abundant, and perfect numbers are extremely rare — only 6 and 28 appear below 100.
Homework Verification
Students working on number theory assignments can verify their manual divisor calculations. The step-by-step breakdown shows exactly how each proper divisor is found and summed, making it easy to identify mistakes in hand calculations.
Contest and Competition Preparation
Math competitions frequently ask questions about divisor sums, abundant numbers, and perfect number properties. Use the generator feature to quickly recall the first five perfect numbers and their Mersenne prime origins. Understanding these relationships gives competitors an edge in number theory problems.
For related number theory exploration, our composite number calculator helps classify numbers by their prime structure, and the arithmetic sequence calculator reveals patterns in mathematical sequences.
Frequently Asked Questions About Perfect Numbers
What is the fifth perfect number?
The fifth perfect number is 33,550,336. It corresponds to the Mersenne prime 213 − 1 = 8,191, and is calculated as 212 × 8,191. You can verify this instantly with our calculator by clicking the "33,550,336" button in the Known Perfect Numbers section.
Is there an odd perfect number?
No odd perfect number has ever been found. If one exists, it must be greater than 102000, have at least 101 prime factors (with at least 9 distinct), and satisfy hundreds of restrictive conditions. Most number theorists believe odd perfect numbers do not exist, but no proof has been found.
How many perfect numbers are there?
As of 2024, exactly 51 even perfect numbers are known, corresponding to the 51 known Mersenne primes. Whether infinitely many perfect numbers exist is an open question — it depends on whether infinitely many Mersenne primes exist.
What is the difference between a perfect number and an abundant number?
A perfect number has an aliquot sum (sum of proper divisors) exactly equal to itself. An abundant number has an aliquot sum greater than itself. For example, 28 is perfect (1+2+4+7+14 = 28), while 12 is abundant (1+2+3+4+6 = 16 > 12). Our calculator classifies any number you enter and shows exactly how much it exceeds or falls short.



