A topic in the Open Knowledge Graph — a free, open map of 15,290 topics and the order to learn them in.

Primes in Arithmetic Progressions (Dirichlet's Theorem)

Research Depth 80 in the knowledge graph ☐ I know this ☆ Set as goal
109topics build on this
385prerequisites beneath it
See this on the map →
Dirichlet Series and L-FunctionsProperties of Congruences→→Distribution of Primes
dirichlet-theorem primes arithmetic-progressions analytic-number-theory

Core Idea

If gcd(a,d) = 1, there are infinitely many primes p ≡ a (mod d). The proof uses Dirichlet characters and L-functions, showing primes equidistribute among allowed residue classes.

Explainer

Start with a basic observation from your study of congruences: the integers modulo d split into residue classes 0, 1, 2, ..., d−1. Some of these classes cannot contain primes other than d itself — for example, class 0 mod d contains only multiples of d, and class 0 mod 6 contains multiples of 6, which are composite. But what about the classes that *could* contain primes? Is it possible that primes, becoming sparser as you go higher, all eventually pile into one residue class and avoid the others?

Dirichlet's Theorem answers this decisively: if gcd(a, d) = 1 — that is, if a and d share no common factor — then the arithmetic progression a, a+d, a+2d, a+3d, ... contains infinitely many primes. The condition gcd(a, d) = 1 is exactly the right condition: if gcd(a, d) = k > 1, then every element of the progression is divisible by k, so only finitely many (if any) can be prime. Beyond this, though, Dirichlet guarantees primes spread out across all the "eligible" residue classes — not just some of them.

The proof strategy draws on the Dirichlet series and L-functions you've studied. The key tool is Dirichlet characters — completely multiplicative functions χ: ℤ → ℂ that are periodic mod d and encode information about residue classes. From these characters, Dirichlet constructed L-functions L(s, χ) = ∑ χ(n)/ns, analytic relatives of the Riemann zeta function. The central step of the proof shows that log(number of primes ≤ x in the progression a mod d) grows like (1/φ(d)) · log log x, where φ(d) is Euler's totient — the count of residue classes coprime to d. Since this diverges, there must be infinitely many such primes.

A stronger result, the Prime Number Theorem for Arithmetic Progressions, refines this: among primes up to x, approximately x/(φ(d) · ln x) lie in each eligible class mod d. Primes don't just appear infinitely often in each valid class — they appear *equally often* in the long run, a phenomenon called equidistribution. This is remarkable: the primes, despite their irregular individual behavior, are perfectly democratic among residue classes when viewed in aggregate.

The key technical ingredient is proving that L(1, χ) ≠ 0 for all non-principal characters χ. This is where Dirichlet's original proof was subtle — he had to show the L-function doesn't vanish at s = 1, which would collapse the divergence argument. The non-vanishing at s = 1 is what separates Dirichlet's theorem from a near-theorem, and it requires using the full multiplicative structure of Dirichlet characters rather than any single character in isolation. This interplay between number-theoretic structure (congruences) and analytic tools (L-functions) is the hallmark of analytic number theory.

Practice Questions 5 questions

Prerequisite Chain

Understanding Zero → The Number Zero → Counting to Five → Counting to 10 → Counting to 20 → Counting a Set of Objects Up to 20 → Cardinality: The Last Number Counted → Matching Numerals to Quantities → Subitizing Small Quantities → Addition Within 10 → Number Bonds to 10 → Addition Within 20 → Doubles and Near Doubles → Doubles Facts Within 10 → Near Doubles Facts Within 20 → Mental Math Strategies for Addition → Mental Math: Adding and Subtracting Tens → Addition Within 100 → Repeated Addition as Multiplication → Multiplication as Equal Groups → Multiplication: Arrays → Basic Multiplication Facts (0s, 1s, 2s, 5s, 10s) → Multiplication Facts Within 100 → Division as Equal Sharing → Division as Grouping (Measurement Division) → Division: Grouping (Repeated Subtraction) Model → Division: Fair Sharing Model → Division as Equal Sharing → Division as Grouping → Basic Division Facts → Division Facts Within 100 → Multiplication and Division Fact Families → Relationship Between Multiplication and Division → Division Facts as Inverse of Multiplication → Remainders and Quotients in Division → Division Word Problems → Multi-Step Word Problems → Solving Multi-Step Word Problems → Multiplication Word Problems → Division Word Problems → Introduction to Long Division → Factors and Multiples → Prime and Composite Numbers → Equivalent Fractions → Relating Fractions and Decimals → Decimal Place Value → Integers and the Number Line → Comparing and Ordering Integers → Absolute Value → Adding Integers → Subtracting Integers → Multiplying Integers → Introduction to Exponents → Order of Operations → Integer Order of Operations → Variable Expressions → The Distributive Property → Variables and Expressions Review → Introduction to Polynomials → Adding and Subtracting Polynomials → Multiplying Polynomials → Factorial → Permutations → Combinations → Counting Principles: Addition and Multiplication Rules → Introduction to Graph Theory → Propositional Logic Foundations → Logical Equivalences → Set Operations: Union, Intersection, and Complement → Proof by Cases → Proving by Cases and Exhaustion → Vacuous Truth and Trivial Cases → Proof by Cases (Proof by Exhaustion) → Mathematical Induction → Divisibility and Greatest Common Divisor → The Fundamental Theorem of Arithmetic → Divisibility Theory (Formal Treatment) → Fundamental Theorem of Arithmetic (Rigorous Proof) → Arithmetic Functions and Multiplicativity → Dirichlet Series and L-Functions → Primes in Arithmetic Progressions (Dirichlet's Theorem)

Longest path: 81 steps · 385 total prerequisite topics

Prerequisites (2)

Leads To (1)