Perfect Number Calculator
Test whether n is perfect, deficient, or abundant with the full aliquot list, σ(n), and s(n).
Calculator
Perfect Number Inputs
Perfect Number Summary
Results
Classification
perfect
perfect / deficient / abundant
28
Sum of proper divisors
56
Sum of all divisors
5
How many proper divisors
0
0 = perfect; − = deficient; + = abundant
Classification by complete divisor-pair enumeration to √n; s(n), σ(n), and every proper divisor listed.
Visualizations
Proper divisors
Cumulative aliquot build-up
s(n) relative to 2n
s(n) vs n
Formula
The aliquot sum adds every proper divisor; its relation to n classifies the number.
Alternative Form
Variables
| Symbol | Name | Unit | Description |
|---|---|---|---|
| n | Input | integer | Positive integer 1–10,000,000 |
| s(n) | Aliquot sum | integer | Sum of proper divisors |
| σ(n) | Sigma | integer | Sum of all divisors = s(n)+n |
| gap | s(n) − n | integer | 0 perfect; negative deficient; positive abundant |
Explanation
Divisor bars stack each proper divisor; the stack height next to n shows the verdict at a glance.
Derivation
Enumerate divisor pairs (d, n/d) to √n, exclude n, sum for s(n), add n for σ(n). Euclid–Euler characterizes even perfects via Mersenne primes.
Step-by-Step Calculation
Follow each step to understand how the result is calculated from your inputs.
Read the input.
List proper divisors by scanning pairs to √n.
Add them to get the aliquot sum.
Add n back for σ(n).
Compare s(n) against n.
Verify the classification.
Worked Examples
See how the calculator works with different scenarios.
Scenario
Smallest perfect number.
Inputs
Calculation
1+2+3 = 6
Result
PERFECT
Interpretation
Aliquot sum equals n exactly.
Understanding Your Result
Your Result: Classification — perfect, deficient, or abundant (see the result card with s(n) and σ(n)).
Typical range: Most numbers are deficient; abundant numbers start at 12; perfects are vanishingly rare (6, 28, 496, 8128, …).
What This Means
Perfect balances exactly; deficient falls short; abundant overflows — the gap s(n)−n tells which.
Why It Matters
Aliquot sums drive amicable-pair detection, sociable chains, and the 2000-year hunt for odd perfects.
Professional Interpretation
Perfect verdict at scale hints at Mersenne-prime structure; abundance measures divisor richness for packing problems.
Recommendations
- •Quote divisors with the verdict
- •Use σ(n)=2n as the perfect cross-check
- •Report the gap, not just the label
- •Cap loops at 10⁷
- •Chain into amicable testing
Educational Content
Introduction
Perfect numbers balance exactly on their divisors — a 2000-year-old idea still generating open problems.
Concept Explanation
Pair divisors to √n, sum the proper ones, and compare the stack against n itself.
Applications
Benefits
- •Full aliquot list shown
- •σ and s together
- •Gap quantified
- •Balance visual included
- •Mersenne connection noted
Limitations
- •Divisor loops to 10⁷
- •Odd-perfect question unsettled
- •Single n per run
Best Practices
- •List every proper divisor
- •Verify s(n) by re-adding
- •State gap with sign
- •Cross-check σ(n) = 2n for perfects
- •Note Euclid–Euler for evens
Common Misconceptions
Practical Tips
- •List divisors in pairs to √n
- •Always exclude n itself from s(n)
- •Use σ(n) = 2n to double-check perfects
- •Report the signed gap
- •Remember 6, 28, 496, 8128
- •Know 12 is the first abundant
- •Cap inputs at 10,000,000
Common Mistakes
Assumptions
This calculator makes the following assumptions to provide estimates:
Limitations
Be aware of these limitations when using this calculator:
Frequently Asked Questions
Answers to common questions about this calculator.
What is a perfect number?
Is 28 perfect?
What are deficient and abundant numbers?
What is σ(n) vs s(n)?
Are there odd perfect numbers?
How do even perfect numbers arise?
Is 496 perfect?
Why the 10,000,000 cap?
Is 1 perfect, deficient, or abundant?
Are perfect numbers rare?
Related Calculators
Explore more calculators related to this topic.
Related Guides
Deepen your understanding with these educational resources.
Glossary
Technical terms used in mortgage calculations explained in plain language.
- Perfect number
- n with s(n) = n (e.g. 6, 28).
- Deficient number
- n with s(n) < n.
- Abundant number
- n with s(n) > n.
- Aliquot sum s(n)
- Sum of proper divisors.
- Sigma σ(n)
- Sum of all divisors including n.
- Mersenne prime
- Prime 2^p − 1 generating even perfects.
- Euclid–Euler theorem
- Characterizes all even perfect numbers.
- Abundancy index
- σ(n)/n ratio measuring divisor richness.
Authoritative References
Trusted sources and standards referenced by this calculator.
Applicable Standards
Was This Calculator Helpful?
Page Information
2026-09-29
2.0.0
Free to use for educational and professional purposes.