The discriminant of
is congruent
to either 0 or
modulo
. Suppose
is a negative discrimant
and consider the set of equivalence classes of binary quadratic forms
of discriminant
, where two forms
and
are equivalent if and only if there exists
such that
where
A reduced binary quadratic form is one for which
and, in addition, when one of the two inequalities is an equality
then
. Every form is equivalent to exactly one reduced
form, so it is possible to decide whether or not two forms
are equivalent. Also, there are only finitely many equivalence
classes of fixed discriminant
. This finite set has a
natural group structure.