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 be a number field with ring of integers . The class number is the order of the ideal class group . Here is the group of nonzero fractional ideals of and is the subgroup of principal fractional ideals. This group is always finite. Moreover, if and only if is a unique factorization domain (equivalently, a principal ideal domain). For an imaginary quadratic field of discriminant , also equals the number of reduced primitive positive definite binary quadratic forms of discriminant .
Worked Example
Problem: Find the class number of by counting reduced binary quadratic forms . A form is reduced when , with whenever or .
Step 1: Find the discriminant. Since , the field discriminant is . Every form you count must satisfy . Because is even, must be even.
Step 2: Bound . For any reduced form, . So can only be 1 or 2.
Step 3: Test each case. For , the only allowed even value is , which gives . For , try and ; the value is excluded because . With you get , which has no integer solution. With you get , so .
Answer: There are exactly two reduced forms, so . The form corresponds to the class of principal ideals. The form corresponds to a non-principal class, such as the ideal . This explains why gives two genuinely different factorizations in .
Why It Matters
Class numbers explain why early attempted proofs of Fermat's Last Theorem failed. Kummer showed the approach works for primes that do not divide the class number of . The Baker–Heegner–Stark theorem shows that exactly nine imaginary quadratic fields have class number 1: for . 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 in and concludes that has class number greater than 1.
Correction: The class number is defined using the full ring of integers . When , this ring is , not . For , the ring of integers has unique factorization, so .
