Sma3043 Elementary Number Theory SEMESTER 2 2020/2021: The Theory of Congruence
Sma3043 Elementary Number Theory SEMESTER 2 2020/2021: The Theory of Congruence
Sma3043 Elementary Number Theory SEMESTER 2 2020/2021: The Theory of Congruence
SEMESTER 2 2020/2021
Definition 1
@ a b(mod n) a = kn + b
Let n be a fixed positive integer, and let a, b Z. We say n | (a – b)
“a is congruent to b modulo n “, and can be denoted by
a b mod n a b kn for some of k Z
Example.
(ii)
4 = 6(1) + (-2) or 4 – (-2) = 6(1)
2
CONGRUENCE MODULO n
Notes:
• Congruences are only defined for integers, and the modulo m must be a natural number.
For example,
a ≡ 1/2 mod 2 is not defined since 1/2 is not an integer;
similarly, a ≡ b mod 0 is not defined since 0 is not a natural number
3
CONGRUENCE MODULO n
Facts:
• Any two integers are congruent modulo 1.
• Two integers are congruent modulo 2 when they are both even
or both odd.
4
CONGRUENCE MODULO n
The Division Algorithm and Congruence Modulo n
(a)
(b)
(c)
5
Congruence Modulo n
The Division Algorithm and Congruence Modulo n
(d)
(e)
13 51
6
The Division Algorithm and Congruence Modulo n
Example.
7
Congruence Modulo n
Remainder
Theorem 1
Example.
Hence, 12 82 (mod 7)
8
Congruence Modulo n
Properties of Congruence
Theorem 2
(a) a a (mod n)
9
Congruence Modulo n
Properties of Congruence
Theorem 2 (cont.)
10
Properties of Congruence
Proof.
(d)
11
Properties of Congruence
Note:
12
Some Applications of Congruence
Finding Remainders
Example.
Solution.
13
Some Applications of Congruence
Finding Remainders
Example.
Solution.
14
Some Applications of Congruence
Example.
Show that,
7| 5 2n
32 5 n 2
Solution.
15