Genus Characters, Gauss’s Duplication Theorem

Which primes does a quadratic form represent?

Suppose we want to know which primes can be written in the form x^2+5y^2 , where x and y are integers. We can find a few examples by trying small values. For instance, 29=3^2+5\cdot2^2 . But what if someone gives us a very large prime? Is there a way to decide whether such a representation exists without having to find the two integers first?

Here is a rather beautiful answer: an odd prime other than five can be written in this form exactly when its remainder on division by twenty is one or nine. There is a similar rule for another expression, 2x^2+2xy+3y^2 . This expression represents seven, for example, by taking both variables equal to one. The primes it represents, apart from those dividing twenty, are precisely those congruent to three or seven modulo twenty.

Why should the remainder of a prime tell us whether an equation has an integral solution? And can we expect a rule like this for every quadratic form? We shall see that congruences give a great deal of information, but that there is a definite limit to what the quadratic-residue tests can tell us. Understanding that limit is the subject of genus theory. We will approach the problem through two small examples, with discriminants -20 and -56 . The first shows why congruences can be so effective; the second shows why they sometimes leave us with more than one possibility. Only after seeing these examples will we introduce the general theory and prove Gauss’s duplication theorem. We will use quadratic reciprocity, the theorem on primes in arithmetic progressions, and Gauss composition in the course of the argument.

Leading coefficients

Start with an expression Q(x,y)=ax^2+bxy+cy^2 with integral coefficients. We assume a>0 and D=b^2-4ac<0 . The number D is called the discriminant. Completing the square gives 4aQ(x,y)=(2ax+by)^2+|D|y^2 , so the form takes positive values except at the origin. We also assume \gcd(a,b,c)=1 ; such a form is called primitive. There is a useful freedom in writing down a quadratic form. We can replace its two variables by integral linear expressions, provided the matrix of the substitution has determinant one. The substitution can then be reversed over the integers. Consequently the new expression represents exactly the same integers as the old one. Its discriminant is also unchanged. We call two forms related in this way properly equivalent. Instead of studying one expression in isolation, we can work with whichever equivalent expression makes a calculation easiest.

Suppose a prime p is represented by our form, say p=Q(x_0,y_0) . We would like to make this prime appear as a coefficient of the form itself. Why is that useful? A coefficient is tied directly to the discriminant equation, whereas an arbitrary represented value is not so easy to work with.

The coordinates x_0,y_0 must be coprime. Otherwise their common divisor squared would divide the prime p . By Bezout’s identity we can find integers x_1,y_1 with x_0y_1-y_0x_1=1 . Now substitute x=x_0X+x_1Y and y=y_0X+y_1Y . Setting Y=0 immediately shows that the coefficient of X^2 is p . If we write the new form as pX^2+BXY+CY^2 , expansion gives

\displaystyle B=2ax_0x_1+b(x_0y_1+x_1y_0)+2cy_0y_1, \quad C=ax_1^2+bx_1y_1+cy_1^2, \quad  B^2-4pC=D.

Conversely, if an equivalent form begins with the coefficient p , it represents p simply by taking X=1,Y=0 . Thus finding a representation of a prime and finding an equivalent form with that prime as its leading coefficient are the same problem. The argument works just as well for any positive integer represented by coprime coordinates. Such a representation is called primitive.

Let us see the change of variables in our first example. We already know that 29=3^2+5\cdot2^2 . The pair (3,2) will be the first column of our substitution matrix. We can take (1,1) as the second column, since 3\cdot1-2\cdot1=1 . This gives

\displaystyle (3X+Y)^2+5(2X+Y)^2=29X^2+26XY+6Y^2.

The new coefficients may look less pleasant than the original ones, but the new form has exactly the same discriminant: 26^2-4\cdot29\cdot6=-20 . We can do the same thing with the representation of seven by 2x^2+2xy+3y^2 . Taking x=X and y=X+Y gives 7X^2+8XY+3Y^2 . In both examples the represented prime has become the first coefficient. We can now ask what the discriminant tells us about that coefficient.

Representation by some form

If a form of discriminant D represents a prime p , we can write an equivalent form as (p,B,C) . Its discriminant satisfies B^2-4pC=D . In particular, D must be a square modulo 4p . If it is not, there is no need to search for a representation: none exists.

What happens if the congruence does have a solution? We can reverse the calculation. Choose an integer B with B^2\equiv D\pmod{4p} and define C=(B^2-D)/(4p) . Then (p,B,C) is a form of discriminant D which represents p . It is primitive when p\nmid D . So the entire existence question, for some form of the prescribed discriminant, reduces to

