Theorem
Suppose that m1ā,ā¦,mkā are integers and a1ā,ā¦,akā are prescribed integers. Then, the system of congruences xxāā”a1ā(modm1ā)ā®ā”akā(modmkā)āhas a unique solution(modM) where M is the least common multiple M=lcm(m1ā,ā¦,mkā)if and only if gcd(miā,mjā)ā£aiāāajā,āiī =j.
Corollary
If m1ā,ā¦,mkā are mutually coprime, then Z/mZā
Z/m1āZāāÆāZ/mkāZand (Z/mZ)āā
(Z/m1āZ)āāāÆā(Z/mkāZ)ā