Professional Documents
Culture Documents
Cancellation Property of Modular Arithmetic
Cancellation Property of Modular Arithmetic
Arithmetic
Property
Given a positive integer n and integers k, u, and v:
If k is relatively prime to n then
ku
kv (mod n)
v (mod n)
ku
kv (mod n)
Proof
ku - kv
k*(u - v)
(mod n)
(mod n)
(mod n)
v (mod n)
Important Note
Notice that the condition that k be relatively prime to n is critically relevant. For
example:
60
90 (mod 15)
However, the factor 10 cannot be cancelled from each side because 10 and 15 are
not relatively prime. This underscores the fact that normal arithmetic division is an
undefined operation in modular arithmetic. Don't do it. Ever. Even when it might
appear obvious what the answer is. For instance, in the above example, if you want
to "divide" both sides by 10, do so by multiplying both sides by the modulo-15
multiplicative inverse of 10. What you will discover in attempting to do so is that
10 has no multiplicative inverse in the modulo-15 world!
It is therefore important to remember that the property developed here is a
cancellation property and not a division operation.