2020 09 28 Wilson NumberTheory PP
2020 09 28 Wilson NumberTheory PP
2020 09 28 Wilson NumberTheory PP
The Queen of
Mathematics
Robin Wilson
Euler Gauss
60 = 2 × 2 × 3 × 5 (or 2 × 5 × 3 × 2, etc.)
But 1 is not a considered a prime:
6 = 2×3 = 2×3×1 = 2×3×1×1 ...
Euclid’s theorem
(Elements, Book IX, Prop 20)
The list of primes goes on for ever
Euclid’s theorem
The list of primes goes on for ever
Euclid’s theorem
The list of primes goes on for ever
For suppose that the ONLY primes are
p1, p2, p3, . . . , pn, and consider the number
N = (p1 × p2 × p3 × . . . × pn) + 1.
Then N cannot be divided by any of these primes.
So N must be a new prime, or a product of new primes.
This contradicts the fact that we could list them all.
Examples:
• If the only known primes were 2, 3, 5 and 7,
then N = (2 × 3 × 5 × 7) + 1 = 211 (a new prime)
• If the only known primes were 2, 3, 5, 7, 11, 13,
then N = (2 × 3 × 5 × 7 × 11 × 13) + 1
= 30,031 = 59 × 509 (two new primes)
Generalising Euclid’s result
Using Euclid’s method, we can prove that:
There are infinitely many primes of the form 4n + 3:
3, 7, 11, 19, 23, 31, 43, 47, 59, 67, 71, 79, 83, 103, . . .
We can also prove that:
There are infinitely many primes of the form 4n + 1:
5, 13, 17, 29, 37, 41, 53, 61, 73, 89, 97, 101, . . . ,
. . . but not of the form 4n + 2, because these are all
divisible by 2.
Dirichlet’s theorem (1837)
So we can prove that:
There are infinitely many primes of the form 4n + 3:
and also that:
There are infinitely many primes of the form 4n + 1:
but not of the form 4n + 2.
Dirichlet’s theorem: If a and b have no factors in common,
then there are infinitely many primes of the form an + b.
For example, when a = 10 and b = 9:
there are infinitely many primes of the form 10n + 9
– that is, there are infinitely many primes ending with 9
[19, 29, 59, 79, 89, 109, 139, . . .]
Mersenne primes
Mersenne numbers are numbers of the form 2n – 1.
Some Mersenne numbers are prime:
22 – 1 = 3, 23 – 1 = 7, 25 – 1 = 31, 27 – 1 = 127, . . .
Others are not:
24 – 1 = 15, 26 – 1 = 63, 28 – 1 = 255, 29 – 1 = 511, . . .
Moreover, if N is odd,
then N2 has the form 8n + 1.
Right-angled triangles
Pythagoras: If the sides
are a, b, c, then
a2 + b2 = c2
Using the fact that gcd (e, φ(N)) = 1, Bob calculates m and n for which
me + n φ(N) = 1, and so me ≡ 1 (mod φ(N)). 11m ≡ 1 (mod 1008)
Now, by Euler’s theorem, Mφ(N) ≡ 1 (mod N), so m = 275
so Em ≡ (Me)m = Mme = M1 −nφ(N) ≡ M (mod N).
Bob calculates Em (mod N) to retrieve Alice’s original message M.
M ≡ E275 (mod 1073)
RSA public key cryptography
Alice wishes to send a secret message to Bob.
Bob first selects two primes, p, q, calculates N = pq.
N = 29 × 37 = 1073, φ(N) = 1008,
and chooses e so that gcd (e, φ(N)) = 1. e = 11
He then publicly announces e and N, but not p and q.
The numbers e and N are the public key, known to all.
Alice now converts her message to numerical form
and calls it M. Knowing e and N, she calculates
E ≡ Me (mod N) and sends it to Bob.
RSA public key cryptography
Alice calculates E ≡ Me (mod N) and sends it to Bob.
ISBN: 978-0-19-879809-5
Price: £8.99
[US $11.95]