Weird Number Calculator

Check whether a number is abundant but cannot be written as a sum of its own proper divisors.

Math and PercentUpdated 2026-11-182 min read
Weird Number Calculator
A whole number from 1 to 1,000.
Classification
...
Sum of proper divisors...
Which condition failed...

What it does

A weird number is an abundant number that is not semiperfect. In other words, its proper divisors add to more than the number itself, yet no subset of those divisors adds exactly to the number. The first example is 70, whose proper divisors total 74 but cannot be combined to make 70.

The name was coined in the twentieth century, and the sequence begins 70, 836, 4030, 5830 and 7192. Weird numbers are uncommon because most abundant numbers turn out to have a suitable subset of divisors.

Testing the property needs two checks. First the aliquot sum must exceed the number. Then a subset sum search over the proper divisors determines whether the number is semiperfect. This page performs both with exact integer arithmetic.

The output shows the aliquot sum and a short reason identifying which condition failed. That makes it clear whether a non weird number is deficient, perfect or merely semiperfect and abundant.

The input limit is one thousand, which keeps the subset sum search fast and the results immediate.

How to use

  1. Enter a whole number n from 1 to 1,000.
  2. Read the classification in the main result box.
  3. Check the aliquot sum beside it.
  4. The reason line says which condition held or failed.
  5. The default n = 70 reproduces the worked example.
  6. Try n = 12 to see an abundant number that is semiperfect and not weird.

Formula

n is weird when s(n) > n and no subset of the proper divisors of n sums to n, where s(n) is the aliquot sum
n
The integer being tested.
s(n)
The sum of proper divisors of n.
subset
A selection of proper divisors whose total might equal n.

The aliquot sum is the divisor sum minus n. Abundance requires this to exceed n. The semiperfect check then uses a subset sum table over the proper divisors. Both steps are exact, so the verdict never depends on a partial search.

Worked example

Example: n = 70

The page opens with n = 70.

  1. Compute the sum of divisors of 70, which is 144.
  2. The aliquot sum is 144 - 70 = 74.
  3. Since 74 exceeds 70, the number is abundant.
  4. Search subsets of the proper divisors and none sum to 70.
  5. The tool reports Weird, aliquot sum 74, and the reason Abundant and not semiperfect.
  6. For 12 the aliquot sum is 16, abundant, but 2 + 4 + 6 = 12, so it is not weird.

Reference table

Weird numbers and nearby cases
nAliquot sumSemiperfectWeird
66YesNo
1216YesNo
2022YesNo
7074NoYes
836844NoYes

Limits

  • Inputs above 1,000 are rejected to keep the subset sum search small.
  • The tool reports a verdict and reason, not the divisor subset.
  • Only positive integers are accepted.
  • The result is exact for every allowed input.

Common mistakes

  • Calling a number weird just because it is abundant.
  • Forgetting that the aliquot sum excludes n itself.
  • Allowing a divisor to be used more than once in the subset.
  • Confusing weird numbers with untouchable numbers.
  • Assuming all abundant numbers with large divisor sums are weird.

Try it yourself

Quick checks. Answers sit tucked under each question.

Is 70 weird?

Yes. Its aliquot sum is 74 and no subset of its proper divisors sums to 70.

Is 12 weird?

No. Although abundant, it is semiperfect because 2 + 4 + 6 = 12.

What is the second weird number?

836.

Questions

What is a weird number?

An abundant number that is not semiperfect.

Why is 70 the first?

It is the smallest number whose proper divisors exceed it without any subset summing back to it.

Are weird numbers common?

No, they are rare compared with semiperfect abundant numbers.

Is every weird number abundant?

Yes, abundance is part of the definition.

Are results exact?

Yes, both the sum and the subset test use integers.

What input range is accepted?

Whole numbers from 1 through 1,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.