Beruflich Dokumente
Kultur Dokumente
Examples
17 mod 5 = 2 7 mod 11 = 7
20 mod 3 = 2 11 mod 11 = 0
-3 mod 11 = 8 -1 mod 11 = 10
25 mod 5 = 0 -11 mod 11 = 0
• Two numbers r and s are said to be
“congruent mod m” if
r mod m = s mod m
• In this case we write r s mod m
• The difference between r and s will be a
multiple of m
So r-s = km for some value of k
147 = 7 × 21 + 0.
n = n1 (mod m1)
n = n2 (mod m2)
...
n = nk (mod mk)
Using the extended Euclidean algorithm for 3 and 4×5 = 20, we
find (-13) × 3 + 2 × 20 = 1, i.e. e1 = 40. Using the Euclidean
algorithm for 4 and 3×5 = 15, we get (-11) × 4 + 3 × 15 = 1.
Hence, e2 = 45.
Finally, using the Euclidean algorithm for 5 and 3×4 = 12, we get
5 × 5 + (-2) × 12 = 1, meaning e3 = -24. A solution x is therefore 2
× 40 + 3 × 45 + 2 × (-24) = 167.
All other solutions are congruent to 167 modulo 60, which means
that they are all congruent to 47 modulo 60.