Home › Number Theory

Number Theory

Advanced · An Advanced Course

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:

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

Title page of Gauss's Disquisitiones Arithmeticae, Leipzig 1801
Figure 1. Title page of Carl Friedrich Gauss's Disquisitiones Arithmeticae (Leipzig, 1801). The book introduced congruence notation and gave the first complete proof of quadratic reciprocity. Source
Portrait of Pierre de Fermat
Figure 2. Pierre de Fermat (1601–1665), a lawyer in Toulouse, stated the little theorem, the two-square theorem for primes p ≡ 1 (mod 4) and his famous Last Theorem, and posed the challenge x² − 61y² = 1. Source

Contents

Lesson 1
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

  1. Figure 1 · Disqvisitiones-800. By Carl Friedrich Gauss. Public domain. From Wikimedia Commons: https://commons.wikimedia.org/wiki/File:Disqvisitiones-800.jpg
  2. Figure 2 · Pierre de Fermat. By Unknown author. Public domain. From Wikimedia Commons: https://commons.wikimedia.org/wiki/File:Pierre_de_Fermat.jpg
V.3.1