\displaystyle  B^2\equiv D\pmod{4p},\qquad C=\frac{B^2-D}{4p}.

For an odd prime not dividing D , we only need to check whether D is a nonzero square modulo p . Indeed, a discriminant is either zero or one modulo four. Having found a square root modulo the odd prime p , we can choose its parity so that its square also agrees with D modulo four. The two congruences then hold together modulo 4p . In Legendre-symbol notation, the condition is

\displaystyle  \left(\frac Dp\right)=1.

This is already a useful result, but notice what it does not tell us. It tells us that a prime is represented by some form of discriminant D . We still do not know whether that form is equivalent to the particular one we started with. For example, the two expressions in our opening question both have discriminant -20 . How many genuinely different forms have this discriminant? If we could make a complete list, we could try to distinguish them. That is what reduction allows us to do.

Reduction of forms

Suppose we are given a form (a,b,c) with very large coefficients. We can often make them smaller using just two simple substitutions. First, replace x by x+ky . The middle coefficient becomes b+2ak , so by choosing the integer k suitably we can bring it into the interval -a\le b\le a . Next, if c<a , use (x,y)\mapsto(-y,x) to exchange the first and third coefficients and reverse the sign of the middle one.

Repeat the two operations whenever necessary. Each interchange made because c<a strictly decreases the positive integer in the first position. The procedure must therefore stop, leaving a form satisfying |b|\le a\le c . We call such a form reduced. If |b|=a or a=c , there is still a sign choice for the middle coefficient; we take b\ge0 on these boundaries.

Why is this useful for making a complete list? The discriminant gives 4ac=b^2+|D| . Since a reduced form has c\ge a and b^2\le a^2 , we get 4a^2\le a^2+|D| . Hence the first coefficient can only lie in the finite interval

\displaystyle 1\le a\le\sqrt{|D|/3}.

For every integer a in this interval, try the integers b between -a and a . The discriminant equation determines c=(b^2-D)/(4a) , so there is nothing else to search for. Retain the triples for which c is integral, c\ge a , and the form is primitive, with our convention on signs at the boundary.

A basic fact of reduction theory is that this procedure gives one representative of every proper equivalence class, with no repetitions. The idea behind uniqueness is that the least positive value of a reduced form is its first coefficient. In the interior, where |b|<a<c , the only vectors giving this minimum are (\pm1,0) . A substitution between reduced forms must preserve that shortest direction; the restriction on the middle coefficient then leaves no further choice. The boundary cases are handled by the additional symmetries and the sign convention. We can now study all the classes of a fixed discriminant by working with a finite list of small triples.

Let us carry out this procedure for D=-20 . The bound gives a\le\sqrt{20/3}<3 , so we only need to try one and two. The middle coefficient must be even. Substituting the possible values into the discriminant equation leaves exactly two reduced forms:

\displaystyle Q_0(x,y)=x^2+5y^2,\qquad Q_1(x,y)=2x^2+2xy+3y^2.

We now know something that was not apparent from the original expressions: there are only two classes of discriminant -20 . Every odd prime away from the discriminant with (-20/p)=1 belongs to at least one of these two forms. How can we distinguish them?

Look first at Q_0=x^2+5y^2 modulo five. Every nonzero value of this expression modulo five is a square, because the second term disappears. Could it be that the other form always gives nonsquares modulo five? We can investigate this by comparing two arbitrary values of a form. A direct expansion gives the following identity, valid for any form of discriminant D :

\displaystyle 4Q(x,y)Q(u,v)= \bigl(2axu+b(xv+yu)+2cyv\bigr)^2-D(xv-yu)^2.

The significance of the identity is that the second term on the right contains the discriminant. Take an odd prime \ell dividing D and reduce the identity modulo \ell . That term disappears, leaving a square. Since four is itself a nonzero square modulo \ell , the product of any two nonzero represented values must be a square modulo \ell .

But the product of a square and a nonsquare is a nonsquare. So a single form cannot represent both kinds of nonzero residues. Once we find the quadratic-residue sign of one represented value prime to \ell , we know the sign of every other such value. This is a property of the form, not of the particular integers substituted into it. Equivalent forms also have the same sign because they represent the same integers.

Apply this observation with \ell=5 . The first form represents one, so all its values coprime to five are squares modulo five. The second form represents two, which is a nonsquare modulo five; all its values coprime to five must therefore be nonsquares as well.

