Use the Euclidean algorithm: , , , and . Back-substitution gives the Bezout identity . Multiplying by gives one solution of the linear Diophantine equation, and shifting the coefficients by multiples of reduces it to
Indeed, . More generally all solutions are , , : subtracting this particular solution gives , and the coprime integers force .
Write . The second modular congruence becomes . The Bezout identity above says that is the inverse of modulo , so . Therefore
The checks are . The Chinese remainder theorem explains uniqueness modulo , since the moduli are coprime integers.

Articles by others on the same topic (0)

There are currently no matching articles.