Chinese remainder theorem
The Chinese remainder theorem states
that given a set of pairwise co-prime numbers
is guaranteed a solution,
unique up to congruence modulo
Solution
For
, define ๐ = 1 , 2 , โฆ , ๐ so that ๐ ๐ ๐ ๐ ( ๐ ๐ ๐ ) โก ๐ ๐ 1 which is guaranteed to exist by Bรฉzoutโs lemma and the co-prime requirement, then the value of
is given by ๐ฅ ๐ฅ โก ๐ ๐ โ ๐ = 1 ๐ ๐ ๐ ๐ ( ๐ ๐ ๐ ) This works since every term except the
-th term goes to ๐ modular 0 , and thus ๐ ๐ ๐ฅ โก ๐ ๐ ๐ ๐ ๐ ๐ ( ๐ ๐ ๐ ) โก ๐ ๐ ๐ ๐ โ 1 โก ๐ ๐
This is generalized by the Chinese remainder theorem for rings
Practice problems
- Mary Radcliffe, Chinese Remainder Theorem (examples)