Euler’s conjectures and principal genus theorem

In studying the representation of primes by quadratic forms, Euler came across a phenomenon that is quite easy to observe numerically but rather difficult to explain. Sometimes a congruence condition tells us that a prime is represented by a particular quadratic form. Sometimes it tells us only that the prime is represented by one of several forms. And sometimes a representation that is impossible over the integers becomes possible as soon as we allow fractions. What is the relationship between these observations? We shall see that Gauss’s principal genus theorem gives a surprisingly precise answer.

A conjecture of Goldbach and Euler

In their correspondence in 1753, Goldbach and Euler considered the following question. If a prime p is congruent to 1 modulo 4n , can it be written as x^2+ny^2 ? The familiar theorem on sums of two squares gives an affirmative answer when n=1 . Several other examples suggest that the same thing might happen for larger values of n .

\displaystyle \begin{aligned}29&=5^2+2^2,\\41&=3^2+2\cdot4^2,\\37&=5^2+3\cdot2^2,\\41&=6^2+5\cdot1^2,\\73&=7^2+6\cdot2^2.\end{aligned}

In each line the prime is congruent to 1 modulo four times the coefficient of the second square. But Euler noticed an interesting exception. Take n=11 and p=89 . Certainly 89\equiv1\pmod{44} . If 89=x^2+11y^2 with integers x,y , then |y|\leq2 . The only possible values of x^2 are 89,78,45 , none of which is a square. Yet Euler found the following representation:

\displaystyle 89=\left(\frac92\right)^2+11\left(\frac52\right)^2.

So the conjecture fails over the integers but succeeds in this example over the rationals. Euler accordingly proposed that the variables should be allowed to be rational. In modern notation, the Goldbach–Euler conjecture says that for every positive integer n and every prime p\equiv1\pmod{4n} , there are rational numbers x,y such that

\displaystyle p=x^2+ny^2.

What exactly have we gained by allowing fractions? Clearing denominators shows that this is equivalent to finding integers X,Y,Z , with Z\ne0 , such that X^2+nY^2=pZ^2 . In other words, we no longer insist that the form represent p itself. It is sufficient that it represent p multiplied by a square. For Euler’s example, the multiplier is 4 : 9^2+11\cdot5^2=4\cdot89 . This small change in the representation problem is the reason that squares in the group of quadratic forms will enter the argument.

Forms representing primes

Let us first suppose that n is squarefree. We want to find a square root of -n modulo p . Why might this help? If r^2\equiv-n\pmod p , then r^2+n is divisible by p . We have at least found a value of the principal form divisible by the prime, even if we have not yet found a representation of the prime itself. The existence of r follows from quadratic reciprocity. For every odd prime q\mid n , the condition p\equiv1\pmod{4n} gives p\equiv1\pmod q and p\equiv1\pmod4 . Consequently (q/p)=(p/q)=1 . If 2\mid n , then p\equiv1\pmod8 , so (2/p)=1 . Also (-1/p)=1 . Multiplying these equalities gives (-n/p)=1 .

Choose such an r and put c=(r^2+n)/p . Instead of trying to make r^2+n smaller, let us use the equation r^2-pc=-n to construct another quadratic form:

\displaystyle F(X,Y)=pX^2+2rXY+cY^2.

Its discriminant is (2r)^2-4pc=-4n , which is exactly the discriminant of Q(X,Y)=X^2+nY^2 . It is primitive: a common prime divisor of the coefficients would have to divide both p and r , and hence n , which is impossible. Moreover, F(1,0)=p . Thus we have found an integral quadratic form of the right discriminant which represents our prime. The only remaining question is how this form is related to the principal form.

For example, for p=89 and n=11 we can take r=16 , since 16^2+11=3\cdot89 . We obtain F=[89,32,3] , where [A,B,C] denotes the form AX^2+BXY+CY^2 . Making the determinant-one substitution X=-V , Y=U+5V gives

\displaystyle F(-V,U+5V)=3U^2-2UV+4V^2.

The reduced form [3,-2,4] represents 89 , since 3\cdot5^2+2\cdot5+4=89 . The prime has not disappeared from the arithmetic of discriminant -44 . It belongs to a different class from the one we had originally hoped to use.

Square Classes and Rational Solutions

We now come to the main calculation. Suppose that a form F of discriminant -4n represents a positive integer p , and that its class is a square under Gauss composition. We shall show that this alone is enough to obtain a rational representation of p by X^2+nY^2 .

