Statement:-
If m1, m2,
.., mk are pairwise relatively prime positive integers, and if a1,
a2, .., ak are any integers, then the simultaneous
congruences
x ≡ a1 (mod
m1), x ≡ a2 (mod m2), ..., x ≡ ak
(mod mk) have a solution, and the solution is unique modulo m, where M = m1m2⋅⋅⋅mk
.
Proof that a solution exists:
To keep the notation
simpler, we will assume k = 3.
Note the proof is
constructive, i.e., it shows us how to actually construct a solution.
Our simultaneous congruence’s
are
x ≡ a1 (mod
m1), x ≡ a2 (mod m2), x ≡ a3 (mod m3)
We have to find
integers w1,w2,w3 such that
x = a1w1 + a2w2
+ a3w3 .
Moreover, as long
as the moduli (m1, m2, m3) remain the same,
we can use the same w1, w2,
w3 with any a1, a2, a3.
First define: z1 = M / m1
= m2m3
z2 = M / m2 = m1m3
z3 = M / m3 = m1m2
Note that
( i) z1 ≡ 0 (mod mj)
for j = 2, 3,
( ii) gcd (z1, m1)
= 1. (If a prime p dividing m1 also divides z1= m2m3
then p divides m2, m3, or )
and likewise for z2, z3.
Next define:
y1 ≡ z1–1
(mod m1)
y2 ≡ z2 –1
(mod m2)
y3 ≡ z3 –1
(mod m3)
The inverses exist by above, and we can find
them by Euclid’s extended algorithm.
Note that
( iii) y1z1 ≡
0 (mod mj) for j = 2, 3. (Recall z1 ≡ 0 (mod mj) )
(iv) y1z1 ≡ 1 (mod m1)
and likewise for y2z2,
y3z3.
Lastly define: w1 ≡ y1z1
(mod M) w2 ≡ y2z2 (mod M) w3 ≡ y3z3
(mod M).
Example 1: Solve the simultaneous congruence’s
x ≡ 2 (mod 7) x ≡ 3 (mod 9)
Solution: Since 7, 9 are pair wise
relatively prime, the Chinese Remainder Theorem tells us that there is a unique
solution modulo M,
Where M = 7⋅9 = 63.
We apply the technique of the
Chinese Remainder Theorem with k = 2,
m1 = 7, m2 = 9,
a1 =2, a2 =
3,
to obtain the solution. We compute
z1 = M / m1 = m2 = 9
z2 = M / m2 = m1 = 7
y1 ≡ z1 –1
(mod m1) ≡ 9–1 (mod 7) ≡ 2–1 (mod 7) ≡ 4 (mod
7)
y2 ≡ z2 –1
(mod m2) ≡ 7–1 (mod 9) ≡ 7–1 (mod 9) ≡ 4 (mod
9)
w1 ≡ y1z1
(mod M) ≡ 4⋅9 (mod 63) ≡ 36 (mod 63)
w2 ≡ y2z2
(mod M) ≡ 4⋅7 (mod 63) ≡ 28 (mod 63)
The solution, which is unique
modulo 63, is
x ≡ a1w1 + a2w2
(mod 63)
≡ 2⋅36 + 3⋅28 (mod 63)
≡ 156 (mod 63) ≡ 30 (mod 63)
Example 2: Solve the simultaneous congruence’s
x ≡ 6 (mod 7)
x ≡ 4 (mod 8).
Solution: Since 7, 8 are pair wise
relatively prime, the Chinese Remainder Theorem tells us that there is a unique
solution modulo M,
Where M = 7⋅8 = 56.
We apply the technique of the
Chinese Remainder Theorem with k = 2,
m1 = 7, m2 = 8,
a1 =6, a2 =
4,
to obtain the solution. We compute
z1 = M / m1 = m2 = 8
z2 = M / m2 = m1 = 7
y1 ≡ z1 –1
(mod m1) ≡ 8–1 (mod 7) ≡ 1–1 (mod 7) ≡ 1 (mod
7)
y2 ≡ z2 –1
(mod m2) ≡ 7–1 (mod 8) ≡ 7–1 (mod 8) ≡ 7 (mod
9)
w1 ≡ y1z1
(mod M) ≡ 1⋅8 (mod 56) ≡ 8 (mod 56)
w2 ≡ y2z2
(mod M) ≡ 7⋅7 (mod 56) ≡ 49 (mod 56)
The solution, which is unique
modulo 63, is
x ≡ a1w1 + a2w2
(mod 56)
≡ 6⋅8 + 4⋅49 (mod 56)
≡ 244 (mod 56)
≡ 20 (mod 56)
Example 3: Solve the simultaneous congruence’s
x ≡ 6 (mod 11),
x ≡ 13 (mod 16),
x ≡ 9 (mod 21),
x ≡ 19 (mod 25).
Solution: Since 11, 16, 21, and 25 are pairwise
relatively prime, the Chinese Remainder Theorem tells us that there is a unique
solution modulo M,
Where M = 11⋅16⋅21⋅25 = 92400.
We apply the technique of the
Chinese Remainder Theorem with k = 4,
m1 = 11, m2 = 16, m3
= 21, m4 = 25, a1 = 6, a2 = 13, a3
= 9, a4 = 19,
to obtain the solution. We compute
z1 = M / m1 = m2
m3m4 = 16⋅21⋅25 = 8400
z2 = M / m2 = m1
m3m4 = 11⋅21⋅25 = 5775
z3 = M / m3 = m1
m2m4= 11⋅16⋅25 = 4400
z4 = M / m4 = m1
m2m3 = 11⋅16⋅21 = 3696
y1 ≡ z1 –1
(mod m1) ≡ 8400–1 (mod 11) ≡ 7–1 (mod 11) ≡ 8
(mod 11)
y2 ≡ z2 –1
(mod m2) ≡ 5775–1 (mod 16) ≡ 15–1 (mod 16) ≡
15 (mod 16)
y3 ≡ z3 –1
(mod m3) ≡ 4400–1 (mod 21) ≡ 11–1 (mod 21) ≡ 2
(mod 21)
y4 ≡ z4 –1
(mod m4) ≡ 3696–1 (mod 25) ≡ 21–1 (mod 25) ≡ 6
(mod 25)
w1 ≡ y1z1
(mod M) ≡ 8⋅8400 (mod 92400) ≡ 67200 (mod
92400)
w2 ≡ y2z2
(mod M) ≡ 15⋅5775 (mod 92400) ≡ 86625 (mod
92400)
w3 ≡ y3z3
(mod M) ≡ 2⋅4400 (mod 92400) ≡ 8800 (mod
92400)
w4 ≡ y4z4
(mod M) ≡ 6⋅3696 (mod 92400) ≡ 22176 (mod
92400)
The solution, which is unique
modulo 92400, is
x ≡ a1w1 + a2w2
+ a3w3 + a4w4 (mod 92400)
≡ 6⋅67200 + 13⋅86625 + 9⋅8800 + 19⋅22176 (mod 92400)
≡ 2029869 (mod 92400) ≡ 89469 (mod
92400)

Comments
Post a Comment