Chapter 2 Lecture Notes_ Primes
Chapter 2 Lecture Notes_ Primes
SEMESTER 1 2022/2023
MOTIVATION OF PRIMES
• A fundamental technique in mathematics is to break something down into its component parts,
and rebuild it from those parts.
Example.
• Prime factorization is a very useful tool when working with whole numbers:
o mental arithmetic
o finding square roots
o calculating the Greatest Common Divisor (GCD) and Least Common Multiples (LCM)
2
PRIME NUMBERS
3
PRIME NUMBERS
A prime number like 5, however, can only be represented by a
rectangular array with just one row.
Some Facts:
4
PRIME NUMBERS
Theorem 1
If p is a prime and p | ab, then p | a or p | b.
Example.
5
PRIME NUMBERS
Corollary 1
Example.
6
PRIME NUMBERS
Corollary 2
If p, q1, q2, ... , qn are all primes and p | q1 .q2. ... . qn then p = qk for
some k, where 1 k n.
Example.
Then, p = q2 ; p = q 3
7
PRIME NUMBERS
Example.
40 = 2. 2. 2. 5 = 23 . 5
90 = 2. 3. 3. 5 = 2 . 32 . 5
75 = 3. 5. 5
124 = 2 . 2 . 31
Exercise:
i. 228
ii. 150
iii. 280
8
PRIME NUMBERS
Corollary 3
Any positive integer n > 1 can be written uniquely in a canonical form
n = p p ... p
k1
1
k2
2
kr
r
Where for i = 1, 2, ...., r each ki is a positive integer and each pi is a prime, with p1 < p2 < ... < pr .
Example.
4725 = 33 . 52. 7
9
PRIME NUMBERS
Some Applications of Fundamental Theorem of Arithmetic
Finding Positive Divisors
Example.
120 = 23 . 3 . 5.
The positive divisors of 120 can be found as follows:
10
PRIME NUMBERS
Some Applications of Fundamental Theorem of Arithmetic
Finding Positive Divisors
Exercise.
Find all the positive divisors of the following positive integers:
11
PRIME NUMBERS
Some Applications of Fundamental Theorem of Arithmetic
Finding GCDs and LCMs
Theorem 3.
be their prime factorizations, respectively, where each exponent is a nonnegative integer, and where all
primes occurring in the prime factorizations of a and b are included in both products, perhaps with 0
exponent. Let min (ki , li ), denote the minimum of the two numbers ki and li , and max (ki , li ), the larger, or
maximum, of the two numbers ki and li . Then,
12
PRIME NUMBERS
Some Applications of Fundamental Theorem of Arithmetic
Finding GCDs and LCMs
Example.
Solution.
13
PRIME NUMBERS
Some Applications of Fundamental Theorem of Arithmetic
Finding GCDs and LCMs
Example.
Solution.
14
Primality Tests
Trial Division
Theorem 4 (Pythagoras)
Theorem 5
Example. (Theorem 5)
n = 16 (composite number)
Positive divisor of 16 : 1, 2, 4, 8, 16
Prime divisor of 16: 2 Then, 2 is not exceeding 16 = 4 16 = 2.2.2.2
15
Primility Tests
Trial Division
Example. (Theorem 5)
Let n = 509.
22 22.6 23
However, it turns out that none of these primes divides 509. Hence,
n = 509 is a prime number.
16
Primility Tests
Trial Division
Example. (Theorem 5)
Let n = 2093.
The possible prime divisors: 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43
2093 = 7 . 299
17 299 18
299 = 13 . 23
Then, 2093 = 7 . 13 . 23
Therefore, n = 2093 is a composite number.
17
The Sieve of Eratosthenes
Example.
If any of the primes divides the number less than 100, then the number is a composite.
18
The Sieve of Eratosthenes
19
The Sieve of Eratosthenes
Example.
p = 2, 3, 5
If any of the primes divides the number less than 50, then the number is a composite.
20
Two Conjectures About Primes
Example.
3 and 5;
11 and 13;
17 and 19, ; . . . ;
1000000000061 and 1000000000063; . . .
21
Two Conjectures About Primes
Goldbach Conjecture
Example.
Goldbach Conjecture
22