Mathwords logoMathwords

Class Number — Definition & Example

The class number of a number field is a positive integer that measures how badly unique prime factorization fails in that field's ring of integers. A class number of 1 means factorization into primes is unique. A larger class number means factorization breaks down more seriously.

Let KK be a number field with ring of integers OK\mathcal{O}_K. The class number hKh_K is the order of the ideal class group Cl(K)=IK/PK\mathrm{Cl}(K) = I_K / P_K. Here IKI_K is the group of nonzero fractional ideals of OK\mathcal{O}_K and PKP_K is the subgroup of principal fractional ideals. This group is always finite. Moreover, hK=1h_K = 1 if and only if OK\mathcal{O}_K is a unique factorization domain (equivalently, a principal ideal domain). For an imaginary quadratic field of discriminant DD, hKh_K also equals the number of reduced primitive positive definite binary quadratic forms of discriminant DD.

Worked Example

Problem: Find the class number of Q(−5)\mathbb{Q}(\sqrt{-5}) by counting reduced binary quadratic forms ax2+bxy+cy2ax^2 + bxy + cy^2. A form is reduced when ∣b∣≤a≤c|b| \le a \le c, with b≥0b \ge 0 whenever ∣b∣=a|b| = a or a=ca = c.
Step 1: Find the discriminant. Since −5≡3(mod4)-5 \equiv 3 \pmod 4, the field discriminant is 4⋅(−5)4 \cdot (-5). Every form you count must satisfy b2−4ac=Db^2 - 4ac = D. Because DD is even, bb must be even.
D=4(−5)=−20D = 4(-5) = -20
Step 2: Bound aa. For any reduced form, 3a2≤∣D∣3a^2 \le |D|. So aa can only be 1 or 2.
a≤203≈2.58a \le \sqrt{\tfrac{20}{3}} \approx 2.58
Step 3: Test each case. For a=1a = 1, the only allowed even value is b=0b = 0, which gives c=5c = 5. For a=2a = 2, try b=0b = 0 and b=2b = 2; the value b=−2b = -2 is excluded because ∣b∣=a|b| = a. With b=0b = 0 you get 8c=208c = 20, which has no integer solution. With b=2b = 2 you get 8c=248c = 24, so c=3c = 3.
x2+5y2and2x2+2xy+3y2x^2 + 5y^2 \qquad\text{and}\qquad 2x^2 + 2xy + 3y^2
Answer: There are exactly two reduced forms, so h=2h = 2. The form x2+5y2x^2 + 5y^2 corresponds to the class of principal ideals. The form 2x2+2xy+3y22x^2 + 2xy + 3y^2 corresponds to a non-principal class, such as the ideal (2, 1+−5)(2,\, 1+\sqrt{-5}). This explains why 6=2⋅3=(1+−5)(1−−5)6 = 2 \cdot 3 = (1+\sqrt{-5})(1-\sqrt{-5}) gives two genuinely different factorizations in Z[−5]\mathbb{Z}[\sqrt{-5}].

Why It Matters

Class numbers explain why early attempted proofs of Fermat's Last Theorem failed. Kummer showed the approach works for primes pp that do not divide the class number of Q(ζp)\mathbb{Q}(\zeta_p). The Baker–Heegner–Stark theorem shows that exactly nine imaginary quadratic fields have class number 1: Q(d)\mathbb{Q}(\sqrt{d}) for d=−1,−2,−3,−7,−11,−19,−43,−67,−163d = -1, -2, -3, -7, -11, -19, -43, -67, -163. Class numbers are central in a first graduate course in algebraic number theory.

Common Mistakes

Mistake: Computing with the wrong ring. For example, a student notes that 4=2⋅2=(1+−3)(1−−3)4 = 2 \cdot 2 = (1+\sqrt{-3})(1-\sqrt{-3}) in Z[−3]\mathbb{Z}[\sqrt{-3}] and concludes that Q(−3)\mathbb{Q}(\sqrt{-3}) has class number greater than 1.
Correction: The class number is defined using the full ring of integers OK\mathcal{O}_K. When d≡1(mod4)d \equiv 1 \pmod 4, this ring is Z[1+d2]\mathbb{Z}\left[\tfrac{1+\sqrt{d}}{2}\right], not Z[d]\mathbb{Z}[\sqrt{d}]. For Q(−3)\mathbb{Q}(\sqrt{-3}), the ring of integers has unique factorization, so h=1h = 1.

Related Terms