TL;DR
A Dirichlet character modulo is a rule that assigns a complex number to every whole number, depends only on the remainder when the number is divided by , and multiplies correctly: the value at a product is the product of the values. It is zero on numbers that share a factor with . Together the characters for one modulus describe every way the numbers coprime to can be sorted, and that sorting is the tool Dirichlet used to show that each such progression of remainders contains infinitely many primes.
Builds on: Group (Abstract Algebra), Complex Numbers, Euler's Totient Function · Leads to: primes in arithmetic progressions, and the analytic study of -functions
Where it's used
Primes in arithmetic progressions. The primes can be sorted by their remainder mod . Dirichlet's theorem says that every remainder that shares no factor with is hit by infinitely many primes. His proof uses one -function for each character, so the characters are the instruments that separate the classes and show that none of them is empty.
Primality tests. The Solovay–Strassen test checks a candidate number using the Jacobi symbol, a generalisation of the quadratic characters, which are the characters of order 2. The test is built on the arithmetic of residues mod the candidate, and the character values say which residues behave like squares.
Analytic number theory. The -function of a character is a sum over the integers, and its value at the point can be a familiar number. For the character mod 4 below, the series is , the Leibniz series. The same kind of sum, with the character as its sign pattern, gives counts of primes in each class.
Counting primes by residue. Looking at how many primes fall into each residue class, as in the realistic example below, is a standard way to test whether classes are balanced, and the character sum measures the imbalance.
How it works
Start with the modulus . The numbers share no factor with 5 (coprime to it), and multiplying them mod 5 gives back a number in the same set. These four residues form a group. Their generator is , because the powers of mod 5 cycle through all four: , , , .
A character must send the group to the unit circle, the complex numbers of size 1, and it must respect multiplication. Here is one way to build it.
- Choose a value for the generator. Set , where is the square root of . Any value of size 1 would do if , because returns to after four steps and the character must return to as well. The value is the simplest choice that is not or . Check: has size 1, and .
- Fill in the powers of the generator. Since mod 5, we need . Since , we need . Since , we need . Check: four steps around the cycle return to 1, as they must.
- Test multiplication. Take . The rule requires , and indeed . Check: the rule holds for this product.
- Extend to all integers. For a number that shares a factor with 5, set . Only mod 5 does this here. Check: , which keeps the multiplicative rule true for every product.
- Read the table. The character takes the values equal to , and then the same pattern repeats every 5 whole numbers. This is a Dirichlet character modulo 5.
flowchart LR A[Residues coprime to 5: 1, 2, 3, 4] --> B[Multiply mod 5] A --> C[Map each residue to a point on the unit circle] B --> D[Products match: chi of ab equals chi of a times chi of b] C --> D
The diagram says the same thing as the walkthrough: the character is a map that turns the multiplication of residues into multiplication of complex numbers.
The math
The formal definition and the main facts come in four parts, following the walkthrough: the group of units, the character as a homomorphism, the count and orthogonality of characters, and the -function.
Step 1 in symbols: the units mod q
Let be the set of residues mod with (greatest common divisor 1), under multiplication mod . It is a group with elements, where is Euler's totient. For it is , and .
Step 2 in symbols: the character
A Dirichlet character modulo is a map with these properties:
and for the units. Restricted to , the character is a group homomorphism to the unit circle, meaning a map that turns products into products. Euler's formula writes each such value as , so the character is a set of angles, one per residue. Since for every unit (Euler's theorem), we get , and every value is a root of unity.
In the example, means , so the angle is .
Step 3 in symbols: how many, and orthogonality
There are exactly characters modulo , and they form a group under pointwise multiplication. The principal character is 1 on units and 0 elsewhere. Two relations are the reason characters are useful. For any unit ,
where the sum is over all characters and is complex conjugation. The indicator is 1 when its statement is true and 0 otherwise. This lets a condition on the remainder be written as an average over characters, which is how Dirichlet split the primes into classes.
Step 4 in symbols: the L-function
For a character and a complex number with real part greater than 1, define
For a nonprincipal character the series also converges at , and Dirichlet's proof depends on for every character. The character mod 4 gives , as the realistic example shows.
Worked examples
Take the character mod 5 built above, with , , , , and . Check the multiplicative rule on the pair .
- The product is , and . So .
- The product of the values is .
- The two sides agree: .
- Check a second pair, . The product is , so , and . They agree.
Interpretation: a character turns the arithmetic of residues into arithmetic of unit-circle points. Once the value at a generator is chosen, every other value is forced.
The character mod 4 is if , if , and if is even. Its values for are .
- The terms of the -series at are . Start with : the term is , and the partial sum is .
- Add : the term is , so the partial sum is .
- Add : the term is , so the partial sum is .
- Add : the term is , so the partial sum is about .
- Check: the partial sums after and after are on opposite sides of . They bracket the limit.
- Interpretation: the series converges to . The character supplies the alternating signs, and its zeros on even numbers remove those terms entirely.
Try it: what is the partial sum after ? Answer: , which is above again, so the sums keep oscillating around the limit.
Dirichlet's theorem says the primes split evenly in the long run between the two classes and mod , but the split at any finite point can be lopsided. Use the character and sum it over the primes.
- The primes up to 20 are . The prime 2 gets , so it drops out.
- Primes are , each with value . Their sum is .
- Primes are , each with value . Their sum is .
- The character sum over these primes is .
- Check: the total number of odd primes is , and .
- Interpretation: up to 20, the class has one more prime than the class . Character sums measure this lean, and it is a known pattern that the class tends to lead at small ranges.
Try it: how does the character sum change when the primes up to 30 are included? Answer: add (value ) and (value ), giving . The sum stays at , with class having and class having .
Common mistakes and tradeoffs
Misconception 1: any function that repeats mod q is a character. It is tempting to think that periodicity is the whole definition. In fact a character must also be multiplicative, and it must be zero on numbers that are not coprime to . The constant pattern fails the zero rule: shares a factor with , so must be , and the constant pattern gives .
Misconception 2: the principal character is trivial. It is tempting to think that the character that is 1 on units is the same as the constant function 1. In fact it is 0 at every number that shares a factor with , not only at multiples of , so it keeps the zero rule. It is still the right character for counting numbers coprime to , which is what the orthogonality relation uses.
Misconception 3: there is one character per modulus. It is tempting to think of a character as a single object. In fact there are of them, and their values together describe the whole group of units.
When to use it. Use characters when a question is about residue classes that are coprime to a modulus, when a sum over integers needs a sign or weight pattern, or when a result holds for a whole class of residues at once. Do not reach for them when a simple congruence check answers the question.
| Situation | What goes wrong | Better choice |
|---|---|---|
| Whether a residue is a square, for a prime modulus | Order-2 characters answer it, which is more machinery than needed | The Legendre symbol, which is the quadratic character for a prime |
| Only one residue class matters | Full character theory is more than needed | A direct congruence check |
| Modulus is not prime and the group is not cyclic | Character values are harder to write down | Decompose the group into cyclic factors and combine characters |
| Need the density of primes in a class | Characters give the answer only through -functions | Analytic tools built on |
History
Peter Gustav Lejeune Dirichlet introduced characters in 1837 to prove that every progression with contains infinitely many primes. Earlier results had handled special cases, but his method was new: he used sums over the integers, weighted by characters, and showed that the sums do not vanish.
The method became the foundation of analytic number theory. Later mathematicians studied the -functions of characters in detail, and the question of whether remained central to proofs. The idea of decomposing a finite group by its characters also spread into algebra and physics, where it is called the representation theory of finite groups.
The Leibniz series was known well before characters were defined, and the character mod 4 shows that it is an -value. This is one of the early links between a simple sign pattern and the analytic structure of the integers.
Recap
- A Dirichlet character mod is a multiplicative function of the integers that depends only on the residue mod and is zero on numbers sharing a factor with .
- Restricted to the units mod , a character is a homomorphism to the unit circle, so its values are roots of unity fixed by a choice at a generator.
- There are characters, and they satisfy orthogonality relations that let a residue condition be written as an average over them.
- The -function turns a character into a sum over the integers, and its value at gives results such as .
- Next, read about primes in arithmetic progressions for the theorem these tools prove, and Cyclic Group for the group structure behind the units.
Check yourself
QuestionRecall: what are the three defining properties of a Dirichlet character modulo ?Show answer
It is periodic mod , so . It is completely multiplicative, so for all integers and . And it is zero on every integer that shares a factor with . For the units mod , the values also have size 1.
QuestionComputation: a character mod 5 has . What are , and ?Show answer
Since , we have . Since , we have . Since , we have , which agrees with the requirement that for any character.
QuestionWhy: why does a nonprincipal character give a sum over the integers that can be used to split primes into classes, when the constant function 1 cannot?Show answer
The constant function 1 gives the same weight to every residue class, so it counts all numbers coprime to equally and cannot separate classes. A nonprincipal character takes different values on different units and sums to zero over the units. The orthogonality relation then lets the indicator of one residue class be written as an average of characters, which turns a question about one class into sums that can be estimated analytically.
QuestionApplied: a student counts primes mod 4 up to 50 and finds that class 1 has more primes than class 3. Does this contradict Dirichlet's theorem, and what should they check?Show answer
It does not contradict the theorem. Dirichlet's theorem says both classes contain infinitely many primes, not that they are equal at every finite point. The student should compute the character sum over the primes up to 50, which measures the difference between the two classes, and check that the count is correct. They should also check that the bound they use does not include the prime 2, which is not in either class. A lopsided count at a finite range is expected, and the long-run split is the claim the theorem makes.