• Aucun résultat trouvé

February4 ,2021 PRIMENUMBERS ConceptsinAbstractMathematics

N/A
N/A
Protected

Academic year: 2022

Partager "February4 ,2021 PRIMENUMBERS ConceptsinAbstractMathematics"

Copied!
23
0
0

Texte intégral

(1)

MAT246H1-S – LEC0201/9201

Concepts in Abstract Mathematics

PRIME NUMBERS

February 4th, 2021

(2)

Introduction

Prime numbers play a crucial role in number theory: they are the integers greater than 1 which can’t be factorized further while any other positive integer admits a unique expression as a product of prime numbers.

While negative integers are relatively new, prime numbers have been studied for quite a long time (maybe even before human beings developped writing systems).

All the results from today’s lecture were already known inEuclid’s Elements(circa 300BC).

Nonetheless, there are still many conjectures involving prime numbers which are easy to state but are still open (some despite several centuries of attempts), for instance:

Goldbach conjecture (1742): any even natural number greater than2may be written as a sum of two prime numbers (e.g. 4 = 2 + 2,6 = 3 + 3,8 = 5 + 3,10 = 5 + 5 = 7 + 3…).

The twin prime conjecture (1849): there are infinitely many prime numbers𝑝such that𝑝 + 2 is also prime (e.g. (3, 5),(5, 7),(11, 13)…).

Legendre conjecture (1912):given𝑛 ∈ ℕ ⧵ {0}, we may always find a prime number between

(3)

Definition

Definition: prime numbers

We say that a natural number𝑝is aprime numberif it has exactly two distinct positive divisors.

A positive natural number with more than2positive divisors is said to be acomposite number.

Remarks

• 0is not a prime number since any natural number is a divisor of0.

• 1is not a prime number because it has only one positive divisor.

Hence𝑝 ∈ ℕis a prime number if and only if𝑝 ≥ 2and the only positive divisors of𝑝are1and𝑝.

Examples

The first prime numbers are 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97…

(4)

Definition

Definition: prime numbers

We say that a natural number𝑝is aprime numberif it has exactly two distinct positive divisors.

A positive natural number with more than2positive divisors is said to be acomposite number.

Remarks

• 0is not a prime number since any natural number is a divisor of0.

• 1is not a prime number because it has only one positive divisor.

Hence𝑝 ∈ ℕis a prime number if and only if𝑝 ≥ 2and the only positive divisors of𝑝are1and𝑝.

Examples

The first prime numbers are 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97…

(5)

Definition

Definition: prime numbers

We say that a natural number𝑝is aprime numberif it has exactly two distinct positive divisors.

A positive natural number with more than2positive divisors is said to be acomposite number.

Remarks

• 0is not a prime number since any natural number is a divisor of0.

• 1is not a prime number because it has only one positive divisor.

Hence𝑝 ∈ ℕis a prime number if and only if𝑝 ≥ 2and the only positive divisors of𝑝are1and𝑝.

Examples

The first prime numbers are 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97…

(6)

How to check whether a natural number is prime?

Proposition

A composite number𝑎admits a positive divisor𝑏such that1 < 𝑏2≤ 𝑎.

Proof.Write𝑎 = 𝑏1𝑏2for two natural numbers𝑏1and𝑏2which are not equal to1or𝑎. Assume by contradiction that both𝑏21> 𝑎and𝑏22> 𝑎. Then

𝑎2= (𝑏1𝑏2)2= 𝑏21𝑏22> 𝑎2

Hence a contradiction. ■

Example: 97 is a prime number

Since102= 100 > 97, it is enough to check that none of2,3,4,5,6,7,8and9are divisors of97.

(7)

How to check whether a natural number is prime?

Proposition

A composite number𝑎admits a positive divisor𝑏such that1 < 𝑏2≤ 𝑎.

Proof.Write𝑎 = 𝑏1𝑏2for two natural numbers𝑏1and𝑏2which are not equal to1or𝑎.

Assume by contradiction that both𝑏21> 𝑎and𝑏22> 𝑎. Then 𝑎2= (𝑏1𝑏2)2= 𝑏21𝑏22> 𝑎2

Hence a contradiction. ■

Example: 97 is a prime number

Since102= 100 > 97, it is enough to check that none of2,3,4,5,6,7,8and9are divisors of97.

(8)

How to check whether a natural number is prime?

Proposition

A composite number𝑎admits a positive divisor𝑏such that1 < 𝑏2≤ 𝑎.

Proof.Write𝑎 = 𝑏1𝑏2for two natural numbers𝑏1and𝑏2which are not equal to1or𝑎.

Assume by contradiction that both𝑏21> 𝑎and𝑏22> 𝑎. Then 𝑎2= (𝑏1𝑏2)2= 𝑏21𝑏22> 𝑎2

