Amicable Pair Finder

See if a number forms an amicable pair with the sum of its proper divisors.

How it is calculated

The tool needs a whole number from 1 to 1,000,000,000,000. A decimal such as 220.4, zero, a negative number or anything larger shows no result. It computes s(n), the sum of the proper divisors of n (every divisor except n itself), and shows it as the partner. To test the pair it computes s(s(n)) and answers Yes only when the partner is a different number and s(partner) = n. Divisors are found by trial division up to the square root of n, pairing each small divisor d with n ÷ d, so very large inputs take longer. The partner is always shown, even when the answer is No, and is then just the divisor sum. A perfect number such as 6 equals its own sum, so it is reported as No. The number 1 has no proper divisors and gives 0.

Worked example

Test 220. Its proper divisors are 1, 2, 4, 5, 10, 11, 20, 22, 44, 55 and 110. Their sum is 1 + 2 + 4 + 5 + 10 + 11 + 20 + 22 + 44 + 55 + 110 = 284, which is the partner shown. Now check the way back: the proper divisors of 284 are 1, 2, 4, 71 and 142, and they add up to 220. The sum returns to the starting number, and the two numbers differ, so the answer is Yes: 220 and 284 are an amicable pair.

Try this example →

Common mistakes

  • Reading the partner box as proof of an amicable pair. It only shows the divisor sum: 12 shows 16, yet the answer is No because the proper divisors of 16 add up to 15, not 12.
  • Including the number itself among its divisors. The sum is over proper divisors only, which is why 6 gives 6 and not 12.
  • Calling a perfect number amicable. 6 and 28 equal their own divisor sum, and the tool answers No because an amicable pair needs two different numbers.
  • Typing a decimal like 220.4 and expecting it to be rounded. Only whole numbers are accepted, so no result appears until you enter 220.
  • Assuming the pair can only be found from its smaller member. It works from both: entering 284 gives partner 220 and Yes.

About this calculator

Two numbers form an amicable pair when the sum of each number’s proper divisors (all divisors excluding the number itself) equals the other number. The smallest and most famous example, known since antiquity, is 220 and 284: the proper divisors of 220 (1, 2, 4, 5, 10, 11, 20, 22, 44, 55, 110) add up to 284, and the proper divisors of 284 (1, 2, 4, 71, 142) add up to 220.

Amicable numbers are a close cousin of perfect numbers (where a number’s proper divisors sum to itself, like 6 and 28) and have been studied since Pythagorean times, later expanded by mathematicians like Fermat, Descartes and Euler, who found several more pairs by algebraic formula rather than brute search. Today they are mostly a recreational and educational number-theory topic, useful for exploring divisor-sum functions.

This calculator computes the sum of proper divisors for any number you enter, checks whether that sum’s own proper divisors lead back to your original number, and confirms whether the pair is truly amicable.

Was this helpful?

You can pick up to 3 reactions.

Comments (0)

  • Be the first to comment.

Popular calculators

All Calculators