Write [F]=[G]^2 . We may choose a representative G=[m,2b,c] with m>0 coprime to 2n . Here is why. For each prime dividing 2n , at least one of the three values G(1,0),G(0,1),G(1,1) is nonzero modulo that prime, since otherwise all three coefficients would vanish modulo it. Choose coordinates separately at these primes and combine them by the Chinese remainder theorem. Divide out any common divisor of the coordinates, and complete the resulting primitive pair to a determinant-one integer matrix using Bezout’s identity. The represented value is now the leading coefficient of an equivalent form. In the indefinite case one may also arrange positivity by choosing coordinates in an open positive cone while preserving their congruences.

Since b^2-mc=-n , we have \gcd(2b,m)=1 . Replace X by X+kY . The middle half-coefficient becomes b+mk and the last coefficient becomes c+2bk+mk^2 . Choose k so that c+2bk\equiv0\pmod m . We have now arranged that the last coefficient is a multiple of the first, so we can write

\displaystyle G=[m,2B,mC],\qquad B^2-m^2C=-n.

The advantage of this arrangement is that the composition rule becomes especially simple:

\displaystyle [m,2B,mC]^2=[m^2,2B,C].

One can see the multiplication behind this rule explicitly. Put U=xu-Cyv and V=m(xv+yu)+2Byv . Then direct expansion gives G(x,y)G(u,v)=m^2U^2+2BUV+CV^2 . The condition \gcd(m,2B)=1 is the condition for the usual primitive composition formula in this case.

The form [m^2,2B,C] is equivalent to F , so there are integers u,v such that p=m^2u^2+2Buv+Cv^2 . Multiply by m^2 and complete the square:

\displaystyle \begin{aligned}pm^2&=m^4u^2+2m^2Buv+m^2Cv^2\\&=(m^2u+Bv)^2+(m^2C-B^2)v^2\\&=(m^2u+Bv)^2+nv^2.\end{aligned}

Dividing by m^2 gives the desired rational representation:

\displaystyle \boxed{p=\left(\frac{m^2u+Bv}{m}\right)^2+n\left(\frac vm\right)^2.}

This is the important point in the argument. A square class has a representative whose leading coefficient is a square. When we complete the square in that representative, the leading coefficient supplies precisely the square multiplier that Euler needed. In fact the calculation proves more than the assertion about a single prime: the entire form [m^2,2B,C] is equivalent to the principal form over the rationals.

Principal Genus

We have reduced Euler’s problem to showing that F=[p,2r,c] is a square class. This is where Gauss’s principal genus theorem enters. It tells us that a primitive form belongs to the principal genus if and only if its class is a square. We shall use the theorem for primitive forms, with proper equivalence (and the positive or narrow class convention for indefinite forms). In particular we allow discriminants of nonmaximal orders, such as -44 .

Put M=4n , and let H be the set of invertible residues modulo M represented by the principal form Q=X^2+nY^2 . This set is a subgroup of (\mathbb Z/M\mathbb Z)^\times . Indeed, 1 belongs to it and the identity

\displaystyle (x^2+ny^2)(u^2+nv^2)=(xu-nyv)^2+n(xv+yu)^2

shows that it is closed under multiplication. Since the group is finite, closure under multiplication also gives closure under inversion.

Now notice the identity

\displaystyle pF(X,Y)=(pX+rY)^2+nY^2.

As p is coprime to M , the substitution (X,Y)\mapsto(pX+rY,Y) is invertible modulo M . Thus the invertible residues represented by pF are precisely those represented by Q . The residues represented by F itself form the coset p^{-1}H . Since p\equiv1\pmod M , this is just H . In particular F belongs to the principal genus: its invertible represented residues are those of the principal form. By the principal genus theorem its class is a square, and the preceding calculation gives the rational representation of p .

This proves the Goldbach–Euler theorem for squarefree n . For arbitrary positive n , write n=n_0s^2 with n_0 squarefree. Apply the result to n_0 , using p\equiv1\pmod{4n_0} , and replace y by y/s in the resulting representation. The proof is complete.

Example:

Let us see how the square-root calculation works for discriminant -44 . The primitive reduced forms are [1,0,11] , [3,2,4] and [3,-2,4] . We found that 89 is represented by the last of these. The class group has order three, so every class is a square. We can also calculate a square root directly. Replacing X by X+Y in 3X^2+2XY+4Y^2 gives 3X^2+8XY+9Y^2 . Hence

\displaystyle [3,8,9]^2=[9,8,3].

