Number TheoryHonors · Lesson 06 / 16← Lesson 05Lesson 07 →
Lesson 06 · Gaussian integers and characters · 55–70 minutes

Dirichlet Characters

The Legendre symbol sends n to (−1)ind n. Replace −1 by any root of unity and you get a Dirichlet character: a function on the integers mod p that turns products into products of complex numbers on the unit circle. There are exactly p − 1 of them. You will build them all from a primitive root, sort them by order, reality and parity, show that none has a period shorter than p, and prove the orthogonality relations that every later lesson depends on.

Where this lesson is headed

χj(n) = ωj·ind n,   ∑n=1p−1 χ(n) = { p − 1 if χ = χ0, 0 otherwise }

In words: characters are the multiplicative functions mod p with values on the unit circle; there is one for each j mod p − 1, and every nontrivial one sums to 0. Here ω = cos(2π/(p − 1)) + i sin(2π/(p − 1)). A character of order q exists exactly when q | p − 1, and its parity is χ(−1) = (−1)(p−1)/q.

You will use

The index ind n and its rules (Lesson 02); the count φ(q) of elements of order q in a cyclic group of order p − 1 (Lesson 01); the Legendre symbol (Lesson 03); complex multiplication and conjugation (Lesson 04). One new fact about complex numbers: multiplying points on the unit circle adds their angles.

p: an odd prime; g: a primitive root

ωm = cos(2π/m) + i sin(2π/m), a primitive m-th root of unity; ω = ωp−1

character mod p: χ with χ(ab) = χ(a)χ(b), χ(1) = 1, χ(n + p) = χ(n), and χ(n) = 0 when p | n

χ0: the trivial character, 1 on every unit

order: least q ≥ 1 with χ(n)q = 1 for all units n

parity: χ is even if χ(−1) = 1, odd if χ(−1) = −1

01. Multiplicative functions on the circle

Start with p = 13, g = 2 and j = 3. Then χ(2) = ω3 = i, where ω is a primitive 12th root of unity, so every value χ(n) = iind n is one of 1, i, −1, −i. The circle shows where each χ(n) lands. Change j to see other characters, and watch what their sum does.

The values χ(n) on the unit circle

Order q
χ(−1)
∑ χ(n)

Guided experiments

Do these in order. "Set this up" chooses p and j. For values that are powers of i, answer with the exponent k in ik.

    Characters for other moduli

    The same definition works for any modulus r: a multiplicative, r-periodic function, zero when gcd(n, r) > 1. Two you will meet again:

    χ−4(n) = (−1)(n−1)/2 for odd n tells you p mod 4; χ−3(n) = (n/3). Both are real and odd. Check: χ−4(ab) = χ−4(a)χ−4(b) because odd numbers ≡ 3 (mod 4) multiply like −1.

    Orders divide p − 1, parity follows (p − 1)/q, no shift below p works, and every nontrivial sum is 0. Stage 02 proves all of it.