Chinese Remainder Theorem (CRT)
Given where each moduli(or divisor) is a pairwise coprime, and the set of is given as below:
Then the system has a unique solution under modulo such that:
where each satisfies:
In other words, a set of modulus statements can be reduced to a single statement.
Take the example below:
Solving these gives and . Then the solution is
Last updated