The form on the right is equivalent to [3,-2,4] , as is seen by substituting X=-V,Y=U+V . The prime 89 is represented by the square form, since 89=9+8\cdot4+3\cdot16 . Completing the square, we get

\displaystyle 9\cdot89=(9+4\cdot4)^2+11\cdot4^2=25^2+11\cdot4^2.

Thus 89=(25/3)^2+11(4/3)^2 . This is a different answer from Euler’s, but it has been obtained systematically from the composition square root. Other examples of the same phenomenon are

\displaystyle \begin{aligned}3&=(1/2)^2+11(1/2)^2,\\5&=(3/2)^2+11(1/2)^2,\\23&=(9/2)^2+11(1/2)^2.\end{aligned}

None of these three primes has an integral representation by x^2+11y^2 . The class group has three elements but just one genus. Congruences distinguish the genus, not the individual class. In a class group of odd order, squaring is a bijection, so every class is in the principal genus even when the principal class is only a small part of the class group.

Another Problem

Euler also considered the equation p=x^2-ay^2 for a squarefree integer a\ne0,1 . If x,y are integers, we can immediately obtain a necessary condition by looking at the parity of y . If y is even, then ay^2 is divisible by 4a . If y is odd, then ay^2\equiv a\pmod{4|a|} . Hence

\displaystyle p\equiv r^2\quad\text{or}\quad p\equiv r^2-a\pmod{4|a|}

for some integer r . Euler conjectured that this condition was sufficient for an integral solution. Lagrange found a counterexample, discussed below. We will see that for an odd prime p\nmid a the displayed congruence is equivalent to rational solvability of p=x^2-ay^2 . This restriction to odd primes is deliberate: the congruence criterion as printed in Lemmermeyer’s Lemma 1 requires a qualification at 2 , for example 2=(1/2)^2+7(1/2)^2 but 2 is neither a square nor a square plus seven modulo 28 .

The argument is very close to the one we have just given. Let H be the invertible residues represented by Q=X^2-aY^2 modulo 4|a| . The parity calculation shows that Euler’s criterion is exactly the assertion p\in H , since the residues in its two alternatives are attained by setting Y=0 or Y=1 . If we know (a/p)=1 , choose s^2\equiv a\pmod p and construct F=[p,2s,(s^2-a)/p] . The identity pF=(pX+sY)^2-aY^2 shows that the invertible residues of F are p^{-1}H=H . Thus F belongs to the principal genus. Taking a composition square root and completing the square as before gives a rational representation by X^2-aY^2 . We only need to justify the modular square root, and to check necessity when denominators are allowed.

For each odd prime q\mid a , Euler’s two alternatives become the same condition modulo q , namely (p/q)=1 . At two, there are three possibilities. If a\equiv1\pmod4 , the two alternatives allow both odd residues modulo four: take an odd r in the first alternative and an even r in the second. If a\equiv3\pmod4 , both alternatives require p\equiv1\pmod4 . Finally, if a is even, then a is twice an odd number and the oddness of p forces r to be odd. Odd squares are 1 modulo eight, so the allowed residues are 1 and 1-a modulo eight. Conversely these separate conditions imply Euler’s criterion, by choosing the appropriate alternative at two and combining the square roots at odd primes using the Chinese remainder theorem.

\displaystyle \begin{array}{c|c}a&\text{condition at two}\\\hline a\equiv1\pmod4&\text{none}\\a\equiv3\pmod4&p\equiv1\pmod4\\a\equiv2\pmod8&p\equiv1,7\pmod8\\a\equiv6\pmod8&p\equiv1,3\pmod8\end{array}

These are precisely the genus-character conditions. To see this, let d be the fundamental discriminant of \mathbb Q(\sqrt a) , so that d=a if a\equiv1\pmod4 and d=4a otherwise. Factor d=d_1\cdots d_t into prime discriminants. An odd prime q contributes q^*=(-1)^{(q-1)/2}q , and quadratic reciprocity says (q^*/p)=(p/q) . The possible factors at two are -4,8,-8 , whose characters are positive on precisely the three restricted sets of residues in the table. To check which factor occurs, note that the product of the odd prime discriminants is always 1 modulo four. If a\equiv3\pmod4 one needs the factor -4 ; if a=2u , one needs 8 for u\equiv1\pmod4 and -8 for u\equiv3\pmod4 .

Consequently Euler’s criterion is equivalent to

\displaystyle \left(\frac{d_1}{p}\right)=\cdots=\left(\frac{d_t}{p}\right)=1.