By quadratic reciprocity, the condition (-20/p)=1 allows precisely the four remainders 1,3,7,9\pmod{20} for primes away from twenty. Of these, one and nine are squares modulo five, while three and seven are nonsquares. We know that every prime in the four allowed residue classes belongs to some form, and we have only two forms in our list. The sign modulo five tells us which one it must be. This proves the two rules announced at the beginning:

\displaystyle \begin{aligned} p=x^2+5y^2&\quad\Longleftrightarrow\quad p\equiv1,9\pmod{20},\\ p=2x^2+2xy+3y^2&\quad\Longleftrightarrow\quad p\equiv3,7\pmod{20}. \end{aligned}

Here the prime is odd and different from five. The excluded primes are easy to check separately: 5=0^2+5\cdot1^2 and 2=2\cdot1^2 for the respective forms. Notice why the argument works so well. One congruence test tells us whether a prime belongs to any form, and another distinguishes the only two available classes. Could we always proceed in this way? The next example shows where the difficulty begins.

Take D=-56 . This time the bound is a\le\sqrt{56/3}<5 . Trying the four possible leading coefficients and the even middle coefficients gives the following complete list:

\displaystyle \begin{aligned} Q_0(x,y)&=x^2+14y^2,\\ Q_1(x,y)&=2x^2+7y^2,\\ Q_2(x,y)&=3x^2+2xy+5y^2,\\ Q_3(x,y)&=3x^2-2xy+5y^2. \end{aligned}

As before, we can use quadratic reciprocity to decide which odd primes away from the discriminant belong to some form. The condition (-56/p)=1 gives the twelve remainders 1,3,5,9,13,15,19,23,25,27,39,45 modulo fifty-six.

There is now an interesting difference. Look at the odd values represented by the four forms modulo eight. For Q_0 and Q_1 , the only possible odd residues are one and seven. For Q_2 and Q_3 , they are three and five. This can be checked by substituting the square residues zero, one and four modulo eight, or by using the product identity above. In the notation of quadratic reciprocity, the first pair has sign (2/p)=1 and the second pair has sign (2/p)=-1 . The twelve allowed residue classes split accordingly:

\displaystyle \begin{aligned} Q_0, Q_1:&\quad p\equiv1,9,15,23,25,39\pmod{56},\\ Q_2,\ Q_3:&\quad p\equiv3,5,13,19,27,45\pmod{56}. \end{aligned}

We can tell which pair of forms represents a prime, but the test does not distinguish the two forms within a pair. To see that this is a real issue, take the primes 113 and 281 . Both have remainder one modulo fifty-six, so they pass exactly the same tests. Nevertheless,

\displaystyle 113=2\cdot5^2+7\cdot3^2, \qquad 281=15^2+14\cdot2^2.

The first prime is represented by Q_1 , and the second by Q_0 . In each case the two possible square roots of the discriminant give inverse classes; here the classes are their own inverses, so the prime does not belong to the other class.

There is also something worth noticing about Q_2 and Q_3 : we have Q_2(x,y)=Q_3(x,-y) . These forms represent exactly the same integers, but the substitution has determinant minus one, not one. They are different proper classes. Proper equivalence remembers the orientation of the two variables.

For the moment, call two classes members of the same genus when they give the same quadratic-residue signs. Our example has two genera, \{Q_0,Q_1\} and \{Q_2,Q_3\} . Why do the four classes arrange themselves into two pairs? To understand that, we need to see how quadratic forms can be multiplied.

Composition and Class group

There is a familiar identity for sums of two squares: the product of two integers of the form x^2+y^2 is again of that form. It is natural to ask whether something similar happens when we multiply values of two different quadratic forms with the same discriminant. Gauss’s composition law gives a remarkable answer: the product is represented by another form of that discriminant, and the class of this third form depends only on the classes of the two original forms.

To see where the calculation comes from, write \alpha=(b+\sqrt D)/2 . Multiplying an expression by the one obtained by reversing the sign of the square root gives a rational number, denoted by N . Direct multiplication gives the elementary identity

\displaystyle \frac{N(ax+\alpha y)}a=ax^2+bxy+cy^2.

