NUMBER THEORY Handout
NUMBER THEORY Handout
NUMBER THEORY Handout
- MATHEMATICS –
Prepared by: tcsantos
Number Theory
Topics:
Prime Number
is a positive integer greater than 1 and the only 2 factors are 1 and itself.
Composite Number
is a positive integer with more than two factors.
CONGRUENCE
The congruence relation shares many interesting properties with the equality relation.
The congruence symbol ≡ , invented by Gauss around 1800, parallels the equality
symbol =. The congruence symbol facilitates the study of divisibility theory.
Congruence Modulo m
Example:
23 ≡ 3 (mod 5) and 23 = 3 + 4 · 5;
on the other hand, 49 = −5 +9 · 6, so 49 ≡ −5 (mod 6).
Properties of Congruence
• a + c ≡ b + c (mod m)
• a − c ≡ b − c (mod m)
• ac ≡ bc (mod m)
Relatively Prime
Two integers are relatively prime if they share no common positive factors except 1.
Example: 4 and 9
Try these!
1. Identify if prime or composite. What is 12 mod 4?
a. 2 Ans: 0 , because 12 ÷3 = 4 remainder
b. 7 0
c. 95
d. 33 What is 12 mod 7?
Ans: 5 , because 12 ÷7 = 1
2. Which of the following pair/pairs are remainder 5
relatively prime?
a. 6 and 8
b. 9 and 13 *look forTry
thethese!
remainder
c. 3 and 8
3. What is 10 mod 5?
d. 2 and 7
4. What is 9 mod 3?
Wilson’s Theorem
If p is a prime, then (p-1) ! ≡ -1 (mod p)
Example:
(148) ! ≡ -1 (mod 149)
Type equation
• If p here.
is a prime and p ∤ 𝑎, then 𝑎𝑝−1 ≡ 1 (𝑚𝑜𝑑 𝑝)
Example:
210 ≡ 1 (𝑚𝑜𝑑 11)
*This also means that when 210 is divided by 11 the remainder is 1.
Example:
17
5 ≡ 5 (𝑚𝑜𝑑 17)
*This also means that when 517 is divided by 17 the remainder is 5.
Example:
Φ(2) = 1
Φ (4 ) = 2
Try these!
1. What is the remainder when 36 is divided by 7?
2. What is the remainder when 511 is divided by 11?
3. What is Φ(6)?