Binary Quadratic Forms
This is Lab 16 from Clint by Hugh Montgomery, edited by Elad Zelingher. All rights reserved to Hugh Montgomery.
Whether a number can be expressed as a sum of two squares can be elegantly characterized in terms of the canonical factorization of into prime powers (recall Theorem 2.15 of NZM). It is therefore natural to ask whether something similar happens with other binary quadratic forms. The answer, as discussed in of NZM, is generally less satisfactory.
Problem 1
What is the discriminant of the form ? Is this form definite or indefinite (Recall Theorem 3.11 of NZM.)? Use Reduce to find a reduced form that is equivalent to . Use the program QFormTab to view a list of all the reduced quadratic forms of this discriminant. Describe, in terms of the arithmetic progressions that they fall in, the primes represented by this form. (Suggestion: Use Corollary 3.14 and Theorem 3.17 of NZM.)
Problem 2
What is the discriminant of the form ? Is this form definite or indefinite? Using the program QFormTab, construct a list of all the reduced quadratic forms of this discriminant. Describe, in terms of arithmetic progressions that they fall in, the primes represented by this form. Use Reduce to find a reduced form that is equivalent to the given form. From the information displayed, find values of and such that . If you check the checkbox then the bottom form in the table is reduced, the steps of the reduction are displayed, with the matrix that takes to . To view the inverse matrix, that takes to , say , compute the inverse (recall that for matrices in we have
). To express the original first coefficient 1039 properly by , one takes where
In Reduce enter
and reduce this form. In this way, discover a representation of the prime as a sum of two squares.
The prime is , and hence can be written as a sum of two squares. In order to find such a representation, we first construct a quadratic form with and discriminant . That is, we must find and so that . By using SqrtModP, we find that where . We need to satisfy . Thus we may take . We also need to be even, so that . Since is even, it suffices to take . Then (You can use WolframAlpha for this). Next we use the program Reduce to reduce this quadratic form. The only reduced form of discriminant is , and hence not only is equivalent to this form, but we find the value of and that we should take to give a proper representation of . From the values displayed, we find that .
Problem 3
Use the programs SqrtModP and Reduce, as described above, to find a proper representation of the prime 987654337 as a sum of two squares (This is similar to Example 3 in of NZM.).
Problem 4
The number is a product of two primes . Hence can be expressed as a sum of two squares. Use the program Factor to find these prime factors, say . Use SqrtModP to find such that , for . Then use CRT to find numbers such that , and . Note that because of the various possible choices of the signs, there are 4 such numbers . For each such , put . Reduce the quadratic forms to obtain representations of as a sum of two squares. How many distinct ordered pairs of positive integers do you obtain? Compare your findings with Theorem 3.22 of NZM.
Problem 5
Use the program QFormTab to view the reduced quadratic forms of discriminant -20 . How many such forms are there? The prime number 666666667 is properly represented by the form , whose discriminant is -20 . Reduce this form, to determine a representation of 666666667 by one of the reduced forms. (Problems 5 and 10 at the end of of NZM are relevant here.)
Problem 6
The program ClaNoTab generates a table of the class numbers of binary quadratic forms of negative discriminant (Recall Theorem 3.25 of NZM.). This program operates by the straightforward approach of noting the value of whenever or , for each . Scroll down through the table, looking for for which the class number is 1. How many such do you find? Gauss found these , and conjectured that there are no more. In 1934 it was proved that there could be at most one more such . Finally in 1952, Heegner solved the Gauss class number problem by showing that there are no further for which the class number is 1 . (There are lots of for which the class number is 1 , and it is conjectured that there are infinitely many, though this has not yet been proved.) When , the numbers grow irregularly with . How does compare with ?
It is known that if then , and also that if then there is a such that if then . Moreover, it is known that if the Generalized Riemann Hypothesis is true then lies between and .
Problem 7
If , and are large (in absolute value), how likely is it that is small? Try some triples in the environment of the program Reduce. Suppose that and that . How many 's are there for which ?
Problem 8
Each form of negative discriminant is equivalent to a unique reduced form. (Recall Theorem 3.25 of NZM.) In particular, the reduced forms of given negative discriminant are mutually inequivalent. Hence the number of equivalence classes of positive definite binary quadratic forms of discriminant , is equal to the number of reduced positive definite forms of discriminant . For our reduction process is incomplete, and reduced forms may be equivalent. Thus for the number of reduced forms is only an upper bound for the number of equivalence classes.
Using the program QFormTab, construct a list of the reduced quadratic forms of discriminant . Show that each of these two forms are equivalent. Hence . Give matrices that takes the first one to the others. Complete the following statement: "A prime is represented by the form if and only if ." (This is similar to Example 2 in of NZM.)
Problem 9
Use the program QFormTab to construct a list of reduced forms of discriminant 12 . Show that has no solution because it has no solution as a congruence modulo 3. Deduce that the two reduced forms are inequivalent, and hence that .
Problem 10
The form has discriminant -4 , and hence is equivalent to . Using Reduce, find a matrix that takes to .