Number Theory
Number theory is the study of the whole numbers —
1, 2, 3, \dots — and the astonishingly deep patterns hiding
inside them. It asks the most childlike questions in all of mathematics ("which numbers
are prime?", "when is one number a multiple of another?", "which sums of squares are
possible?") and discovers that the answers run breathtakingly deep, connecting to almost
every other branch of the subject.
Carl Friedrich Gauss called it the queen of mathematics. Its questions are easy
to state and often fiendishly hard to answer — some, like the Riemann Hypothesis, have
resisted the finest minds for over a century. And for two thousand years it was prized as
the purest, most useless of mathematics — until it quietly became the machinery that keeps
every online secret safe.
The big idea: divisibility and primes
One thread runs through the whole subject: divisibility — which numbers
divide which. From it grow the primes, the indivisible atoms every other
number is built from, and the whole edifice of modular arithmetic, the "clock
arithmetic" of remainders. Master those two ideas and the rest of number theory unfolds as
a series of ever-more-surprising consequences.
The shape of the journey
The course climbs in nine stages, each resting on the last.
- Stage 1 — Divisibility & the integers. What it means to divide:
the division algorithm, greatest common divisors, Euclid's algorithm and Bézout's identity.
- Stage 2 — Primes. The atoms of arithmetic: unique factorisation, why
the primes never run out, how to sieve and test for them, and how they thin out.
- Stage 3 — Congruences. Clock arithmetic: working modulo
n, solving congruences, inverses, and the Chinese Remainder Theorem.
- Stage 4 — The multiplicative world. Fermat, Euler and the totient
function; the order of an element, primitive roots, and the discrete logarithm.
- Stage 5 — Quadratic residues. Which numbers are squares mod
p — the Legendre symbol and the jewel of the subject, quadratic
reciprocity.
- Stage 6 — Arithmetic functions. Counting divisors, perfect numbers,
the Möbius function and the inversion that ties them together.
- Stage 7 — Diophantine equations. Whole-number solutions: Pythagorean
triples, sums of two squares, the Gaussian integers, continued fractions and Pell's equation.
- Stage 8 — Analytic number theory. Calculus meets the primes: the
Riemann zeta function, the Prime Number Theorem, and the Riemann Hypothesis.
- Stage 9 — Algebraic number theory. Numbers beyond the integers:
number fields, ideals, and how unique factorisation is rescued when it breaks.
Stage 1 — Divisibility & the integers
- The Division Algorithm
- The Greatest Common Divisor
- The Euclidean Algorithm
- Bézout's Identity
- The Extended Euclidean Algorithm
- The Least Common Multiple
- Linear Diophantine Equations
Stage 2 — Primes
- The Fundamental Theorem of Arithmetic
- The Infinitude of Primes
- The Sieve of Eratosthenes
- The Distribution of Primes
- Mersenne and Fermat Primes
- Primality Testing
Stage 3 — Congruences
- Modular Arithmetic
- Arithmetic mod n
- Linear Congruences
- Modular Inverses
- The Chinese Remainder Theorem
- Fast Modular Exponentiation
Stage 4 — The multiplicative world
- Fermat's Little Theorem
- Euler's Totient Function
- Euler's Theorem
- Wilson's Theorem
- The Order of an Element
- Primitive Roots
- The Discrete Logarithm
Stage 5 — Quadratic residues
- Quadratic Residues
- The Legendre Symbol
- Euler's Criterion
- The Law of Quadratic Reciprocity
- The Jacobi Symbol
Stage 6 — Arithmetic functions
- Multiplicative Functions
- The Divisor Functions
- Perfect Numbers
- The Möbius Function
- Möbius Inversion
- The Euler Product
Stage 7 — Diophantine equations & Gaussian integers
- Pythagorean Triples
- Sums of Two Squares
- The Gaussian Integers
- Continued Fractions
- Pell's Equation
- Fermat's Last Theorem
Stage 8 — Analytic number theory
- The Riemann Zeta Function
- The Euler Product for Zeta
- Dirichlet Series
- The Prime Number Theorem
- Dirichlet's Theorem on Arithmetic Progressions
- The Riemann Hypothesis
Stage 9 — Algebraic number theory
- Number Fields
- Algebraic Integers
- Ideals and Unique Factorization
- The Ideal Class Group
- p-adic Numbers
Going deeper — a master's course on the primes
Stage 8 gives the pictures of how the primes are distributed. To see the proofs —
and to follow the story all the way to twenty-first-century research — there is a full graduate
course,
Analytic Number Theory:
the rigorous Prime Number Theorem, Dirichlet L-functions, the zeros of
zeta, sieve methods, bounded gaps between primes, the circle method and the automorphic frontier.
Let's get started
We begin where all of number theory begins — not with primes, but with the humble act of
division with remainder. Everything else is built on it.
Let's get started → The Division Algorithm