In general, one can only cancel "mod m" if the cancellation factor is relatively prime to the modulus.
For example, if 7a = 7b (mod 8) then a=b (mod 8) because gcd(7,8)=1. Such numbers are called primitive roots relative to m (or unit). You'll note that cancellation always holds if the modulus is prime.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.