Nonsquare quadratic orders #
For a nonsquare integer D ≡ 0, 1 mod 4, the rational quadratic algebra is a number field.
The subalgebra ℤ[(D + √D)/2] constructed in QuadraticOrder/Basic is therefore an actual
GlobalNumberFields.NumberFieldOrder, of discriminant D.
This order is maximal exactly when D is a fundamental discriminant. For a fundamental
D, the supplier's discriminant/index formula and Stickelberger's congruence force index one.
If D is not fundamental, a proper square factor D = p²e with e ≡ 0, 1 mod 4 supplies
the integral element (e + √D/p)/2 outside the order.
References #
- D. A. Cox, Primes of the Form x² + ny², §7.
The order ℤ[(D + √D)/2] is the ring of integers exactly when D is fundamental. The
subalgebra TauCeti.QuadraticOrder.toSubalgebra D of the model ℚ(√D) is the integral closure
of ℤ if and only if D is a fundamental discriminant.