Number TheoryHonors · Lesson 04 / 16← Lesson 03Lesson 05 →
Lesson 04 · Gaussian integers and characters · 50–65 minutes

Gaussian Integers

Lesson 03 showed that when p ≡ 1 (mod 4) the integers mod p contain a square root of −1. Over the ordinary integers there is none, so we adjoin one: a number i with i2 = −1. The resulting Gaussian integers x + yi form a square lattice in the plane, where multiplying by i is a quarter turn. You will build their arithmetic, the conjugate, trace and norm, prove the norm multiplies, find the units, divide with remainder, and connect ℤ[i] back to arithmetic mod p.

Where this lesson is headed

N(x + yi) = x2 + y2,   N(zw) = N(z)·N(w),   ℤ[i]× = {1, i, −1, −i}

In words: the norm, the squared distance from 0, multiplies. So the only Gaussian integers that can be undone are the four of norm 1, and division with remainder works, with a remainder of smaller norm. When p ≡ 1 (mod 4), sending i to a square root u of −1 mod p turns Gaussian arithmetic into arithmetic mod p.

You will use

−1 is a square mod p exactly when p ≡ 1 (mod 4) (Lesson 03). A primitive root g and ind(−1) = (p − 1)/2 (Lesson 02). No complex analysis: here "complex number" just means a pair (x, y) with the multiplication rule below.

i: a number with i2 = −1

ℤ[i] = {x + yi : x, y ∈ ℤ}, the Gaussian integers

z̄ = x − yi: the conjugate of z = x + yi

Tr(z) = z + z̄ = 2x: the trace

N(z) = z z̄ = x2 + y2: the norm

unit: some w has zw = 1

01. Numbers you can multiply as points

Start with z = 2 + i and w = 1 + 2i. The plane shows z, its quarter turn iz, its mirror image z̄, w, and the product zw. Change the coordinates and watch what the trace and norm do. The lower panel shows the same arithmetic mod p = 13, where 5 plays the role of i.

The Gaussian plane

Tr(z)
N(z)
N(zw) vs N(z)N(w)

Guided experiments

Do these in order. "Set this up" chooses z, w and p.

    Lattice points of a given norm

    How many Gaussian integers have norm n? They are the lattice points on the circle of radius √n.

    Try n = 1, 2, 3, 5, 13, 25, 21. Which n have no points at all? Lesson 05 answers that for primes.

    The norm always multiplies, and i behaves like a square root of −1 mod p. Stage 02 proves why.