Superperfect Number Calculator
Check whether applying the divisor sum twice returns exactly twice the original number.
What it does
A superperfect number satisfies the equation sigma of sigma of n equals two times n, where sigma is the sum of divisors. The sequence begins 2, 4, 16, 64 and 4096. Most known examples are powers of two.
The name was coined by Subbarao in the twentieth century as an analogue of perfect numbers, where one application of sigma gives twice the number. Adding a second iteration creates a different and much rarer family.
This page computes the first divisor sum from the prime factorization, then computes the divisor sum of that result. The two values are compared with two times n using exact integer arithmetic.
The intermediate value is shown so the process is transparent. For 16 the first sum is 31, and since 31 is prime its divisor sum is 32, which is twice 16.
The input limit is one million, which keeps both factorizations fast. Results are exact integers.
How to use
- Enter a whole number n from 1 to 1,000,000.
- Read the classification in the main result box.
- Check the first divisor sum beside it.
- Read the second divisor sum and compare with twice n.
- The default n = 16 reproduces the worked example.
- Try n = 4 to confirm a smaller superperfect number.
Formula
- n
- The integer being tested.
- sigma(n)
- The sum of divisors of n.
- sigma(sigma(n))
- The divisor sum applied a second time.
The divisor sum includes the number itself, so the first application always returns a value at least n. When that value is prime, the second sum is one larger, which is why powers of two with a Mersenne prime as their divisor sum work so often.
Worked example
Example: n = 16
The page opens with n = 16.
- Factor 16 as 2^4.
- Compute sigma(16) = 1 + 2 + 4 + 8 + 16 = 31.
- Since 31 is prime, sigma(31) = 1 + 31 = 32.
- Twice the original number is 2 x 16 = 32.
- The tool reports first sum 31, second sum 32, and Superperfect.
- For 4 the sums are 7 and 8, which is also twice 4.
Reference table
| n | sigma(n) | sigma(sigma(n)) | Superperfect |
|---|---|---|---|
| 2 | 3 | 4 | Yes |
| 4 | 7 | 8 | Yes |
| 6 | 12 | 28 | No |
| 16 | 31 | 32 | Yes |
| 64 | 127 | 128 | Yes |
Limits
- Inputs above 1,000,000 are rejected to keep both factorizations fast.
- The divisor sum includes the number itself.
- The tool tests one number at a time.
- Known superperfect numbers are rare, so most inputs fail.
Common mistakes
- Applying sigma only once instead of twice.
- Using proper divisors rather than all divisors.
- Comparing with n rather than twice n.
- Assuming every perfect number is superperfect.
- Rounding the divisor sums.
Try it yourself
Quick checks. Answers sit tucked under each question.
Is 16 superperfect?
Yes, because sigma(16) = 31 and sigma(31) = 32 = 2 x 16.
Is 6 superperfect?
No. sigma(6) = 12 and sigma(12) = 28, which is not 12.
Is 4 superperfect?
Yes, with sums 7 and 8.
Questions
Who named superperfect numbers?
The term was coined by Subbarao.
How do they relate to perfect numbers?
Perfect numbers use one divisor sum, superperfect numbers use two.
Are there even superperfect numbers besides powers of two?
No even examples outside the known power of two form are known.
Can an odd superperfect number exist?
None are known.
Are results exact?
Yes, integer arithmetic is used.
What input range is accepted?
Whole numbers from 1 through 1,000,000.