Elementary number theory studies the integers ℤ with nothing more than addition, multiplication and the order relation, yet it contains some of the deepest problems in mathematics. The subject has a peculiar character: its theorems can usually be stated to a schoolchild, while their proofs may require the full apparatus of modern algebra and analysis. Fermat's Last Theorem, stated in 1637 and proved by Andrew Wiles (with Richard Taylor) in 1995, is the famous example; the Riemann hypothesis, still open, is another.
The introductory lesson on this topic covered divisibility rules, prime factorisations, the divisor-counting function, greatest common divisors, least common multiples and the Euclidean algorithm. This course assumes all of that and rebuilds it rigorously, then goes much further. The guiding idea, due to Gauss's Disquisitiones Arithmeticae (1801), is to replace statements about divisibility by statements about the arithmetic of residue classes: the ring ℤ/nℤ and its unit group (ℤ/nℤ)×. The structure of these finite rings and groups governs almost everything in the first half of the course, culminating in the law of quadratic reciprocity, which Gauss called the theorema aureum (golden theorem).
The second half turns to arithmetic functions and the distribution of the primes, where analysis enters through Dirichlet series and the Riemann zeta function; to classical Diophantine equations (sums of two squares, Pell's equation); and finally to computation: primality testing and the RSA cryptosystem, where nineteenth-century theorems became twentieth-century infrastructure.
Notation. ℕ = {1, 2, 3, …}. For integers a, b we write a | b when b = ac for some c ∈ ℤ. The letter p always denotes a prime. gcd(a, b) and lcm(a, b) are written (a, b) and [a, b] when no confusion is possible. The natural logarithm is log. For functions f, g we write f(x) = O(g(x)) if |f(x)| ≤ C g(x) for some constant C and all large x, and f ~ g if f(x)/g(x) → 1.
In this course, you will:
- 1.Prove the division algorithm, Bézout's identity and the fundamental theorem of arithmetic from the well-ordering principle
- 2.Work in the rings ℤ/nℤ and prove the theorems of Fermat, Euler and Wilson as consequences of group theory
- 3.Prove the Chinese remainder theorem as a ring isomorphism and use it to compute with composite moduli
- 4.Determine the structure of (ℤ/nℤ)× completely, including the existence of primitive roots
- 5.Develop quadratic residues, the Legendre and Jacobi symbols, and prove quadratic reciprocity
- 6.Use Dirichlet convolution and Möbius inversion to manipulate arithmetic functions
- 7.Prove Chebyshev-type bounds for π(x) and understand the statements of the prime number theorem, Dirichlet's theorem and the Riemann hypothesis
- 8.Solve the classical Diophantine equations: linear equations, sums of two squares and Pell's equation
- 9.Analyse the Miller–Rabin primality test and prove the correctness of RSA
How to read this course: each lesson opens with its key statement, develops definitions, theorems and complete proofs, and closes with exercises whose solutions are given immediately afterwards.
Figures
Contents
Divisibility, the Euclidean Algorithm and Bézout's Identity Lesson 2
Primes and the Fundamental Theorem of Arithmetic Lesson 3
Congruences and the Ring ℤ/nℤ Lesson 4
The Theorems of Fermat, Euler and Wilson Lesson 5
The Chinese Remainder Theorem Lesson 6
Primitive Roots and the Structure of (ℤ/nℤ)× Lesson 7
Quadratic Residues and the Legendre Symbol Lesson 8
The Law of Quadratic Reciprocity Lesson 9
Arithmetic Functions, Dirichlet Convolution and Möbius Inversion Lesson 10
The Distribution of Primes Lesson 11
Sums of Two Squares and Pythagorean Triples Lesson 12
Continued Fractions and Pell's Equation Lesson 13
Primality Testing and the RSA Cryptosystem Problem Set
60 problems Assessment
Randomly generated questions
Image sources
- Figure 1 · Disqvisitiones-800. By Carl Friedrich Gauss. Public domain. From Wikimedia Commons: https://commons.wikimedia.org/wiki/File:Disqvisitiones-800.jpg
- Figure 2 · Pierre de Fermat. By Unknown author. Public domain. From Wikimedia Commons: https://commons.wikimedia.org/wiki/File:Pierre_de_Fermat.jpg