To conclude this section we discuss a special case of a system of congruences.

Chinese remainder theorem

The system of linear congruences

x = ai mod mi,  i = 1, 2, ..., k,

in which gcd(mi,mj) = 1 for all distinct i and j, has a unique solution modulo the product m1 m2 ··· mk.