Hence a contradiction. ■

Example: 97 is a prime number

Since102= 100 > 97, it is enough to check that none of2,3,4,5,6,7,8and9are divisors of97.

(9)

Towards the fundamental theorem of arithmetic

Lemma

A natural number𝑛 ≥ 2has at least one prime divisor.

Proof.

We are going to prove with a strong induction that every natural number𝑛 ≥ 2has a prime divisor. Base case at𝑛 = 2: 2admits a prime divisor (itself).

Induction step: assume that the natural numbers2, … , 𝑛admit a prime divisor for some𝑛 ≥ 2.

• First case: 𝑛 + 1is a prime number, then it has a prime divisor (itself).

• Second case:𝑛 + 1is a composite, then𝑛 + 1 = 𝑎𝑏where𝑎, 𝑏 ∈ ℕsatisfy1 < 𝑎, 𝑏 < 𝑛 + 1. Since2 ≤ 𝑎 ≤ 𝑛,𝑎admits a prime divisor𝑝by the induction hypothesis,

i.e. 𝑎 = 𝑝𝑘for some𝑘 ∈ ℕ. Then𝑛 + 1 = 𝑎𝑏 = 𝑝𝑘𝑏.

Thus𝑝is a prime divisor of𝑛 + 1.

Which proves the induction step. ■

(10)

Towards the fundamental theorem of arithmetic

Lemma

A natural number𝑛 ≥ 2has at least one prime divisor.

Proof.

We are going to prove with a strong induction that every natural number𝑛 ≥ 2has a prime divisor.

Base case at𝑛 = 2: 2admits a prime divisor (itself).

Induction step: assume that the natural numbers2, … , 𝑛admit a prime divisor for some𝑛 ≥ 2.

• First case: 𝑛 + 1is a prime number, then it has a prime divisor (itself).

• Second case:𝑛 + 1is a composite, then𝑛 + 1 = 𝑎𝑏where𝑎, 𝑏 ∈ ℕsatisfy1 < 𝑎, 𝑏 < 𝑛 + 1.

Since2 ≤ 𝑎 ≤ 𝑛,𝑎admits a prime divisor𝑝by the induction hypothesis, i.e. 𝑎 = 𝑝𝑘for some𝑘 ∈ ℕ.

Then𝑛 + 1 = 𝑎𝑏 = 𝑝𝑘𝑏.

Thus𝑝is a prime divisor of𝑛 + 1.

Which proves the induction step. ■

(11)

How many prime numbers are there? – A lot!

Euclid’s theorem

There are infinitely many prime numbers.

Proof.Assume by contradiction that there exist only finitely many prime numbers, namely: 𝑝1, 𝑝2, … , 𝑝𝑛

Set𝑞 = 𝑝1𝑝2⋯ 𝑝𝑛+ 1.

Since𝑞has a prime divisor, there exists𝑖 ∈ {1, 2, … , 𝑛}such that𝑝𝑖|𝑞. Then, since𝑝𝑖|𝑝1𝑝2… 𝑝𝑛and𝑝𝑖|𝑞, we have that

𝑝𝑖|(𝑞 − 𝑝1𝑝2… 𝑝𝑛) = 1

Therefore𝑝𝑖= 1, which is a contradiction because1is not a prime number. ■

(12)

How many prime numbers are there? – A lot!

Euclid’s theorem

There are infinitely many prime numbers.

Proof.Assume by contradiction that there exist only finitely many prime numbers, namely:

𝑝1, 𝑝2, … , 𝑝𝑛 Set𝑞 = 𝑝1𝑝2⋯ 𝑝𝑛+ 1.

Since𝑞has a prime divisor, there exists𝑖 ∈ {1, 2, … , 𝑛}such that𝑝𝑖|𝑞.

Then, since𝑝𝑖|𝑝1𝑝2… 𝑝𝑛and𝑝𝑖|𝑞, we have that

𝑝𝑖|(𝑞 − 𝑝1𝑝2… 𝑝𝑛) = 1

Therefore𝑝𝑖= 1, which is a contradiction because1is not a prime number. ■

(13)

Euclid’s lemma

Euclid’s lemma

Let𝑎, 𝑏 ∈ ℤand𝑝be a prime number. If𝑝|𝑎𝑏then𝑝|𝑎or𝑝|𝑏(or both).

Proof.Let𝑎, 𝑏 ∈ ℤand𝑝be a prime number such that𝑝|𝑎𝑏.

Assume that𝑝 ∤ 𝑎thengcd(𝑎, 𝑝) = 1since the only positive divisors of𝑝are1and itself.

Hence, by Gauss’ lemma,𝑝|𝑏. ■

(14)

Euclid’s lemma

Euclid’s lemma

