Mathwords logoMathwords

Dirichlet Character — Definition, Formula & Example

A Dirichlet character is a function on the integers that repeats every q steps, respects multiplication, and outputs 0 for any number sharing a factor with q. It works like a labeling of the remainders mod q by complex numbers that multiply the same way the remainders do.

A Dirichlet character modulo qq is a function χ:Z→C\chi: \mathbb{Z} \to \mathbb{C} with three properties. (1) χ(mn)=χ(m)χ(n)\chi(mn) = \chi(m)\chi(n) for all integers m,nm, n. (2) χ(n+q)=χ(n)\chi(n + q) = \chi(n) for all nn. (3) χ(n)=0\chi(n) = 0 if and only if gcd⁡(n,q)>1\gcd(n, q) > 1. Equivalently, it is a group homomorphism (Z/qZ)×→C×(\mathbb{Z}/q\mathbb{Z})^\times \to \mathbb{C}^\times, extended by 0 to non-units. There are exactly φ(q)\varphi(q) characters mod qq. The principal character χ0\chi_0 sends every unit to 1.

Key Formula

∑n=1qχ(n)={φ(q)if χ=χ00if χ≠χ0\sum_{n=1}^{q} \chi(n) = \begin{cases} \varphi(q) & \text{if } \chi = \chi_0 \\ 0 & \text{if } \chi \neq \chi_0 \end{cases}
Where:
  • χ\chi = A Dirichlet character modulo q
  • qq = The modulus, a positive integer
  • χ0\chi_0 = The principal character: 1 on integers coprime to q, 0 otherwise
  • φ(q)\varphi(q) = Euler's totient: the count of integers from 1 to q coprime to q

Worked Example

Problem: Find all Dirichlet characters modulo 5, and write out the full value table for the one with χ(2)=i\chi(2) = i.
Step 1: The units mod 5 are 1, 2, 3, 4. Every one of them is a power of 2, so a character is completely determined by its value at 2.
21≡2,22≡4,23≡3,24≡1(mod5)2^1 \equiv 2,\quad 2^2 \equiv 4,\quad 2^3 \equiv 3,\quad 2^4 \equiv 1 \pmod{5}
Step 2: Multiplicativity forces χ(2)4=χ(24)=χ(1)=1\chi(2)^4 = \chi(2^4) = \chi(1) = 1, so χ(2)\chi(2) is a fourth root of unity. Each choice gives one character, so there are φ(5)=4\varphi(5) = 4 characters.
χ(2)∈{1, i, −1, −i}\chi(2) \in \{1,\ i,\ -1,\ -i\}
Step 3: Take χ(2)=i\chi(2) = i and use powers of 2 to fill in the table. Because 5 shares a factor with 5, χ(5)=0\chi(5) = 0. The values sum to 0, which matches the formula for a non-principal character.
χ(1)=1, χ(2)=i, χ(4)=i2=−1, χ(3)=i3=−i, χ(5)=0\chi(1)=1,\ \chi(2)=i,\ \chi(4)=i^2=-1,\ \chi(3)=i^3=-i,\ \chi(5)=0
Answer: There are 4 characters mod 5, one for each χ(2)∈{1,i,−1,−i}\chi(2) \in \{1, i, -1, -i\}. For χ(2)=i\chi(2) = i, the values on 1, 2, 3, 4, 5 are 1,i,−i,−1,01, i, -i, -1, 0, and the pattern repeats with period 5. For example, χ(7)=χ(2)=i\chi(7) = \chi(2) = i.

Why It Matters

Dirichlet invented these characters to prove that every progression a,a+q,a+2q,…a, a+q, a+2q, \dots with gcd⁡(a,q)=1\gcd(a, q) = 1 contains infinitely many primes. The proof builds the L-functions L(s,χ)=∑χ(n)n−sL(s, \chi) = \sum \chi(n) n^{-s} and requires L(1,χ)≠0L(1, \chi) \neq 0 for every non-principal χ\chi. The principal character's L-function instead has a pole at s=1s = 1. Characters remain central in analytic number theory courses and in the Generalized Riemann Hypothesis.

Common Mistakes

Mistake: Assuming a Dirichlet character only takes the values 11, −1-1, and 00.
Correction: Only real characters, like the one mod 4, do that. On units, χ(n)φ(q)=χ(nφ(q))=χ(1)=1\chi(n)^{\varphi(q)} = \chi(n^{\varphi(q)}) = \chi(1) = 1, so the values are complex roots of unity. Mod 5, the value ii appears.

Related Terms