The notation involving a square root is just a convenient way to organize polynomial multiplication. It is not necessary to introduce ideals. Suppose the leading coefficients of two forms are coprime, and suppose we have arranged that they have the same middle coefficient B . Put \beta=(B+\sqrt D)/2 and k=(B^2-D)/(4aa') . Then \beta^2=B\beta-aa'k . Multiplying ax+\beta y by a'u+\beta v gives an expression of the shape aa'X+\beta Y , where

\displaystyle X=xu-kyv,\qquad Y=axv+a' yu+Byv.

Taking the product with the conjugate expression and dividing by aa' gives Q(x,y)Q'(u,v)=aa'X^2+BXY+kY^2 . Thus the new form has leading coefficient aa' and discriminant D , exactly as we wanted. The identity explains why multiplication of leading coefficients is the natural operation here.

Gauss proved that this construction, with suitable equivalent representatives, defines an associative and commutative operation on proper classes. We use that classical result here. The classes form a finite abelian group, denoted C(D) . Its identity is the principal form, namely (1,0,-D/4) for even D and (1,1,(1-D)/4) for odd D . The inverse of (a,b,c) is represented by (a,-b,c) . Rather than develop the general composition theorem again, we will use the explicit rule below to see what this group operation does in examples.

Let the two forms be (a,b,c) and (a',b',c') , with \gcd(a,a')=1 . We have seen that it would be convenient to make their middle coefficients equal. A translation changes a middle coefficient by a multiple of twice the leading coefficient. Thus we need an integer B satisfying B\equiv b\pmod{2a} and B\equiv b'\pmod{2a'} . Both original middle coefficients have the same parity, so the Chinese remainder theorem gives such an integer. The composition rule is

\displaystyle \left(aa',\ B,\ \frac{B^2-D}{4aa'}\right).

The third coefficient is an integer: the two congruences imply B^2\equiv D\pmod{4a} and B^2\equiv D\pmod{4a'} . Since the leading coefficients are coprime, 4aa' divides B^2-D .

What if the leading coefficients are not coprime? Recall that a primitively represented integer can be moved into the leading position. Given a finite set of primes, we can choose coordinates so that the form’s value is nonzero modulo each of them: a primitive quadratic form is not identically zero modulo any prime, as one sees by testing (1,0),(0,1),(1,1) . Combine these choices by the Chinese remainder theorem, then divide the coordinates by their greatest common divisor, which is coprime to the chosen primes. The resulting value is primitively represented and avoids the chosen primes. This allows us to arrange coprime leading coefficients whenever needed.

Let us multiply Q_2=(3,2,5) by itself. At first the two leading coefficients are equal, but we can replace the second copy by (5,-2,3) using the determinant-one interchange of variables. Now the leading coefficients are three and five. To make the middle coefficients agree, solve B\equiv2\pmod6 and B\equiv-2\pmod{10} . We can take B=8 . The composition rule gives (15,8,2) , since (8^2+56)/(4\cdot15)=2 .

This is not reduced yet. Interchange the variables to obtain (2,-8,15) , then translate to obtain (2,0,7) . So the square of the class of Q_2 is the class of Q_1 :

\displaystyle [Q_2]^2=[Q_1].

The calculation almost determines the whole multiplication table. The form Q_1=(2,0,7) is its own inverse, because reversing the middle coefficient changes nothing. Its square is therefore the principal class Q_0 . The two classes Q_2=(3,2,5) and Q_3=(3,-2,5) are distinct inverses. Consequently the successive powers of Q_2 give all four classes, and the group is cyclic of order four.

Now look at the squares of all four classes. We obtain just [Q_0] and [Q_1] . Multiplying these two square classes by [Q_2] gives the remaining two classes. These are precisely the two pairs we obtained earlier by examining residues modulo eight! We have arrived at the same partition in two quite different ways: one through congruences, the other through composition. Is this a coincidence peculiar to this small example, or does it reflect a general theorem?

Genus

Fix a negative fundamental discriminant D . This means either that D is squarefree and congruent to one modulo four, or that D=4d with d squarefree and congruent to two or three modulo four. We make this restriction so that the counting argument below has a particularly simple form.

For each odd prime dividing D , our product identity gives a sign attached to a form: all its represented values coprime to that prime are either squares or nonsquares modulo the prime. If two divides the discriminant, there is a corresponding sign obtained from residues modulo four or eight. In our example D=-56 , that sign was (2/m) , positive on one and seven modulo eight and negative on three and five. Collect all these signs for a form. Two classes belong to the same genus if their lists agree.

We have already justified the signs for odd primes, but why is there a well-defined sign at two? We cannot simply reduce the earlier identity modulo two, because its left side contains a factor of four. Instead, when the discriminant is even, write b=2r and divide the identity by four. Since D/4=r^2-ac , it becomes

\displaystyle Q(x,y)Q(u,v)=T^2-\frac D4(xv-yu)^2, \quad T=axu+r(xv+yu)+cyv.

Suppose both values on the left are odd, and write W=xv-yu . We can now inspect the residues of T^2-(D/4)W^2 . When D/4\equiv3\pmod4 , an odd product must be one modulo four: exactly one of T,W is odd. This gives the sign (-4/m) .

When D/4\equiv2\pmod8 , oddness forces T to be odd. According as W is even or odd, the product is one or seven modulo eight. Thus its sign (8/m) is positive. When D/4\equiv6\pmod8 , the same calculation gives one or three modulo eight, so the sign (-8/m) is positive. In each case the character of the product of two represented odd values is positive. By multiplicativity, the two individual signs must agree. This is exactly the property we needed.

To organize all the signs without treating the prime two separately every time, we factor the fundamental discriminant into pairwise coprime integers called prime discriminants:

\displaystyle D=d_1d_2\cdots d_t.

For every odd prime \ell dividing D , take the signed factor (-1)^{(\ell-1)/2}\ell . If two divides D , the remaining factor is one of -4,8,-8 . For example, -20=(-4)\cdot5 and -56=8\cdot(-7) .

For an integer m coprime to D , write \chi_i(m)=(d_i/m) for the quadratic character belonging to the factor d_i . Quadratic reciprocity identifies the character of an odd prime discriminant with the residue sign modulo that prime. The preceding calculations explain the characters at two. We can now attach \chi_i([Q]) to a form class by choosing any represented positive integer coprime to D and evaluating \chi_i on it. Such a value exists by the elementary choice of coordinates used in the composition argument. The sign does not depend on the chosen value.

Let us see how these signs behave when we compose forms. Choose equivalent representatives of two classes whose leading coefficients a,a' are coprime to each other and to D . This is possible by the same choice-of-coordinates argument. Their signs are \chi_i(a) and \chi_i(a') , since a form represents its first coefficient. The composed form has leading coefficient aa' . Therefore \chi_i([Q][Q'])=\chi_i(aa')=\chi_i(a)\chi_i(a') .

