The Chinese Remainder Theorem is a powerful method for solving systems of congruences with different moduli. This cheat sheet helps students organize the conditions, notation, and construction steps needed to solve CRT problems accurately. It is especially useful in number theory, contest math, cryptography, and modular arithmetic applications.
Key Facts
- A congruence means that divides , or .
- The Chinese Remainder Theorem applies directly when the moduli are pairwise coprime, meaning for .
- If the moduli are pairwise coprime, the system has one unique solution modulo .
- For each congruence, define , where .
- The modular inverse is chosen so that .
- A CRT solution is .
- For two congruences and with , the solution is unique modulo .
- If moduli are not coprime, a solution exists only when for every pair of congruences.
Vocabulary
- Congruence
- A statement such as saying that and have the same remainder when divided by .
- Modulus
- The positive integer in that determines the remainder system being used.
- Pairwise coprime
- A set of integers is pairwise coprime when every two different integers in the set have greatest common divisor .
- Modular inverse
- The modular inverse of modulo is a number such that .
- Residue class
- A residue class modulo is the set of all integers congruent to the same remainder modulo .
- Unique modulo
- A solution is unique modulo when all solutions differ from it by a multiple of .
Common Mistakes to Avoid
- Forgetting to check that the moduli are pairwise coprime is wrong because the standard CRT formula requires for every pair.
- Using instead of is wrong because each must include all moduli except the one for its own congruence.
- Finding the inverse of the wrong number is wrong because must satisfy , not .
- Stopping before reducing the final answer is wrong because the solution should be written as with when possible.
- Assuming non-coprime systems never have solutions is wrong because they can be consistent when .
Practice Questions
- 1 Solve the system , , and .
- 2 Solve the system and , and write the answer modulo .
- 3 Find the modular inverse of modulo , then use it to solve .
- 4 Explain why the system and has no solution, using the greatest common divisor condition.
Understanding Chinese Remainder Theorem Reference
A useful way to picture a congruence is as a position on a repeating cycle. On a clock with twelve positions, numbers separated by twelve land in the same place. A system of congruences asks for one number that lands at specified positions on several cycles at once.
Each condition removes many possible numbers. When the cycle lengths have no shared factors, their patterns combine cleanly.
The full pattern does not repeat until every cycle has returned to its starting point together. This explains why the final repeating interval is much larger than any one modulus.
The construction method works because each built term is designed to affect one condition while becoming invisible to the others. Start with the product of all moduli, then remove one modulus from that product. The remaining factor contains every other modulus, so it is a multiple of each of them.
It therefore leaves a remainder of zero for all the other conditions. It only needs adjustment for the condition left out. A modular inverse provides that adjustment.
Multiplying by the inverse turns the remaining factor into a remainder of one for its selected modulus. Multiplying once more by the required remainder creates a term that contributes exactly the needed value in one place and zero everywhere else.
Finding inverses is often the part that needs the most care. Students can use trial multiplication for small moduli, but the extended Euclidean algorithm is more reliable for larger values. That algorithm works backward from the greatest common divisor and expresses one as a combination of two numbers.
When the greatest common divisor is one, the coefficient of one number gives an inverse of the other after reducing it to the correct cycle. A negative inverse is not a problem. It can be replaced by adding the modulus until a positive representative appears.
This is one reason modular arithmetic feels different from ordinary arithmetic. Many different integers can represent the same residue.
When moduli share a factor, the restrictions may disagree before any calculation begins. Think of two bus schedules that repeat at different intervals but must meet at the same time. If one condition requires an odd number and another requires an even number, no number can satisfy both.
If they agree on the shared pattern, the system can often be simplified before solving it. The final repeat length is then based on the least common multiple rather than simply multiplying every modulus.
In school problems, check compatibility early, keep each intermediate remainder reduced, and verify the final answer in every original condition. In computing, the same ideas support calendar cycles, data reconstruction, and parts of public key cryptography.