Logo

MonoCalc

/

Perfect Number Checker

Math
Any whole number from 1 up to 1,000,000,000,000.

Try:

Applies to the abundancy index and percentage figures, 0 to 10.

Divisor-sum classification of 28

28 is a Perfect Number

Perfect Numbers(n) = 285 proper divisors2^2 × (2^3 − 1)

Sum of proper divisors

28

Difference

0

The sum lands exactly on the number.

Abundancy index σ(n)/n

2.000

Exactly 2 for every perfect number.

Total divisors d(n)

6

Counting the number itself.

The divisor sum matches exactly
Trial division up to √28 finds the proper divisors 1, 2, 4, 7, 14, which add up to 28. That sum equals the number itself, so 28 is a perfect number.
Built by the Euclid–Euler formula
28 equals 2^2 × (2^3 − 1), where 2^3 − 1 is a Mersenne prime. Every even perfect number has this shape, and this one is the 2nd perfect number.

Proper divisors of 28

124714

Total: 28

About This Tool

Perfect Number Checker – Divisor Sums, Abundance and Deficiency

A perfect number is a positive whole number that equals the sum of its own proper divisors — every divisor except the number itself. The smallest is 6, because 1 + 2 + 3 = 6. This checker finds every proper divisor of the value you type, adds them up, and tells you whether the result is perfect, abundant or deficient, together with the full divisor list and a running total.

The Three Classifications

Write s(n) for the sum of the proper divisors of n, known as the aliquot sum. If s(n) = n the number is perfect. If s(n) > n it is abundant, and the gap is called the abundance or excess — 12 has divisors 1, 2, 3, 4 and 6 totalling 16, so it is abundant by 4. If s(n) < n the number is deficient, and the gap is its deficiency: 8 gives 1 + 2 + 4 = 7, one short. Every prime number is as deficient as it can be, since 1 is its only proper divisor. The number 1 is a special case — it has no proper divisors, so s(1) = 0 and 1 is always deficient, never perfect.

How the Divisors Are Found

Testing every candidate below n would be hopelessly slow for large inputs. Instead the calculator tests each i from 1 up to √n and, whenever n % i === 0, records both i and its partner n / i. Divisors always come in such pairs around the square root, so one pass over √n values finds them all. Checking a twelve-digit number then costs about a million steps rather than a trillion — the difference between instant and impossible in a browser.

The Euclid–Euler Theorem

Around 300 BCE, Euclid proved in the Elements that whenever 2^p − 1 is prime, the product 2^(p−1) × (2^p − 1) is perfect. Two thousand years later Euler proved the converse: every even perfect number takes that form. Primes of the shape 2^p − 1 are called Mersenne primes, and each one produces exactly one perfect number. With p = 2 you get 6, with p = 3 you get 28, then 496, 8128, and a jump straight to 33550336. The generator mode of this tool builds the candidate for any exponent you choose and runs the Lucas–Lehmer test to confirm whether the Mersenne factor really is prime.

A prime exponent is necessary but not sufficient
If p is composite then 2^p − 1 is composite too. The reverse fails: p = 11 is prime, yet 2^11 − 1 = 2047 = 23 × 89, so 2047 is not a Mersenne prime and 2^10 × 2047 is not perfect.

Why Perfect Numbers Are So Rare

Scanning from 1 to 10,000 finds only 6, 28, 496 and 8128. The next one, 33550336, is more than four thousand times further along, and the one after that has ten digits. Abundant numbers, by contrast, are common — roughly a quarter of all integers are abundant, and every multiple of 6 beyond 6 itself is abundant. The range scan reports the counts of all three classes so you can see this imbalance directly, along with the smallest abundant value in the interval, which is 12 whenever the scan starts at 1. Odd abundant numbers are far scarcer: the first is 945.

The Open Question About Odd Perfect Numbers

Every perfect number ever found is even. Whether an odd perfect number exists is one of the oldest unsolved problems in mathematics, dating back to Nicomachus in the first century. Exhaustive computation has ruled out everything below 10^1500, and any odd perfect number would need at least ten distinct prime factors and a prime power component above 10^62, yet no proof of impossibility exists. Because of this result, scans over very large intervals can safely list the known even perfect numbers instead of grinding through every value.

Reading the Output

Alongside the classification the tool reports the abundancy index σ(n)/n, which counts all divisors including n itself. It equals exactly 2 for a perfect number, sits above 2 for abundant numbers and below 2 for deficient ones — a single figure that captures the whole comparison. The running-sum table shows how far each successive divisor takes you toward the target, the divisor chips give the complete factor structure, and the CSV export carries every divisor with its cumulative total for use in a spreadsheet or a homework write-up.

Frequently Asked Questions

Is the Perfect Number Checker free?

Yes, Perfect Number Checker is totally free :)

Can I use the Perfect Number Checker offline?

Yes, you can install the webapp as PWA.

Is it safe to use Perfect Number Checker?

Yes, any data related to Perfect Number Checker only stored in your browser (if storage required). You can simply clear browser cache to clear all the stored data. We do not store any data on server.

How does this perfect number checker work?

It collects every proper divisor of your number by trial division up to the square root, pairing each divisor i with its cofactor n/i, then adds them up. If that aliquot sum equals the number the result is perfect; if it is larger the number is abundant, and if it is smaller the number is deficient. The full divisor list and a running total are shown so you can follow every step.

What is the difference between perfect, abundant and deficient numbers?

All three describe how the sum of a number's proper divisors compares with the number itself. 6 is perfect because 1 + 2 + 3 = 6, 12 is abundant because 1 + 2 + 3 + 4 + 6 = 16 exceeds 12 by 4, and 8 is deficient because 1 + 2 + 4 = 7 falls one short. Every prime is deficient, since its only proper divisor is 1.

Why is 1 never a perfect number?

The number 1 has no proper divisors at all — its only divisor is itself, which is excluded by definition. Its divisor sum is therefore 0, which is less than 1, so 1 is classified as deficient. This is a common point of confusion because 1 divides everything, but a number is never its own proper divisor.

What are the first few perfect numbers?

They are 6, 28, 496, 8128, 33550336, 8589869056 and 137438691328, and they thin out dramatically after that. Only 6 and 28 fall below 100, and just four are below ten thousand, which is why the range scan usually returns a very short list.

What is the Euclid–Euler theorem?

It says an even number is perfect exactly when it can be written as 2^(p−1) × (2^p − 1) with 2^p − 1 prime — a Mersenne prime. Euclid proved that this form always gives a perfect number around 300 BCE and Euler proved two thousand years later that every even perfect number must take it. The generator mode applies the Lucas–Lehmer test to confirm the Mersenne factor is genuinely prime before calling the result perfect.

Does an odd perfect number exist?

Nobody knows — it is one of the oldest unsolved problems in mathematics. Computer searches have ruled out every odd number below 10^1500, and any odd perfect number would have to satisfy a long list of severe constraints, yet no proof of impossibility exists. Because of this, range scans above the exhaustive-search limit list only the known even perfect numbers.