This is the connection between congruences and composition that we were looking for. Each sign is a homomorphism from C(D) to \{1,-1\} . In particular, the sign of a square class is always positive. We call the genus with all signs positive the principal genus. We have proved already that every square class belongs to it.

How many different lists of signs can actually occur? At first, with t signs, we might expect 2^t possibilities. But there is a restriction. Choose a representative (a,b,c) with odd leading coefficient a coprime to D . Since b^2\equiv D\pmod{4a} , the discriminant is a nonzero square modulo every prime dividing a . Consequently the quadratic symbol (D/a) is positive. On the other hand, it equals the product of the t symbols (d_i/a) . Thus for every class A we have

\displaystyle (\chi_1(A),\ldots,\chi_t(A)),\qquad \chi_1(A)\cdots\chi_t(A)=1.

The first t-1 signs determine the last, so there can be at most 2^{t-1} genera. Is there perhaps some other hidden restriction? To show that there is not, start with any desired list of signs whose product is positive. For each factor d_i , choose a residue coprime to |d_i| having the required sign. The moduli |d_i| are pairwise coprime, so the Chinese remainder theorem combines these separate choices into a single reduced residue class modulo |D| . By Dirichlet’s theorem, that progression contains an odd prime p . Its signs are precisely the ones we prescribed.

Their product is positive, so (D/p)=1 . Our very first representation criterion now constructs a form of discriminant D representing p . That form has the desired list of signs. This proves that every admissible list occurs. There are exactly

\displaystyle \#\{\mathrm{genera}\}=2^{t-1}.

For D=-20=(-4)\cdot5 there are two genera, each with one class. For D=-56=8\cdot(-7) there are again two genera, but each has two classes. Take also D=-23 . It has only one prime-discriminant factor and therefore only one genus. Yet reduction gives three classes, represented by (1,1,6),(2,1,3),(2,-1,3) . The signs cannot distinguish any of them.

So the number of genera has a simple formula in terms of the discriminant, even though the number of form classes may be much harder to determine. We know that squares are in the principal genus. To prove that they fill the whole principal genus, it remains to count them.

Ambiguous classes

How can we count the squares in the class group without calculating its entire multiplication table? The useful observation is that two classes A,B have the same square exactly when (AB^{-1})^2=1 . Thus every square has the same number of square roots: the number of classes whose square is the identity. Let us count these classes instead.

