Amicable Numbers Formula


Equation for calculate amicable numbers is,

Amicable = s(m) = n ; s(n) = m
Amicable Pair = σ(n) = σ(m) = s(m)+s(n)

where:
s(n)= σ(n) - n
s(m)= σ(m) - m