FormClassNumber
How many classes of indefinite binary quadratic forms a discriminant has. A class is not one reduced form but a CYCLE of them, and that cycle is a periodic continued fraction — which is to say, a closed geodesic.
FormClassNumber(D)the number of classesFormCycle(form)the class the form lies in, listedReducedForms(D)every reduced form of that discriminantFormAutomorph(form)the hyperbolic matrix generating the form's stabiliserPellSolution(D)the fundamental with Typed signatures
| Type | Package | Applies |
|---|---|---|
(integer) -> integer | modular | always |
Details
- Indefinite means and is not a perfect square; a square discriminant gives a form that factors, with no cycle
- acts by and preserves , so classes live inside one discriminant
- Gauss's reduction condition is , and
FormRhosteps round the cycle - A cycle's length is always even, because flips the sign of the leading coefficient
- The automorph has trace , hence is hyperbolic — so a form class IS one of the closed geodesics ModularClasses counts
- A discriminant has no forms at all, and the class number is 0
Plot
Examples
Scope #
Properties #
See also: ModularClasses, ContinuedFraction, RademacherSymbol