We call a class ambiguous if it is equal to its inverse. Since the inverse of (a,b,c) is (a,-b,c) , we can recognize ambiguity just by looking at a reduced form. If b=0 , the two triples are identical. If b=a , the substitution (x,y)\mapsto(x-y,y) reverses the middle coefficient. If a=c , the substitution (x,y)\mapsto(-y,x) does the same. In every other case the reversed triple is a different reduced form, so it cannot represent the same proper class. These three simple conditions are all we need.

Look back at our examples. At discriminant -20 , both (1,0,5) and (2,2,3) are ambiguous. At discriminant -56 , only (1,0,14) and (2,0,7) are ambiguous; the other two forms are distinct inverses. This agrees with the cyclic group of order four that we found by composition. Could we count the ambiguous classes for a large discriminant without first listing all its reduced forms?

The key is to return to the discriminant equation. Each of the three conditions for ambiguity makes this equation factor into a product of two ordinary integers. We will see that the factors determine the form, so the problem becomes one of counting factorizations.

First suppose D=-N is odd. Since the discriminant is fundamental, N is squarefree and N\equiv3\pmod4 . The middle coefficient must be odd, so it cannot be zero. Substitute b=a and c=a , respectively, into N=4ac-b^2 . The two possibilities become

\displaystyle N=a(4c-a),\qquad N=(2a-b)(2a+b).

Now reverse the calculation. Take a factorization N=uv into positive integers and arrange the factors so that u\le v . Because their product is three modulo four, one factor is one modulo four and the other is three modulo four. In particular, their sum is divisible by four.

If we identify u=a and v=4c-a in the first identity, we get b=a=u and c=(u+v)/4 . This is reduced exactly when c\ge a , or v\ge3u . If that inequality fails, use the second identity instead, setting u=2a-b and v=2a+b . Solving for the coefficients gives a=c=(u+v)/4 and b=(v-u)/2 . This is reduced when b\le a , or v\le3u . Putting the two constructions together, we get

\displaystyle \begin{cases}(u,u,(u+v)/4),& v\geq3u,\\ ((u+v)/4,(v-u)/2,(u+v)/4),&v\leq3u.\end{cases}

Every factorization gives a reduced form, whichever side of the inequality it falls on. At equality the two formulas give the same triple. The forms are primitive: a common divisor of the three coefficients would have its square dividing N . We can also recover the factors from the form using the original two identities. Therefore there is exactly one ambiguous reduced form for each unordered factorization of N .

If N has t prime divisors, we can assign each prime independently to one factor or the other. This gives 2^t ordered factorizations. Interchanging the factors leaves the same unordered pair, and the two factors cannot be equal because N>1 is squarefree. Dividing by two gives 2^{t-1} ambiguous classes. Notice how little information about the individual classes we needed.

Now suppose D=-4m , with m squarefree and m\equiv1,2\pmod4 . The middle coefficient is even; write it as b=2k . The discriminant equation becomes m=ac-k^2 . In this case all three ambiguity conditions must be considered. Substituting them gives

\displaystyle m=ac,\qquad m=k(2c-k),\qquad m=(a-k)(a+k).

The first equation is particularly easy. Every factorization m=uv with u\le v gives the reduced form (u,0,v) . What about the other two equations? Their two factors necessarily have the same parity. They cannot both be even, since m is squarefree. Hence they must both be odd, and these extra forms can occur only when m is odd.

For odd m we can reverse the last two identities just as we did for odd discriminants. With u=k,v=2c-k in the second identity, the reduction condition is v\ge3u . With u=a-k,v=a+k in the third, it is v\le3u . The corresponding formulas are

\displaystyle \begin{cases}(2u,2u,(u+v)/2),&v\geq3u,\\ ((u+v)/2,v-u,(u+v)/2),&v\leq3u.\end{cases}

Why are these extra forms primitive? The odd prime divisors of any common factor of the coefficients would have their squares dividing m . As for two, since m\equiv1\pmod4 , the odd factors have the same residue modulo four. So (u+v)/2 is odd, ruling out a common factor of two.

Suppose m>1 has s distinct prime divisors. There are 2^{s-1} unordered factorizations. If m is even, each gives just the form with middle coefficient zero, and these are all the ambiguous classes. The discriminant has t=s distinct prime divisors. If m is odd, each factorization gives two distinct forms, one with zero middle coefficient and one from the extra construction. The count is now 2^s , but the discriminant has t=s+1 prime divisors because of the additional factor two. The exceptional discriminant -4 has only the principal form (1,0,1) and obeys the same formula. Hence, in every case,

