← LibraryImaginary Quadratic Class Numbers by Counting Reduced FormsEngineering · MathematicsLesson 307/385← PrevNext →
ArticlePublished 7 Aug 20262 min readBy Kevin Joginimaginary quadraticclass numberreduced formsenumeration

Quadratic Fields

Imaginary Quadratic Class Numbers by Counting Reduced Forms

Computing class numbers and group structure for imaginary quadratic fields by enumerating reduced forms, and where the method runs out.

Engineering / MathematicsQuadratic Fields2 min readKV-MATH-0604

For imaginary quadratic fields the class number is the number of reduced forms of the discriminant. This makes small discriminants entirely elementary and gives a reliable check on more sophisticated methods.

The method

Enumerate all reduced positive definite forms of the given discriminant. Because each class contains exactly one, the count is the class number.

Recovering the group structure

Class group structure from reduced forms

  1. EnumerateList all reduced forms; the count is the class number.
  2. Choose candidate generatorsTake forms with small first coefficient.
  3. Compute ordersBy repeated composition until the principal form is reached.
  4. AssembleCombine generators until their orders multiply to the class number; extract invariant factors.

Cost and limits

Enumeration cost ~ sqrt(|D|)The bound on the first coefficient.
Practical range of the enumeration method
Discriminant sizeFeasibility
Up to about 10 digitsImmediate
10 to 14 digitsFeasible but slow
BeyondImpractical; use sub-exponential methods

Value as a check

Class number one

There are exactly nine imaginary quadratic fields of class number one, a celebrated result. The corresponding discriminants appear repeatedly in complex multiplication and in elliptic curve primality proving.

Source. Henri Cohen, A Course in Computational Algebraic Number Theory, Springer GTM 138 — 5.3.1. Structural reference unverified: the source file was not available during authoring; chapter and section numbers are taken from the published edition and have not been checked against a physical copy.

Continue learning

Composition of Binary Quadratic FormsArticle · MathematicsNEXT LESSON →Class Numbers from Analytic Class Number FormulasArticle · MathematicsReduction of Positive Definite Binary FormsArticle · MathematicsReduction of Indefinite Forms and the Cycle StructureArticle · Mathematics