Cancellation of a common factor in a congruence

ID: cancellation-of-a-common-factor-in-a-congruence

For integers and positive integers , a common factor may be cancelled from a integer congruence provided the modulus is divided by the corresponding greatest common divisor. Let , , and . The integers are coprime: any common divisor greater than one would give a common divisor of larger than .
By divisibility and Euclid's lemma,
This proves the displayed equivalence. If is coprime to , the modulus stays unchanged and this is ordinary cancellation by a modular multiplicative inverse. If , the reduced modulus is , so every pair satisfies the reduced integer congruence.

New to topics? Read the docs here!