\displaystyle |C(D)[2]|=2^{t-1}.

There is a nice way to see part of this calculation through composition itself. For D=-4m , denote the form (u,0,m/u) by Q_u . If u and v are coprime divisors of m , composition gives [Q_u][Q_v]=[Q_{uv}] . Every such class is its own inverse, so a prime factor appearing twice cancels from the product. Also, [Q_u]=[Q_{m/u}] , by interchanging the variables. Thus, for this family, composition amounts to multiplying squarefree divisors, cancelling repeated prime factors and identifying complementary divisors. The counting argument also includes the extra family when m is odd. What looked like a question about the structure of a group has been answered using the discriminant equation and a few elementary substitutions.

Gauss’s duplication theorem

We can now bring together the two parts of the argument. From the congruences we obtained exactly 2^{t-1} genera. Independently, from reduction we found exactly 2^{t-1} ambiguous classes. Why is this equality of numbers important?

Write h(D)=|C(D)| for the total number of classes. Recall that all square classes have equally many square roots, and that the square roots of the identity are exactly the ambiguous classes. Since there are 2^{t-1} of them, the total number of distinct squares must be

\displaystyle |C(D)^2|=\frac{|C(D)|}{2^{t-1}}.

On the other hand, the signs are multiplicative. Multiplying all classes in the principal genus by any one class in a given genus produces exactly that genus: the signs become those of the chosen class, and multiplication by its inverse reverses the operation. Therefore all genera have the same size. Since there are 2^{t-1} genera, the principal genus has h(D)/2^{t-1} classes.

We already know that every square belongs to the principal genus, because squaring makes each sign positive. Now we know that there are just as many squares as there are classes in the principal genus. There is no room for any other class in it. This is Gauss’s duplication theorem.

Theorem. Let D< 0 be a fundamental discriminant, and let C(D) be the proper class group of primitive positive definite forms of discriminant D . A class belongs to the principal genus if and only if it is the square of a form class. Two classes lie in the same genus if and only if their quotient is a square class.

\displaystyle \mathrm{PrinGen}(D)=C(D)^2,\qquad \mathrm{Gen}(D)\simeq C(D)/C(D)^2.

Proof in brief. The genus characters are multiplicative, hence trivial on squares. Their common kernel has h(D)/2^{t-1} elements by the count of sign patterns. The square subgroup has the same order by the count of ambiguous classes. They are therefore equal. Two classes have the same signs precisely when their quotient lies in this common kernel. \Box

Here duplication simply means composing a form class with itself. The theorem says something rather stronger than the fact that a square has positive genus signs. It says that whenever all the signs are positive, there must be some form class A whose square is the given class. More generally, if we know one class B in a genus, all the classes in that genus can be written as BA^2 . We can now understand why the two computations for discriminant -56 gave the same partition: the pairs were precisely the two cosets of the subgroup of squares.

We should distinguish two ingredients of the proof. The count of ambiguous forms used the assumption that the discriminant is fundamental. For nonfundamental discriminants, the corresponding count needs additional congruence conditions at primes dividing the conductor. The duplication theorem still holds with the appropriate genus theory. The other ingredient was Dirichlet’s theorem, which we used to ensure that every admissible collection of signs actually occurs. These are the limits of the argument as presented here.

Let us return to the question with which we started. When can quadratic-residue tests distinguish every class? This happens exactly when each genus contains a single class. By the duplication theorem, that means the only square class is the principal class, or equivalently that every class A satisfies A^2=1 . In that situation all the classes are ambiguous. There are as many classes as genera, and the list of signs determines the class completely. This is why the congruence test for x^2+5y^2 was sufficient.

Contrast this with D=-56 . Here [Q_2]^2=[Q_1]\ne[Q_0] , so the subgroup of squares has two elements. The signs can only identify a pair of classes. At D=-23 the situation is even more striking: there are three classes and just one genus. Since the group has order three, squaring permutes all three classes. Thus the fact that there is only one genus says nothing about whether there is only one class. The quadratic characters see the quotient by the squares, not the entire group.

We can use this observation to find other expressions x^2+ny^2 for which prime representation has a simple congruence criterion. For example, take n=21 , so that D=-84 . The reduction procedure gives the four forms

