Deficient Number Calculator - Check Any Number Fast

Any whole number from 1 to 1,000,000,000,000

Counts deficient, perfect and abundant numbers from 1 to this limit (max 20,000)

Results

16 is deficient16 is a prime power, so it’s automatically deficient.Deficiency of exactly 1 — 16 is an almost perfect number.

Aliquot sum s(n)

15

Deficiency n − s(n)

1

Divisor sum σ(n)

31

Proper divisors (4)

1, 2, 4, 8

Prime factorization: 24

Nearby numbers

ns(n)Class
131Deficient
1410Deficient
159Deficient
1615Deficient
171Deficient
1821Abundant
191Deficient

Every number from 1 to 100

76 deficient (76.0%)

2 perfect (2.0%)

22 abundant (22.0%)

Perfect numbers found: 6, 28

First abundant numbers: 12, 18, 20, 24, 30, 36, 40, 42, 48, 54, 56, 60, 66, 70, 72, 78, 80, 84, 88, 90, 96, 100

How to Use This Calculator

  1. Type any whole number into the “Number to check” field — the result updates as you type.
  2. Read the colored badge: green means deficient, amber perfect, red abundant.
  3. Compare the two bars — the divisor bar shows how far the aliquot sum s(n) falls short of (or overshoots) the number itself.
  4. Check the “Nearby numbers” table to see how the classification flips as you move up or down by 1.
  5. Use the “Scan every number up to” field to count deficient, perfect and abundant numbers across a whole range at once.

Share this calculator

Help others solve their calculations

Found this calculator helpful? Share it with your friends, students, or colleagues who might need it!

Deficient Number Calculator: The Third Class Most Lists Leave Out

About the Author

Marko Šinko - Co-Founder & Lead Developer

Marko Šinko

Co-Founder & Lead Developer, AI Math Calculator

Lepoglava, Croatia
Advanced Algorithm Expert

Croatian developer with a Computer Science degree from University of Zagreb and expertise in advanced algorithms. Co-founder of award-winning projects, ensuring precise mathematical computations and reliable calculator tools.

📅 Published:
Deficient Number Calculator comparing each number against its divisor-sum bar, with most bars falling short of the target

Roughly three out of every four whole numbers are deficient, and a deficient number calculator tells you in one subtraction whether yours is one of them. Add up a number’s proper divisors — every divisor except the number itself — and compare the total to the number. Falls short? Deficient. Matches exactly? Perfect. Overshoots? Abundant. Perfect and abundant numbers get all the attention, which is odd, because they’re the rare exceptions. This page covers the majority class: how the check works, why entire families of numbers can never escape it, and the one open question about deficiency that’s been unsolved for centuries.

How a Deficient Number Calculator Decides in One Subtraction

The quantity doing the work is the aliquot sum, written s(n): the sum of all proper divisors of n. Take 21. Its divisors are 1, 3, 7 and 21; drop the number itself and the proper divisors are 1, 3 and 7. So s(21) = 11, which is well below 21 — deficient, with a deficiency of 21 − 11 = 10.

There’s a shortcut worth knowing. The divisor function σ(n) sums all divisors including n, and it has a clean product formula built from the prime factorization. The aliquot sum is then just s(n) = σ(n) − n. That’s how this calculator handles numbers up to a trillion without listing anything: it factors the number (you can do the same step separately with the prime factorization calculator), applies the formula, and subtracts. For 21: σ(21) = (1 + 3)(1 + 7) = 32, and 32 − 21 = 11. Same answer, no list needed.

Check 16, 18 and 19 by Hand

Three consecutive-ish numbers, three different stories. Working them by hand shows how sensitive the classification is:

Hand-checked aliquot sums for 16, 18 and 19
nProper divisorss(n)Verdict
161, 2, 4, 815Deficient by exactly 1
181, 2, 3, 6, 921Abundant by 3
1911Deficient by 18

Notice the spread. 19 misses by 18 — about as deficient as a number that size can be. 16 misses by the smallest possible margin. And 18, sitting between them, tips over into abundance because it stacks two small prime factors (2 and 3²) that generate lots of mid-sized divisors. Divisor wealth isn’t about being big; it’s about being built from small primes. If the abundant side of the line is what you’re after, the abundant number calculator digs into that half of the story.

Why Is Every Prime Power Deficient?