Multiplying these symbols gives (d/p)=1 , and since d/a is a square, this gives (a/p)=1 . This establishes the modular square root required above and finishes the sufficiency argument.

Denominators

Suppose now that we have a rational representation. Clear denominators and cancel the common divisor to get X^2-aY^2=pZ^2 with \gcd(X,Y,Z)=1 . For an odd prime q\mid a , reducing modulo q gives X^2\equiv pZ^2\pmod q . If q\mid Z , then q\mid X , and returning to the equation gives q^2\mid aY^2 . Since a is squarefree, this forces q\mid Y , a contradiction. Thus Z is invertible modulo q and (p/q)=1 .

At two, if a\equiv1\pmod4 there is no condition to check. If a\equiv3\pmod4 and Z is even, reducing modulo four forces both X and Y to be even. Thus Z is odd. The variables X,Y have opposite parity, and in either case p\equiv1\pmod4 . If a is even and Z is even, reduction modulo two forces X even, and reduction modulo four then forces Y even. Again Z is odd, and so is X . Reducing modulo eight now gives p\equiv1-aY^2\pmod8 , which is either 1 or 1-a according to the parity of Y . We have recovered every condition in the table. So allowing rational coordinates removes the obstruction coming from individual form classes but does not remove the genus obstructions.

Examples:

For a=-5 , the prime discriminants are -4 and 5 . Thus rational representation by x^2+5y^2 requires p\equiv1\pmod4 and (p/5)=1 , or equivalently p\equiv1,9\pmod{20} . By contrast, the weaker condition (-5/p)=1 allows p\equiv1,3,7,9\pmod{20} . For example, 3 divides 1^2+5\cdot1^2 , but cannot be represented even rationally: X^2+5Y^2=3Z^2 would force X,Z , and then Y , to be divisible by five. The reduced forms of discriminant -20 are [1,0,5] and [2,2,3] , so the class group has order two and its square subgroup is trivial. Thus in this case the rational criterion is also an integral criterion. For instance, 29=3^2+5\cdot2^2 , 41=6^2+5 , and 89=3^2+5\cdot4^2 .

For a=-14 , the prime discriminants are 8,-7 . Rational representation requires p\equiv1,7\pmod8 and p\equiv1,2,4\pmod7 . The resulting residue classes modulo 56 are 1,9,15,23,25,39 . The four reduced classes are [1,0,14],[2,0,7],[3,2,5],[3,-2,5] . The last two are inverses and [3,2,5]^2=[2,0,7] , so the principal genus consists of the first two forms. We can actually see their rational equivalence by expanding the identity

\displaystyle 2x^2+7y^2=\left(\frac{2x-7y}{3}\right)^2+14\left(\frac{x+y}{3}\right)^2.

For instance, 71=2\cdot2^2+7\cdot3^2 gives 71=(17/3)^2+14(5/3)^2 . Similarly 113=2\cdot5^2+7\cdot3^2=(11/3)^2+14(8/3)^2 . Neither prime has an integral representation by the principal form: for 71 the possible differences 71-14y^2 are 71,57,15 , and for 113 they are 113,99,57 .

Euler himself observed a related phenomenon for discriminant -156 . The forms x^2+39y^2 and 3x^2+13y^2 have the same prime residue classes although they are inequivalent over the integers. His example was 61=3\cdot4^2+13 , which is not represented integrally by x^2+39y^2 . We can recover its rational representation from composition. The form [5,2,8] is equivalent to [5,12,15] by the substitution X\mapsto X+Y . Squaring gives [25,12,3] , which is equivalent to [3,0,13] by interchanging variables with a sign change and then translating the first variable. Completing the square gives

\displaystyle 3x^2+13y^2=\left(\frac{6x-13y}{5}\right)^2+39\left(\frac{x+2y}{5}\right)^2.

Taking x=4,y=1 gives 61=(11/5)^2+39(6/5)^2 . Euler’s own representation was 61=(25/4)^2+39(3/4)^2 . Both express the rational equivalence of the two forms. Notice that the discriminant -156 of these integral forms is not the fundamental discriminant -39 of their quadratic field. The prime discriminants for the latter are -3 and 13 , so the rational criterion is (p/3)=(p/13)=1 , with no extra condition modulo four.

Lagrange’s counterexample to Euler’s integral conjecture is particularly interesting because the form is indefinite. Take a=79 and p=101 . The congruence condition is satisfied, since 101=38^2-79-4\cdot79\cdot4 . Nevertheless x^2-79y^2=101 has no integral solution. How can we prove this? Unlike positive definite forms, we cannot bound y merely by looking at the equation. But the Pell equation supplies a symmetry that allows us to reduce any hypothetical solution to a small one.

