Deficient Number Calculator

Check whether the divisors of an integer add to less than twice the number itself.

Math and PercentUpdated 2026-11-182 min read
Deficient Number Calculator
A whole number from 1 to 1,000,000.
Sum of divisors
...
Shortfall from 2n...
Classification...

What it does

A deficient number is one whose positive divisors add to less than twice the number itself. In terms of proper divisors, they add to less than the number. Every prime is deficient because its only divisors are one and itself, giving a sum of p plus one, which is well below two p.

Together with perfect and abundant numbers, this classification goes back to the Greeks. Nicomachus set out the three categories, and the names have remained in use ever since.

The deficit is twice the number minus the divisor sum. A positive deficit means deficient, zero means perfect and a negative value means abundant. This page computes the divisor sum exactly from the prime factorization and reports the deficit.

The computation avoids listing all divisors, so the tool stays fast up to one million. It also reports perfect numbers separately rather than treating them as deficient.

The result is an exact integer, and the tool returns a clear error for inputs outside the allowed range.

How to use

  1. Enter a whole number n from 1 to 1,000,000.
  2. Read the classification in the main result box.
  3. Check the divisor total beside it.
  4. Use the deficit to measure how far the number is from perfect.
  5. The default n = 10 reproduces the worked example.
  6. Try n = 12 to see an abundant number with a negative deficit.

Formula

Classification by 2n - sigma(n): positive is deficient, zero is perfect, negative is abundant
n
The integer being classified.
sigma(n)
The sum of all positive divisors of n.
deficit
2n minus sigma(n).

The divisor sum is multiplicative, so it is computed from the prime factorization. Because sigma includes n, a deficient number has proper divisors summing to less than n. The case n = 1 has sigma of 1 and deficit 1, so it is deficient.

Worked example

Example: n = 10

The page opens with n = 10.

  1. Factor 10 as 2 x 5.
  2. The prime 2 contributes 1 + 2 = 3.
  3. The prime 5 contributes 1 + 5 = 6.
  4. Multiply the contributions: 3 x 6 = 18.
  5. Compute twice the number: 2 x 10 = 20.
  6. The deficit is 20 - 18 = 2, which is positive.
  7. The tool reports sigma 18, deficit 2, and Deficient.

Reference table

Divisor sums and deficits
nsigma(n)DeficitClassification
111Deficient
6120Perfect
10182Deficient
1228-4Abundant
171816Deficient

Limits

  • Only positive integers up to one million are accepted.
  • The divisor sum includes n itself.
  • The tool classifies one number at a time.
  • A negative deficit means the number is abundant.

Common mistakes

  • Forgetting that the divisor sum includes n itself.
  • Comparing with n rather than twice n.
  • Assuming every odd number is deficient.
  • Reporting zero deficit as deficient.
  • Using the count of divisors instead of the sum.

Try it yourself

Quick checks. Answers sit tucked under each question.

Is 10 deficient?

Yes. Its divisors sum to 18, giving a deficit of 2 from 20.

Is 17 deficient?

Yes. Its divisors sum to 18 and 2 x 17 is 34, so the deficit is 16.

What is the deficit for 12?

24 - 28 = -4, so 12 is abundant.

Questions

What does deficient mean?

The sum of divisors is less than twice the number.

Is every prime deficient?

Yes, because the divisor sum is p plus one, far below two p.

Is one deficient?

Yes, with divisor sum 1 and deficit 1.

Can an even number be deficient?

Yes, for example 10 is deficient.

Are results exact?

Yes, the divisor sum uses integer arithmetic.

What input range is accepted?

Whole numbers from 1 through 1,000,000.

Sources

How this page was checked. The formula above was matched against the cited sources, and the worked example was run through the tool on this page before publishing. If you spot an error, contact us so we can fix it and note the correction.