Reduction of both coefficients in modular arithmetic gives
More explicitly,
The first expression is divisible by exactly when the last parenthesis is. By the definition of a integer congruence, the two congruences are equivalent.
The Euclidean algorithm gives
so . Since , the criterion for a linear congruence guarantees a solution. One can also exhibit it directly: , or in the original coefficients,
Thus is a solution, with an explicit Bézout coefficient certificate.
Divide the divisibility relation by to obtain . Since , multiplication by the modular multiplicative inverse gives . Therefore all integer solutions are , .
Modulo , the choices give
They are distinct residue classes: equality of two such classes would imply , hence . Every integer is congruent to one of those thirteen choices, so the list is exhaustive.
Let , and write , with positive integers . If an integer divided both and , then would divide both and , contradicting the maximality of their greatest common divisor . Thus . Equivalently, Bézout's identity for can be divided by to express as an integer combination of .
Let , , and . The preceding part gives . The integer congruence on the left is equivalent to
By Euclid's lemma, coprimality of and makes this equivalent to . The reverse implication is also immediate by multiplying a divisibility relation by . Therefore
This is cancellation of a common factor in a congruence. The printed equality sign in the right-hand expression is interpreted as equality of residue classes, hence the displayed integer congruence. Ordinary equality of the integers would be false: the following example has .
Take . These are four distinct positive integers and . Their products are and , whose difference is , so . Here the correct reduced modulus is , and indeed . The example illustrates why cancelling a noninvertible factor may change the modulus in modular arithmetic.

Articles by others on the same topic (0)

There are currently no matching articles.