Observe that 80^2-79\cdot9^2=1 . Thus multiplication by \varepsilon=80+9\sqrt{79} preserves the norm and takes integer coefficients to integer coefficients. Its inverse 80-9\sqrt{79} also has integer coefficients. If \alpha=x+y\sqrt{79} is a solution, change its sign if necessary to make it positive, and multiply it by a suitable integer power of \varepsilon . We can arrange

\displaystyle \sqrt{101/\varepsilon}\leq\alpha<\sqrt{101\varepsilon}.

Since the conjugate of \alpha is 101/\alpha , it lies in the same interval with endpoints possibly reversed. Hence

\displaystyle |y|\leq\frac{\sqrt{101\varepsilon}-\sqrt{101/\varepsilon}}{2\sqrt{79}}.

Squaring and using \varepsilon+\varepsilon^{-1}=160 gives y^2\leq101/2 , so |y|\leq7 . The eight possible values of 101+79y^2 are 101,180,417,812,1365,2076,2945,3972 , none of which is a square. Thus there is no integer solution. But there is a rational one:

\displaystyle 35^2-79\cdot2^2=909=9\cdot101,\qquad101=(35/3)^2-79(2/3)^2.

Here the extra freedom provided by a denominator is decisive.

Legendre’s descent

The corrected conjecture can also be seen through the ternary equation X^2=aY^2+pZ^2 . Legendre’s theorem gives rational solvability when the coefficients have the appropriate signs and p is a square modulo |a| and a is a square modulo p . These are exactly the two congruences established above. To see how the descent actually works, consider Lagrange’s example. We have 33^2-79=10\cdot101 , then 22^2-10=6\cdot79 , and finally 4^2-6=10 . These three identities reduce the equation through the sequence

\displaystyle \begin{aligned}X^2&=79Y^2+101Z^2,\\X^2&=79Y^2+10Z^2,\\X^2&=10Y^2+6Z^2,\\X^2&=6Y^2+Z^2.\end{aligned}

The reason these reductions are reversible over the rationals is the multiplication identity (X^2-aY^2)(u^2-a)=(uX+aY)^2-a(uY+X)^2 . If u^2-a=bb' , a solution of X^2=aY^2+bZ^2 gives one of X'^2=aY'^2+b'Z'^2 by setting (X',Y',Z')=(uX+aY,uY+X,bZ) . The same operation, exchanging b,b' , works in reverse.

Start with (X,Y,Z)=(1,0,1) for the last equation. Reversing the third step with a=6,b=1,u=4 gives (4,1,1) for X^2=6Y^2+10Z^2 . Interchange Y,Z and reverse the second step using a=10,b=6,u=22 to obtain (98,26,6) , or after division by two, (49,13,3) , for X^2=10Y^2+79Z^2 . Interchange the last two coordinates once more and reverse the first step with a=79,b=10,u=33 . We obtain (1854,148,130) , and division by two gives (927,74,65) . Thus 927^2-79\cdot74^2=101\cdot65^2 . The descent has supplied another rational solution, without any guessing of its coordinates.

Conclusion

There are really three different questions about a prime p and a quadratic form Q=x^2-ay^2 . First, can p divide a primitive value of Q ? This is equivalent to (a/p)=1 . Second, can p itself be represented rationally by Q ? For odd primes coprime to a this requires each of the prime-discriminant characters to be positive, not just their product. Finally, can p be represented integrally by Q ? This requires the form class representing p to be the principal class in the chosen order. The first two questions are congruence questions; the third generally needs finer information.

Euler’s original conjecture tried to distinguish the principal class using information that distinguishes only the principal genus. His passage to rational representations was exactly the right correction. Gauss’s theorem explains this through the equality of the principal genus and the subgroup of squares, while the elementary completion of the square explains why those squares correspond to the denominators of rational representations. It is a particularly concrete instance of the relationship between congruences, norms, and class groups that would later become central to class field theory.

The historical examples and the connection with genus theory are discussed in Lemmermeyer’s article . The explicit form-composition calculations, the proof of the congruence equivalence, and the Pell reduction and descent computations here are expanded mathematical explanations. We have used quadratic reciprocity, Gauss’s composition law, and the principal genus theorem as previously established results, rather than reproving them in this article.

Leave a Reply