Solving Systems of Congruences
Lesson · Intermediate
Number Theory
Approach 1 — List Values for Both Moduli
List the congruent values until a repetition occurs.
Approach 2 — List Values for the Larger Modulus
Select the larger mod (here 41) and list the congruent values until it satisfies the other mod.
Approach 3 — Substitution
Select the larger mod.
Substitute in the other mod.
Your first property is very useful.
If
and
then
The two congruences mean
and
Therefore,
so
The converse is immediate because both m and n divide their LCM.
If
then the system
has exactly one solution modulo
So for coprime moduli, we know before doing any calculations that:
• a solution exists
• it is unique modulo mn
For example,
must have exactly one solution modulo
Consider
Write
We need
so
Since
m has an inverse modulo n. Therefore, this linear congruence has exactly one solution for k modulo n.
Hence x = a + mk is uniquely determined modulo
Consider
Let
A solution exists if and only if
If a solution exists, it is unique modulo
So the general rule is:
is the compatibility condition.
has an answer if and only if
Solve
We have
Check the remainders:
so a solution exists.
So,
Solve
Again,
But
Therefore, no solution exists.
Solve
So,
Now
Therefore,
Solve
So,