Loading…

Amicable Numbers Checker

Math Algebra • Numbers

View all topics

Check whether two positive integers form an amicable pair. Two different numbers \(a\) and \(b\) are amicable when each number equals the sum of the proper divisors of the other.

s(n) = sum of proper divisors of n Condition 1: s(a) = b Condition 2: s(b) = a Distinct: a ≠ b

Number inputs

Supported range: \(1\le a,b\le 10^8\). Proper divisors are positive divisors smaller than the number itself. Equal inputs can be perfect numbers, but they are not an amicable pair because amicable numbers must be distinct.

Quick examples

Ready
Enter two positive integers, then click “Calculate”.

Rate this calculator

0.0 /5 (0 ratings)
Be the first to rate.
Your rating
You can update your rating any time.

Frequently Asked Questions

What are amicable numbers?

Two distinct positive integers a and b are amicable if each equals the sum of the proper divisors of the other. That means s(a) = b and s(b) = a with a != b.

What are proper divisors?

Proper divisors of n are the positive divisors of n that are smaller than n. The number n itself is not included.

What is s(n)?

s(n) is the sum of all positive proper divisors of n.

Are 220 and 284 amicable?

Yes. The proper divisors of 220 add to 284, and the proper divisors of 284 add to 220.

Why must a and b be different?

The condition a != b excludes perfect-number cases. If s(n) = n, then n is perfect, but (n, n) is not called an amicable pair.

Is 6 and 6 an amicable pair?

No. Although 6 is perfect because s(6) = 6, amicable pairs require two distinct numbers.

How does the calculator find proper divisors efficiently?

It checks divisors up to floor(sqrt(n)). When it finds a divisor d, it also finds the paired divisor n/d.

What if only one condition passes?

The pair is not amicable. Both s(a) = b and s(b) = a must be true, and the two numbers must be distinct.

Does the calculator support known amicable pairs?

Yes. It includes quick examples and a known-pair batch mode for checking several classic amicable pairs.

Why are connection lines shown in the visualization?

The connection lines represent the two-way requirement: the divisor sum of a should point to b, and the divisor sum of b should point back to a.