Amicable Numbers Calculator
Check whether two numbers are amicable by adding proper divisors in both directions and showing the partner.
What it does
Two different numbers are amicable when the proper divisors of each one add up to the other. The first known pair is 220 and 284. The proper divisors of 220 sum to 284, and the proper divisors of 284 sum back to 220. Neither number includes itself in the sum, which is the defining detail.
The idea goes back more than a thousand years. A rule attributed to the ninth century scholar Thabit ibn Kurrah generates some pairs from prime expressions, and Euler later found many more. Today large tables list pairs far beyond anything a hand calculation could reach.
Testing a candidate is direct. Sum the proper divisors of n, call the result m, then sum the proper divisors of m. If that second sum equals n and m is different from n, the pair is amicable. If the second sum equals m instead, then n was a perfect number, because its own proper divisors added back to itself.
This page performs both sums, shows the partner and lists the proper divisors it used. Seeing the divisor list makes it easy to check a small case such as 220 by adding the numbers yourself.
The input limit is one million so the divisor search stays quick in the browser. Most pairs people meet in examples sit well below that bound, and the tool still reports a result for numbers that are neither amicable nor perfect.
How to use
- Enter a whole number n from 2 upward.
- Read the classification in the main result box.
- Check the partner value, which is the sum of proper divisors.
- Use the listed divisors to verify the first sum by hand.
- Enter 220 to reproduce the worked example.
- Try 6 to see the perfect number case.
Formula
- n
- The starting integer being tested.
- s(n)
- The aliquot sum, meaning all positive divisors of n except n itself.
- m
- The partner, equal to s(n).
For 220 the proper divisors are 1, 2, 4, 5, 10, 11, 20, 22, 44, 55 and 110, which sum to 284. The proper divisors of 284 are 1, 2, 4, 71 and 142, which sum to 220, so the pair passes both tests. If s(n) equals n, the number is perfect rather than amicable, as with 6 and 28.
Worked example
Example: 220 and 284
Use n = 220, the default input loaded on this page.
- List the proper divisors of 220: 1, 2, 4, 5, 10, 11, 20, 22, 44, 55 and 110.
- Add them: the running total reaches 284.
- Set the partner m to 284.
- List the proper divisors of 284: 1, 2, 4, 71 and 142.
- Add them to get 220, which returns to the starting number.
- The tool reports Amicable pair with partner 284 and the divisor list for 220.
- Because the two numbers differ, this is amicable rather than perfect.
Reference table
| n | Proper divisor sum | Result |
|---|---|---|
| 6 | 6 | Perfect number |
| 12 | 16 | Not amicable |
| 28 | 28 | Perfect number |
| 220 | 284 | Amicable with 284 |
| 284 | 220 | Amicable with 220 |
| 1184 | 1210 | Amicable with 1210 |
Limits
- Inputs above one million are rejected so the divisor scan stays fast.
- The tool tests one candidate number, not a whole range.
- It does not follow longer aliquot chains that continue past two steps.
- The divisor list is trimmed for very composite inputs, but the sum is always computed in full.
Common mistakes
- Including n itself in the divisor sum, which turns every test into a perfect-number test.
- Checking only the first sum and skipping the return trip.
- Calling a perfect number amicable just because the sum is a whole number.
- Forgetting that the partner must be different from the starting number.
- Assuming each pair appears next to its partner when reading a sorted table.
Try it yourself
Quick checks. Answers sit tucked under each question.
What partner does 284 have?
Its proper divisors 1, 2, 4, 71 and 142 sum to 220, so its partner is 220 and the pair is amicable.
Is 6 amicable or perfect?
1 + 2 + 3 = 6, so the sum returns the number itself and 6 is perfect, not amicable.
What is the aliquot sum of 12?
1 + 2 + 3 + 4 + 6 = 16. Since the divisors of 16 do not sum to 12, the pair is not amicable.
Questions
What is a proper divisor?
A positive divisor of n that is strictly smaller than n.
What is the aliquot sum?
Another name for the sum of the proper divisors of a number.
What is the smallest amicable pair?
220 and 284. The next pair begins with 1184.
Can an amicable pair share parity?
Known pairs are usually both even or both odd, and mixed parity pairs are very rare.
Does every number belong to a pair?
No. Many numbers are neither amicable nor perfect, and some lead into longer chains.
What input range works here?
Whole numbers from 2 through 1,000,000, with a readable error for anything outside that range.