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 CongruencesDistribution 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 ZeroThe Number ZeroCounting to FiveCounting to 10Counting to 20Counting a Set of Objects Up to 20Cardinality: The Last Number CountedMatching Numerals to QuantitiesSubitizing Small QuantitiesAddition Within 10Number Bonds to 10Addition Within 20Doubles and Near DoublesDoubles Facts Within 10Near Doubles Facts Within 20Mental Math Strategies for AdditionMental Math: Adding and Subtracting TensAddition Within 100Repeated Addition as MultiplicationMultiplication as Equal GroupsMultiplication: ArraysBasic Multiplication Facts (0s, 1s, 2s, 5s, 10s)Multiplication Facts Within 100Division as Equal SharingDivision as Grouping (Measurement Division)Division: Grouping (Repeated Subtraction) ModelDivision: Fair Sharing ModelDivision as Equal SharingDivision as GroupingBasic Division FactsDivision Facts Within 100Multiplication and Division Fact FamiliesRelationship Between Multiplication and DivisionDivision Facts as Inverse of MultiplicationRemainders and Quotients in DivisionDivision Word ProblemsMulti-Step Word ProblemsSolving Multi-Step Word ProblemsMultiplication Word ProblemsDivision Word ProblemsIntroduction to Long DivisionFactors and MultiplesPrime and Composite NumbersEquivalent FractionsRelating Fractions and DecimalsDecimal Place ValueIntegers and the Number LineComparing and Ordering IntegersAbsolute ValueAdding IntegersSubtracting IntegersMultiplying IntegersIntroduction to ExponentsOrder of OperationsInteger Order of OperationsVariable ExpressionsThe Distributive PropertyVariables and Expressions ReviewIntroduction to PolynomialsAdding and Subtracting PolynomialsMultiplying PolynomialsFactorialPermutationsCombinationsCounting Principles: Addition and Multiplication RulesIntroduction to Graph TheoryPropositional Logic FoundationsLogical EquivalencesSet Operations: Union, Intersection, and ComplementProof by CasesProving by Cases and ExhaustionVacuous Truth and Trivial CasesProof by Cases (Proof by Exhaustion)Mathematical InductionDivisibility and Greatest Common DivisorThe Fundamental Theorem of ArithmeticDivisibility Theory (Formal Treatment)Fundamental Theorem of Arithmetic (Rigorous Proof)Arithmetic Functions and MultiplicativityDirichlet Series and L-FunctionsPrimes in Arithmetic Progressions (Dirichlet's Theorem)

Longest path: 81 steps · 385 total prerequisite topics

Prerequisites (2)

Leads To (1)