\displaystyle (1,0,21),\qquad(2,2,11),\qquad(3,0,7),\qquad(5,4,5).

Without doing a single composition calculation, we can see that all four classes are ambiguous. The first and third have b=0 , the second has b=a , and the fourth has a=c . Thus every square is principal and there is exactly one class per genus. For an odd prime not dividing eighty-four, the principal genus conditions give

\displaystyle p=x^2+21y^2\quad\Longleftrightarrow\quad p\equiv1,25,37\pmod{84}.

To obtain this list, factor -84=(-4)\cdot(-3)\cdot(-7) and test the three characters on the invertible residue classes modulo eighty-four. The residues one, twenty-five and thirty-seven are precisely those for which all three signs are positive. Because the principal genus contains only the principal form, these congruences are sufficient, not just necessary.

At n=14 , the analogous test leaves six residues for the principal genus, but it cannot tell us whether a prime is represented by x^2+14y^2 or by 2x^2+7y^2 . This is the distinction illustrated earlier by the primes 281 and 113 .

There is still a practical way to distinguish the forms when the genus tests are inconclusive. Given an odd prime p not dividing D , find a root B of B^2\equiv D\pmod{4p} , if one exists. Form the triple (p,B,(B^2-D)/(4p)) and reduce it. The two roots, considered modulo 2p with the required parity, give inverse proper classes. Every form representing p belongs to one of these classes, by the leading-coefficient argument. Since inverse forms represent the same integers, either root is enough if we are asking about ordinary representation. This gives a finite algorithm even when a list of simple residue conditions does not settle the question.

Convenient numbers

The positive integers n for which every class of discriminant -4n has square equal to the principal class are traditionally called convenient or idoneal numbers. Their name reflects the useful property we have been discussing: the genus tests distinguish the individual classes.

For a particular n , it is easy to test this property. Reduce all the primitive forms of discriminant -4n , and check whether each satisfies b=0 , |b|=a , or a=c . If they all do, then every class is ambiguous and the square subgroup is trivial. This finite calculation does not require constructing the multiplication table.

The known convenient numbers are

\displaystyle \begin{aligned} &1,\,2,\,3,\,4,\,5,\,6,\,7,\,8,\,9,\,10,\,12,\,13,\,15,\\ &16,\,18,\,21,\,22,\,24,\,25,\,28,\,30,\,33,\,37,\,40,\\ &42,\,45,\,48,\,57,\,58,\,60,\,70,\,72,\,78,\,85,\,88,\\ &93,\,102,\,105,\,112,\,120,\,130,\,133,\,165,\,168,\\  &177,\,190,\,210,\,232,\,240,\,253,\,273,\,280,\,312,\\ &330,\,345,\,357,\,385,\,408,\,462,\,520,\,760,\,840,\\ &1320,\,1365,\,1848. \end{aligned}

Each number on this list can be checked individually by reduction. Showing that there are no further numbers is a different and much harder class-number problem; we do not claim that the list is unconditionally exhaustive. Also, several of the discriminants -4n on the list are nonfundamental, so the simple formula for the number of genera proved above does not automatically apply to them. The direct test for ambiguous reduced forms, however, still works.

It is useful to summarize what we can now do with a prime, say for discriminant -56 . First the discriminant test (-56/p)=1 tells us whether any form represents it. The sign (2/p) then tells us which of the two genera contains its class. The duplication theorem explains why these two genera are the two cosets of the square subgroup \{[Q_0],[Q_1]\} . Finally, if we need to distinguish the individual classes within a genus, we can construct and reduce the prime form. Each step answers a more precise question than the preceding one.

We began by asking whether a prime could be written as x^2+5y^2 without actually finding x and y . The answer led us to the discriminant, to the finite list of reduced forms, and then to the signs attached to the values represented by a form. What is perhaps most striking is that the partition obtained by these elementary congruence tests is exactly the partition obtained by composing classes with squares. This is the content of genus theory.

There is still a question left open by the theory. Could we find a test, more refined than quadratic-residue signs, that distinguishes individual classes even when a genus contains several of them? One answer leads to the Hilbert class field. In the imaginary quadratic setting, one can construct a polynomial whose roots are associated with the classes of quadratic forms. Its behavior modulo a prime gives additional information about the prime. For instance, two primes with identical genus signs can nevertheless give different factorization patterns of this polynomial. In this way, the original problem of representing primes by quadratic forms leads quite naturally to the study of splitting of primes in extensions of number fields.

Posted in $.

Leave a Reply