I know of no practical use for Amicable numbers, but they’re rather fun. And rare. But let’s start with a definition. Let be a natural number (a positive integer), and let
with and
, be the sum of the divisors of
. We’re in fact interested in the sum of the proper divisors of
, that is,
Now we’re ready to define amicable numbers!
Amicable numbers: Two numbers, are amicable, if, and only if,
and
.
Given , we can find
and test if
. But to do that efficiently, we need to compute
(or
) very rapidly. The first expression above requires
, but we can do much better. Let’s see how.
Posted by Steven Pigeon 