Let𝑎, 𝑏 ∈ ℤand𝑝be a prime number. If𝑝|𝑎𝑏then𝑝|𝑎or𝑝|𝑏(or both).

Proof.Let𝑎, 𝑏 ∈ ℤand𝑝be a prime number such that𝑝|𝑎𝑏.

Assume that𝑝 ∤ 𝑎thengcd(𝑎, 𝑝) = 1since the only positive divisors of𝑝are1and itself.

Hence, by Gauss’ lemma,𝑝|𝑏. ■

(15)

The fundamental theorem of arithmetic – 1

The fundamental theorem of arithmetic

Any integer greater than 1 can be written as a product of primes, moreover this expression as a product of primes is unique up to the order of the prime factors.

Proof.Existence.

We are going to prove with a strong induction that𝑛 ≥ 2admits a prime factorization. Base case for𝑛 = 2:2is a prime number.

Induction step: assume that all the integers2, 3, … , 𝑛have a prime factorization for some𝑛 ≥ 2. We want to prove that𝑛 + 1admits a prime factorization.

Since𝑛 + 1admits a prime factor, there exist𝑝prime and𝑘 ∈ ℕ ⧵ {0}such that𝑛 + 1 = 𝑝𝑘. If𝑘 = 1, then𝑛 + 1 = 𝑝. So we may assume that𝑘 ≥ 2.

Since1 < 𝑝, we also have that𝑘 < 𝑝𝑘 = 𝑛 + 1, i.e. 2 ≤ 𝑘 ≤ 𝑛.

Thus, by the induction hypothesis,𝑘admits a prime factorization𝑘 = 𝑝1𝑝2… 𝑝𝑙. Finally𝑛 + 1 = 𝑝𝑝1𝑝2… 𝑝𝑙.

(16)

The fundamental theorem of arithmetic – 1

The fundamental theorem of arithmetic

Any integer greater than 1 can be written as a product of primes, moreover this expression as a product of primes is unique up to the order of the prime factors.

Proof.Existence.

We are going to prove with a strong induction that𝑛 ≥ 2admits a prime factorization.

Base case for𝑛 = 2:2is a prime number.

Induction step: assume that all the integers2, 3, … , 𝑛have a prime factorization for some𝑛 ≥ 2.

We want to prove that𝑛 + 1admits a prime factorization.

Since𝑛 + 1admits a prime factor, there exist𝑝prime and𝑘 ∈ ℕ ⧵ {0}such that𝑛 + 1 = 𝑝𝑘.

If𝑘 = 1, then𝑛 + 1 = 𝑝. So we may assume that𝑘 ≥ 2.

Since1 < 𝑝, we also have that𝑘 < 𝑝𝑘 = 𝑛 + 1, i.e. 2 ≤ 𝑘 ≤ 𝑛.

Thus, by the induction hypothesis,𝑘admits a prime factorization𝑘 = 𝑝1𝑝2… 𝑝𝑙. Finally𝑛 + 1 = 𝑝𝑝1𝑝2… 𝑝𝑙.

(17)

The fundamental theorem of arithmetic – 2

The fundamental theorem of arithmetic

Any integer greater than 1 can be written as a product of primes, moreover this expression as a product of primes is unique up to the order of the prime factors.

Proof.Uniqueness.

Assume by contradiction there exists an integer greater than 1 with two prime factorizations. Denote by𝑛the least such integer (which exists by the well-ordering principle).

Let𝑛 = 𝑝1𝑝2… 𝑝𝑟= 𝑞1𝑞2… 𝑞𝑠be two distinct prime factorizations of𝑛. By Euclid’s lemma𝑝1divides one of the𝑞𝑗, WLOG assume that𝑝1|𝑞1. Since𝑞1is a prime number, either𝑝1= 1or𝑝1= 𝑞1.

Thus𝑝1= 𝑞1since𝑝1is a prime number.

Therefore, by cancellation,𝑚 = 𝑝2… 𝑝𝑟= 𝑞2… 𝑞𝑠has two distinct prime factorizations. Note that𝑚 > 1since otherwise𝑛 = 𝑝1= 𝑞1.

But since1 < 𝑝1we get𝑚 = 𝑝2… 𝑝𝑟< 𝑝1𝑝2… 𝑝𝑟= 𝑛.

Which is impossible since𝑛is the least integer greater than1with two prime factorizations. ■

(18)

The fundamental theorem of arithmetic – 2

The fundamental theorem of arithmetic

Any integer greater than 1 can be written as a product of primes, moreover this expression as a product of primes is unique up to the order of the prime factors.

Proof.Uniqueness.

Assume by contradiction there exists an integer greater than 1 with two prime factorizations.

Denote by𝑛the least such integer (which exists by the well-ordering principle).