A prime p has one proper divisor: 1. So s(p) = 1, and no prime will ever be anything but deficient. The surprise is that raising a prime to any power doesn’t help. The proper divisors of pk are 1, p, p², …, pk−1 — a geometric series that sums to (pk − 1)/(p − 1). For p = 2 that’s 2k − 1, one short of the number. For any larger prime the shortfall only grows: the series sums to less than half of pk when p ≥ 3.

Aliquot sums of small prime powers
Prime powers(n)Deficiency
8 = 2³1 + 2 + 4 = 71
27 = 3³1 + 3 + 9 = 1314
125 = 5³1 + 5 + 25 = 3194

The pattern in that third column matters: powers of 2 always miss by exactly 1, while powers of odd primes miss by more than half the number. Escaping deficiency requires combining different primes — and even that usually isn’t enough. The product of two distinct odd primes is always deficient too: s(3 × 5) = 1 + 3 + 5 = 9 < 15. In fact every odd number below 945 is deficient. Not one exception.

Deficiency 1: The Almost Perfect Club

Numbers whose aliquot sum lands exactly one short — s(n) = n − 1 — are called almost perfect. Every power of 2 qualifies: 16 has s(16) = 15, 32 has s(32) = 31, and so on forever, since 1 + 2 + … + 2k−1 = 2k − 1. Here’s the part that should bother you: nobody has ever found an almost perfect number that isn’t a power of 2, and nobody has proved none exists. The question has resisted proof for centuries, which puts it in the same family of stubborn problems as the search for odd perfect numbers. Type a few powers of 2 into the calculator above and watch the deficiency pin to 1 every single time — then try to find anything else that does it. Sequence A005100 in the OEIS catalogs the deficient numbers if you want to explore the full list.

How Rare Is a Non-Deficient Number?

Rarer than most people guess. Run the range scanner above at a few different limits and the split barely moves:

Counts of deficient, perfect and abundant numbers by range
Up toDeficientPerfectAbundant% deficient
1007622276.0%
1,000751324675.1%
10,0007,50842,48875.1%
1,000,000752,4514247,54575.2%

That stability is real, not a coincidence of small samples — the density of deficient numbers converges to roughly 75.2% of all integers. Perfect numbers, meanwhile, are absurdly scarce: four below a million, and only around 50 known in total even with modern computer searches. So when a textbook presents “deficient, perfect, abundant” as three parallel categories, keep the actual proportions in mind. It’s a landslide, a rounding error, and a solid minority.

Deficient Numbers Run in the Family

One property makes deficient numbers structurally different from abundant ones: deficiency is inherited downward. Every proper divisor of a perfect number is deficient, and every proper divisor of a deficient number is deficient too. Check it against 28, which is perfect: its proper divisors 1, 2, 4, 7 and 14 are all deficient (s(14) = 1 + 2 + 7 = 10, for instance). Abundance works in the opposite direction — every multiple of an abundant number is abundant, which is why once 12 shows up, 24, 36, 48 and the rest of its multiples are locked in.

This gives you a fast mental filter. A number that divides a known perfect or deficient number never needs checking. And a number divisible by 12, 18, 20 or any other known abundant number is abundant, full stop. The hand computation is only ever needed for the cases the two inheritance rules don’t already settle.

Where the Hand Check Goes Wrong

Two specific slips account for nearly every wrong classification, and both are worth naming because each one flips the verdict rather than just nudging a digit:

  • Counting the number as its own divisor. Include 16 in the divisor sum and you get 31, which reads as abundant. The correct proper-divisor sum is 15 — deficient. This single mistake converts every deficient number with s(n) > something small into a false abundant, because adding n to the sum always pushes the total past n.
  • Forgetting 1. Every number greater than 1 has 1 as a proper divisor. Drop it and 16’s sum becomes 14 instead of 15 — still deficient here, but the same slip turns the perfect number 6 (1 + 2 + 3 = 6) into a false deficient (2 + 3 = 5).

One more edge case trips people up: the number 1. It has no proper divisors at all, so s(1) = 0, which is less than 1 — making 1 the smallest deficient number. Some older texts exclude it by convention, but under the standard definition it counts, and this calculator classifies it that way.

Frequently Asked Questions

Still Have Questions?

The detailed content on this page provides comprehensive explanations and examples to help you understand better.