The discriminant of a binary quadratic form is . If the form is positive-definite, evaluating it at gives . For , completing the square gives
Evaluating along shows that positivity also requires . Conversely these two inequalities make both displayed coefficients positive, proving
A reduced positive definite binary quadratic form satisfies , with if or . The last convention avoids counting both boundary representatives. For fixed negative discriminant, these inequalities imply
There are finitely many such integers , finitely many integers with , and then is determined. Hence the number of reduced forms is finite. If no admissible integer coefficients have the given discriminant, this number is zero.
For , the bound gives . The integrality of and the boundary sign convention give respectively
These are all the reduced positive definite binary quadratic forms of discriminant minus thirty-nine. Thus
represented by , , , and .