Let𝑛 = 𝑝1𝑝2… 𝑝𝑟= 𝑞1𝑞2… 𝑞𝑠be two distinct prime factorizations of𝑛.

By Euclid’s lemma𝑝1divides one of the𝑞𝑗, WLOG assume that𝑝1|𝑞1. Since𝑞1is a prime number, either𝑝1= 1or𝑝1= 𝑞1.

Thus𝑝1= 𝑞1since𝑝1is a prime number.

Therefore, by cancellation,𝑚 = 𝑝2… 𝑝𝑟= 𝑞2… 𝑞𝑠has two distinct prime factorizations.

Note that𝑚 > 1since otherwise𝑛 = 𝑝1= 𝑞1.

But since1 < 𝑝1we get𝑚 = 𝑝2… 𝑝𝑟< 𝑝1𝑝2… 𝑝𝑟= 𝑛.

Which is impossible since𝑛is the least integer greater than1with two prime factorizations. ■

(19)

The fundamental theorem of arithmetic – 3

Corollary

Any natural number𝑛 ∈ ℕ ⧵ {0}admits a unique expression

𝑛 = ∏

𝑝prime

𝑝𝛼𝑝

where𝛼𝑝∈ ℕ(i.e. the𝛼𝑝 are uniquely determined).

Remarks

• The above product is finite since all but finitely many exponents are equal to0.

• 1is the special case when𝛼𝑝= 0for all prime numbers𝑝.

Example

60798375 = 32× 53× 11 × 173

(20)

The fundamental theorem of arithmetic – 3

Corollary

Any natural number𝑛 ∈ ℕ ⧵ {0}admits a unique expression

𝑛 = ∏

𝑝prime

𝑝𝛼𝑝

where𝛼𝑝∈ ℕ(i.e. the𝛼𝑝 are uniquely determined).

Remarks

• The above product is finite since all but finitely many exponents are equal to0.

• 1is the special case when𝛼𝑝= 0for all prime numbers𝑝.

Example

60798375 = 32× 53× 11 × 173

(21)

The fundamental theorem of arithmetic – 3

Corollary

Any natural number𝑛 ∈ ℕ ⧵ {0}admits a unique expression

𝑛 = ∏

𝑝prime

𝑝𝛼𝑝

where𝛼𝑝∈ ℕ(i.e. the𝛼𝑝 are uniquely determined).

Remarks

• The above product is finite since all but finitely many exponents are equal to0.

• 1is the special case when𝛼𝑝= 0for all prime numbers𝑝.

Example

60798375 = 32× 53× 11 × 173

(22)

The fundamental theorem of arithmetic – 4

Corollary

Write𝑎 = ∏

𝑝prime

𝑝𝛼𝑝 and𝑏 = ∏

𝑝prime

𝑝𝛽𝑝 with𝛼𝑝, 𝛽𝑝∈ ℕall but finitely many equal to0. Then

• 𝑎|𝑏if and only if for every prime number𝑝,𝛼𝑝≤ 𝛽𝑝.

• gcd(𝑎, 𝑏) = ∏

𝑝prime

𝑝min(𝛼𝑝,𝛽𝑝).

Example

gcd(32× 53× 11 × 173, 3 × 55× 172× 23) = 3 × 53× 172

(23)

The fundamental theorem of arithmetic – 5

Corollary

Write𝑛 = ∏

𝑝prime

𝑝𝛼𝑝 with𝛼𝑝∈ ℕall but finitely many equal to0.

Then the positive divisors of𝑛are exactly the numbers of the form𝑛 = ∏

𝑝prime

𝑝𝛾𝑝 with0 ≤ 𝛾𝑝 ≤ 𝛼𝑝. Particularly,𝑛has ∏

𝑝prime

(𝛼𝑝+ 1)positive divisors.

Références

Documents relatifs

Start with the smallest number that divides exactly, repeat as many times as necessary with the same prime number, then try the next prime number in the same way, and stop when you

Prove that in a finite group of even order, there is an element of order 25. Show that a finite integral domain is

Let R be a rectangle in the Euclidean plane; we consider a partition of R into smaller rectangles, the sides of which are parallel to those of R.. Suppose that each of the

Gibbs : les math´ ematiques du hasard au cœur de la physique ?” Conf´ erence donn´ ee dans le cadre du cycle Un texte, un math´

If a real number x satisfies Conjecture 1.1 for all g and a, then it follows that for any g, each given sequence of digits occurs infinitely often in the g-ary expansion of x.. This

Our main concern is to give good estimates for the number of distinct integers at most x which are represented by f in all ranges of x with a particular focus on the

Let us denote by RG perm p the category of all p {permutation RG {modules. The following proposition generalizes to p {permutation modules a result which is well known for

As shown in Table 3, one can see that the negative edges between active users and popular objects (i.e., edges of high popularity) tend to play a negative role while those