Amicable pairs are integers

and

for which the sum of the proper divisors of

equals

and vice versa. This is a chain of amicable numbers

. They are not amicable pairwise; rather, the sum of the proper divisors of

equals

, where

. Such chains appear very rarely.