THUE-VINOGRADOV AND INTEGERS OF THE FORM x 2 + Dy 2. Contents. Introduction Study of an Elementary Proof

Similar documents
THUE S LEMMA AND IDONEAL QUADRATIC FORMS

THUE S LEMMA AND IDONEAL QUADRATIC FORMS

Math 4400/6400 Homework #8 solutions. 1. Let P be an odd integer (not necessarily prime). Show that modulo 2,

The Hasse Minkowski Theorem Lee Dicker University of Minnesota, REU Summer 2001

Primes - Problem Sheet 5 - Solutions

A CONCRETE EXAMPLE OF PRIME BEHAVIOR IN QUADRATIC FIELDS. 1. Abstract

Representing Integers as the Sum of Two Squares in the Ring Z n

MATH342 Practice Exam

HENSEL S LEMMA KEITH CONRAD

Math 104B: Number Theory II (Winter 2012)

ON THE LEAST SIGNIFICANT p ADIC DIGITS OF CERTAIN LUCAS NUMBERS

MATH 361: NUMBER THEORY EIGHTH LECTURE

6 Binary Quadratic forms

x 2 a mod m. has a solution. Theorem 13.2 (Euler s Criterion). Let p be an odd prime. The congruence x 2 1 mod p,

Algebraic Number Theory

3 Properties of Dedekind domains

DISCRIMINANTS IN TOWERS

MAS 4203 Number Theory. M. Yotov

(Workshop on Harmonic Analysis on symmetric spaces I.S.I. Bangalore : 9th July 2004) B.Sury

On the Multiplicative Order of a n Modulo n

MA3H1 TOPICS IN NUMBER THEORY PART III

Diophantine Equations and Congruences

#A47 INTEGERS 15 (2015) QUADRATIC DIOPHANTINE EQUATIONS WITH INFINITELY MANY SOLUTIONS IN POSITIVE INTEGERS

RECIPROCITY LAWS JEREMY BOOHER

Elementary Analysis in Q p

t s (p). An Introduction

By Evan Chen OTIS, Internal Use

MATH 2710: NOTES FOR ANALYSIS

Mobius Functions, Legendre Symbols, and Discriminants

A FEW EQUIVALENCES OF WALL-SUN-SUN PRIME CONJECTURE

MA257: INTRODUCTION TO NUMBER THEORY LECTURE NOTES 2018

QUADRATIC RECIPROCITY

Infinitely Many Quadratic Diophantine Equations Solvable Everywhere Locally, But Not Solvable Globally

MA3H1 Topics in Number Theory. Samir Siksek

2 Asymptotic density and Dirichlet density

THE LEAST PRIME QUADRATIC NONRESIDUE IN A PRESCRIBED RESIDUE CLASS MOD 4

2 Asymptotic density and Dirichlet density

Pythagorean triples and sums of squares

QUADRATIC RECIPROCITY

GAUSSIAN INTEGERS HUNG HO

POINTS ON CONICS MODULO p

MATH 3240Q Introduction to Number Theory Homework 7

#A64 INTEGERS 18 (2018) APPLYING MODULAR ARITHMETIC TO DIOPHANTINE EQUATIONS

Dirichlet s Theorem on Arithmetic Progressions

Almost 4000 years ago, Babylonians had discovered the following approximation to. x 2 dy 2 =1, (5.0.2)

CERIAS Tech Report The period of the Bell numbers modulo a prime by Peter Montgomery, Sangil Nahm, Samuel Wagstaff Jr Center for Education

SQUAREFREE VALUES OF QUADRATIC POLYNOMIALS COURSE NOTES, 2015

Practice Final Solutions

MAT 311 Solutions to Final Exam Practice

GOOD MODELS FOR CUBIC SURFACES. 1. Introduction

Solvability and Number of Roots of Bi-Quadratic Equations over p adic Fields

Math 261 Exam 2. November 7, The use of notes and books is NOT allowed.

ERRATA AND SUPPLEMENTARY MATERIAL FOR A FRIENDLY INTRODUCTION TO NUMBER THEORY FOURTH EDITION

MATH 361: NUMBER THEORY ELEVENTH LECTURE

arxiv: v1 [math.nt] 9 Sep 2015

Jacobi symbols and application to primality

Introduction to Arithmetic Geometry Fall 2013 Lecture #10 10/8/2013

MATH 371 Class notes/outline October 15, 2013

Small Zeros of Quadratic Forms Mod P m

Characteristics of Fibonacci-type Sequences

ON FREIMAN S 2.4-THEOREM

MATH 210A, FALL 2017 HW 5 SOLUTIONS WRITTEN BY DAN DORE

Primes of the form ±a 2 ± qb 2

NUMBER SYSTEMS. Number theory is the study of the integers. We denote the set of integers by Z:

On the Rank of the Elliptic Curve y 2 = x(x p)(x 2)

QUADRATIC RECIPROCITY

Almost All Palindromes Are Composite

Factorability in the ring Z[ 5]

QUADRATIC RESIDUES AND DIFFERENCE SETS

ARITHMETIC PROGRESSIONS OF POLYGONAL NUMBERS WITH COMMON DIFFERENCE A POLYGONAL NUMBER

Number Theory. Lectured by V. Neale Michaelmas Term 2011

March 4, :21 WSPC/INSTRUCTION FILE FLSpaper2011

Elementary theory of L p spaces

PARTITIONS AND (2k + 1) CORES. 1. Introduction

Sets of Real Numbers

MATH 250: THE DISTRIBUTION OF PRIMES. ζ(s) = n s,

CONGRUENCES CONCERNING LUCAS SEQUENCES ZHI-HONG SUN

We collect some results that might be covered in a first course in algebraic number theory.

Maths 4 Number Theory Notes 2012 Chris Smyth, University of Edinburgh ed.ac.uk

Practice Final Solutions

THE THEORY OF NUMBERS IN DEDEKIND RINGS

Introductory Number Theory

Number Theory Naoki Sato

A Curious Property of the Decimal Expansion of Reciprocals of Primes

DIVISIBILITY CRITERIA FOR CLASS NUMBERS OF IMAGINARY QUADRATIC FIELDS

arxiv: v1 [math.nt] 4 Nov 2015

#A37 INTEGERS 15 (2015) NOTE ON A RESULT OF CHUNG ON WEIL TYPE SUMS

MATH 361: NUMBER THEORY THIRD LECTURE

QUADRATIC RINGS PETE L. CLARK

University of Bristol - Explore Bristol Research. Peer reviewed version. Link to published version (if available): 10.

Quadratic Reciprocity

CONGRUENCE PROPERTIES MODULO 5 AND 7 FOR THE POD FUNCTION

BEST POSSIBLE DENSITIES OF DICKSON m-tuples, AS A CONSEQUENCE OF ZHANG-MAYNARD-TAO

Class Field Theory. Peter Stevenhagen. 1. Class Field Theory for Q

BOUNDS FOR THE SIZE OF SETS WITH THE PROPERTY D(n) Andrej Dujella University of Zagreb, Croatia

ANALYTIC NUMBER THEORY AND DIRICHLET S THEOREM

When do Fibonacci invertible classes modulo M form a subgroup?

Chapter 3. Number Theory. Part of G12ALN. Contents

RAMANUJAN-NAGELL CUBICS

Frobenius Elements, the Chebotarev Density Theorem, and Reciprocity

Transcription:

THUE-VINOGRADOV AND INTEGERS OF THE FORM x 2 + Dy 2 PETE L. CLARK Contents Introduction Study of an Elementary Proof 1 1. The Lemmas of Thue and Vinogradov 4 2. Preliminaries on Quadratic Recirocity and Quadratic Forms 4 2.1. Quadratic recirocity law 4 2.2. Binary quadratic forms 5 3. Thue-Vinogradov Alied to Binary Quadratic Forms 7 4. First Alications of Theorem 9 8 4.1. Indefinite forms 8 4.2. Positive definite forms 10 5. Primes of the form x 2 + Dy 2 for idoneal D 12 5.1. Auxiliary Congruence Conditions and Small Examles 12 5.2. The reresentation theorem 13 5.3. Prearatory Lemmas 14 5.4. Proof of the Reresentation Theorem: D 1, 5 (mod 8) 15 5.5. Proof of the Reresentation Theorem: D 2, 6 (mod 8) 16 5.6. Proof of the Reresentation Theorem: D 3, 7 (mod 8) 17 5.7. Proof of the Reresentation Theorem: D 4 (mod 8) 17 5.8. Proof of the Reresentation Theorem: D 0 (mod 8) 18 6. Some reresentations of squarefree integers 19 6.1. A squarefree reresentation theorem 19 6.2. Further background on quadratic forms 21 6.3. The roof of Theorem 34 21 References 23 Introduction Study of an Elementary Proof Perhas the first nontrivial, nonfoundational result in number theory is Fermat s Two Squares Theorem: an odd rime number is a sum of two integer squares iff it is congruent to one modulo four. 1 Fermat claimed a roof of the Two Squares Theorem (Christmas day, 1640) but Date: November 23, 2011. c Pete L. Clark, 2011. 1 Whether or not this vague claim is accurate in a historical sense, it is certainly accurate as a ersonal statement about the author. For me, number theory began in a three week course taught in the summer of 1992 by Tim Marks and Jamie Pommersheim, and if number theory was the queen of mathematics, the Two Squares Theorem was the jewel in her crown. Almost twenty years later, my fascination with this result shows no signs of abatement. 1

2 PETE L. CLARK (as usual) never ublished it, describing it only as an alication of his method of Infinite Descent. The first ublic roof, also using Infinite Descent, was given by Euler in 1747. By now many roofs have been given: the most currently oular one exloits the fact that x 2 + y 2 is the norm form of Z[ 1]. The text [AZ], which comiles book roofs in the sense made oular by P. Erdős, gives two roofs of the Two Squares Theorem. One is an involutory roof by Heath-Brown and Zagier. The other exloits a combinatorial lemma of A. Thue. One may ask why there is so much interest in giving new roofs of very old theorems like the Two Squares Theorem. There are many ossible answers, including the thrill that comes with finding one s own roof of a classic result. But there is another reason, and one which rovides a test of the worth of a new roof : what other theorems can be roved by the same or similar arguments? Thus one has the natural question What else can be roved via Thue s Lemma? Although a substantial minority of introductory number theory texts include the Thue s Lemma roof of the Two Squares Theorem e.g. [O, Thm. 11-7], [Sho, Thm. 2.33], [L] very few ut Thue s Lemma to the test by investigating what other results esecially, what other reresentation theorems for binary quadratic forms can be roved using it. The only significant excetion I know is T. Nagell s classic text [N], which uses Thue s Lemma to determine the rimes reresented by the forms x 2 + y 2, x 2 + 2y 2, x 2 + 3y 2, x 2 + 7y 2, 2x 2 + 3y 2 [N, Thm. 100] and sets as exercises the determination of rimes reresented by x 2 + xy + y 2, x 2 + 6y 2, 2x 2 + 3y 2, x 2 + xy + 3y 2 [N,. 265-266]. 2 Why Nagell (a student of Thue) chose these articular forms and not others is not exlained. I began thinking seriously about the method of Thue s Lemma when M. Hamel brought a similar argument to my attention in early 2010. I had recently taught a course from Cox s text [C] on the quadratic forms x 2 + Dy 2, so it occurred to me to wonder which further such forms could be handled by Thue s Lemma. It is well known and well described in [C] that sufficient congruential conditions for a rime to be of the form x 2 + Dy 2 exist only for finitely many values of D called idoneal numbers (more on them below). In the summer of 2010 I showed that Thue s Lemma can be used to determine which rimes are reresented by any squarefree idoneal number D. (There are 37 known squarefree idoneal numbers, the largest being D = 1365, and at most one further such number, whose existence would contradict the Generalized Riemann Hyothesis.) Unfortunately these arguments required substantial calculations: not every value of D was included in the writeu, but for instance D = 1365 was and that case alone filled nearly three ages. Later in 2010 I showed the results to A. Granville, who quickly suggested that relacing the aeal to Thue s Lemma by a mild rectangular generalization Vinogradov s Lemma would result in a quantitative imrovement in the main result (Theorem 9) which should significantly reduce the amount of calculation. I have followed Granville s suggestion and substantially rewritten the resent aer along these lines. By relacing Thue s Lemma with Vinogradov s Lemma (and imroving the organization), I have been able to treat all 65 known idoneal numbers as well as give comlete roofs, all within a smaller amount of sace. 2 Nagell s text has the following organizational idiosyncrasy: Theorem 100 aears in Chater VI, but the aforementioned exercises aear at the end of Chater VII and are thus easy to miss.

THUE-VINOGRADOV AND INTEGERS OF THE FORM x 2 + Dy 2 3 There are two other works which are closely related to this one. In 2010 T. Hagedorn gave a new roof of the reresentation theorem for rimes by x 2 + Dy 2 for idoneal D using Minkowski s Convex Body Theorem (this generalizes yet another standard roof of the Two Squares Theorem). Hagedorn s argument and mine follow the same basic strategy: we show that for an odd rime number with ( D ) = 1, there are x, y Z+ and a ositive integer k bounded in terms of D such that x 2 + y 2 = k, and then we analyze all cases of k > 1 using elementary congruence considerations to either deduce a contradiction or deduce a reresentation of as X 2 +DY 2. However, the methods lead to different uer bounds on k: Using Thue s Lemma gives k D. Using Vinogradov s Lemma gives k < 2 D. Using Minkowski s Theorem gives k 4 π D. ( Using a sharer Geometry of Numbers bound [HW, Thm. 253] gives k 2 3 D.) Thus Vinogradov s Lemma is a big imrovement over Thue s Lemma but is slightly worse than Geometry of Numbers methods. On the other hand, our main result (Theorem 9) alies to any binary quadratic form, not just to diagonal ositive definite forms. Nevertheless, we believe Hagedorn s aroach is the right one : there are other (esecially, non-diagonal) ositive definite binary forms q(x, y) for which the rimes of the form q(x, y) are determined by congruence conditions, and to rove the reresentation theorem by the above methods, the imrovement offered by Geometry of Numbers bounds seems essential. Finally, just I was comleting this aer I found [Mo66]. Mordell studies rime numbers reresented by diagonal forms. Moreover he uses Vinogradov s Lemma to derive Theorem 9 when B = 0 and n is rime and alies this to study reresentations of certain quadratic forms by rimes. The only other significant difference is that Mordell s aer is six ages so treats matters in less detail. For instance he writes I notice that this method [i.e., via Thue-Vinogradov] can be extended aarently to all the cases included in the classical theory when the class number of the genus is one, and gives the results with a minimum of effort. Note aarently : here we show that these results indeed hold for all idoneal forms x 2 + Dy 2. At the end of [Mo66] is an addendum acknowledging rior similar work of Venkoff (in a Russian textbook from the 1930 s) and Nagell (in [N]), and writes Neither author seems to have realized the full ossibilities of the method. This seems ironic: although Mordell came closer to realizing the full ossibilities of the method (again, there is more to be said about non-diagonal forms), he did not write much of it down, and 45 years later his work seems to have been nearly forgotten. 3 We hoe that this semi-exository aer as well as the work of Hagedorn [Ha10] will revive some interest in this elementary but owerful aroach to quadratic forms. Acknowledgments: I thank Mariah Hamel for introducing me to Thue s Lemma and the book roof of the Two Squares Theorem, Jonathan P. Hanke for several helful conversations, Thomas Hagedorn for cociting me in [Ha10], and Lee Goswick for finding some tyograhical errors. I am esecially grateful to Andrew Granville 3 [Mo66] has zero MathSciNet citations as of October 2011.

4 PETE L. CLARK for suggesting the relacement of Thue s Lemma with Vinogradov s Lemma and the corresonding imrovement from Theorem 8 to Theorem 9. 1. The Lemmas of Thue and Vinogradov The following remarkably simle and useful result was aarently first roved by A. Thue [Th02] (and ublished in what seems to be a very obscure journal) and later, but indeendently, by the brilliant amateur mathematician L. Aubry [Au13]. Theorem 1. (Thue s Lemma) Let n > 1 be an integer, and let b be an integer which is relatively rime to n. There are integers x, y, not both zero, such that (i) 0 x < n, 0 y n, and (ii) x by (mod n). Although well known in certain circles e.g. [N], [AZ] we maintain that Thue s Lemma is not nearly as famous as it should be. Its extreme innocuousness notwithstanding, Theorem 1 is a owerful tool in many number-theoretic endeavors, including the study of integers reresented by binary quadratic forms. We will find useful a generalization of Theorem 1 due to I.M. Vinogradov [Vi27] (and later, but resumably indeendently, to A. Scholz [Sch]). Theorem 2. (Vinogradov s Lemma) Let a, b, n Z + with n > 1 and gcd(ab, n) = 1, and let α R >0. There are integers x, y, not both zero, such that: (i) ax by (mod n), (ii) x < α, y n α. Proof. Ste 1: Consider {S = (i, j) Z 2 0 i α, 0 j n α }. Since #S = ( α + 1) ( n α + 1) > α n α = n, by the Pigeonhole Princile there are distinct elements (i 1, j 1 ), (i 2, j 2 ) S such that ai 1 bj 1 ai 2 bj 2 (mod n). Put x = i 1 i 2 and y = j 1 j 2. Then x and y are not both zero, ax by (mod n), x α and y n α. Ste 2: If α Z, then x α x < α, and we are done. If α Z, then take 0 < ϵ < α and aly the result of Ste 1 with α ϵ in lace of α: there exist integers x and y, not both zero, so that x α ϵ < α and y sufficiently small ϵ we have n α ϵ = n α and thus y n α n α. n α ϵ Remark 1.1: Vinogradov s Lemma imlies Thue s Lemma: take α = n.. But for Remark 1.2: Vinogradov had a = 1 in Theorem 2, as in fact will be the case in all of our alications. But it costs nothing extra to state and rove the result in this more general way, and doing so identifies Theorem 2 as a (very) secial case of a theorem of Brauer-Reynolds on small solutions to systems of linear congruences [BrRe51]. The Brauer-Reynolds Theorem should also be better known the lone examle I know of an elementary number theory text which makes use of it is [L] but this is an axe to be ground elsewhere. 2. Preliminaries on Quadratic Recirocity and Quadratic Forms 2.1. Quadratic recirocity law. Recall that for an integer n and an odd rime, the Legendre symbol ( n ) is

THUE-VINOGRADOV AND INTEGERS OF THE FORM x 2 + Dy 2 5 defined to be 0 if n, 1 if gcd(, n) = 1 and n is a square modulo and 1 if n is not a square modulo. Theorem 3. (Quadratic Recirocity) Let l and be distinct odd rimes. Put l = ( 1) l 1 2 l. Then: a) ( 1 ) = 1 1 (mod 4). b) ( 2 ) = 1 ±1 (mod 8). c) ( l ) = ( l ). Proof. See e.g. [HW] or [IR, 5.2, Thm. 1]. 2.2. Binary quadratic forms. By a binary quadratic form we mean a olynomial with A, B, C Z. q(x, y) = Ax 2 + Bxy + Cy 2 We say that an integer m is reresented by q or, less formally, of the form q(x, y) if there are x, y Z such that q(x, y) = m. An integer n is rimitively reresented by q if there are x, y Z with gcd(x, y) = 1 such that q(x, y) = n. A quadratic form q(x, y) is rimitive if gcd(a, B, C) = 1. When considering integer reeresentations, it is no loss of generality to restrict to the rimitive case. A quadratic form q is anisotroic if for all (x, y) Z 2, q(x, y) = 0 = (x, y) = (0, 0). We will only be interested in anisotroic forms here. In fact, we will almost entirely be concerned with forms satisfying the stronger roerty that for all x, y R, q(x, y) 0, with equality iff (x, y) = (0, 0). Such forms are called ositive definite. 4 A quadratic form is indefinite if there exist (x 1, y 1 ), (x 2, y 2 ) R 2 such that q(x 1, y 1 ) > 0 and q(x 2, y 2 ) < 0. The discriminant of q(x, y) is defined as = B 2 4AC. Remark 2.1: The binary quadratic form q(x, y) is anisotroic iff is not a square. Evidently 0, 1 (mod 4). Conversely, given any integer 0, 1 (mod 4), there exists a binary quadratic form of discriminant. Indeed, if = 4D then q (x, y) = x 2 + Dy 2 has discriminant 4D = ; whereas if 1 (mod 4) and E = 1 4, then q (x, y) = x 2 + xy + Ey 2 has discriminant 1 4E =. The forms q are called rincial. Proosition 4. Let Q(x, y) be a quadratic form of discriminant ; let n Z\{0}. a) If n is squarefree, then all reresentations of n by Q(x, y) are rimitive. b) If Q(x, y) rimitively reresents n, then is a square modulo n. 4 Negative definite forms are defined in the obvious way but not usually studied, since relacing q with q we get back to the ositive definite case.

6 PETE L. CLARK Proof. a) Suose n = Q(x, y) and e = gcd(x, y). Then e 2 n. b) Suose there exist, q Z with gcd(, q) = 1 such that Q(, q) = ( n. Then ) q there exist integers r and s such that s rq = 1. Then the matrix r s has determinant 1, so that the discriminant of the quadratic form Q (x, y) = Q(x + qy, rx + sy) is equal to. On the other hand, we comute Q (x, y) = Q(x + qy, rx + sy) = nx 2 + (2ar + bs + brq + 2cqs)xy + Q(r, s)y 2. Thus (1) = = (2ar + bs + brq + 2cqs) 2 4nQ(r, s), so is a square modulo n. Next we record some simle multilicative identities. Proosition 5. Let D, A, B, x 1, x 2, y 1, y 2 Z. Then: ( x 2 1 + Dy1 2 ) ( x 2 2 + Dy2 2 ) = (x1 x 2 Dy 1 y 2 ) 2 + D (x 1 y 2 + x 2 y 1 ) 2, ( Ax 2 1 + By1 2 ) ( x 2 2 + ABy2 2 ) = A (x1 x 2 By 1 y 2 ) 2 + B (x 2 y 1 + Ax 1 y 2 ) 2, ( Ax 2 1 + By1 2 ) ( Ax 2 2 + By2 2 ) = (Ax1 x 2 By 1 y 2 ) 2 + AB (x 1 y 2 + x 2 y 1 ) 2. Corollary 6. For any 0 (mod 4), the set of integers reresented by the rincial form q is closed under multilication. Remark 2.2: There are analogous multilicative identities which show that the set of integers reresented by a rincial form of discriminant 1 (mod 4) is also closed under multilication. We will be mainly interested in diagonal forms, so we do not give the identities here. (In fact, it is a leasant exercise to discover them.) Theorem 7. Let q(x, y) = Ax 2 + Bxy + Cy 2 be a rimitive anisotroic quadratic form of discriminant, and let be an odd rime such that ( ) = 1. a) Suose that x, y Z are such that q(x, y). Then x and y. b) It follows that for all (x, y) Z 2 \ {(0, 0)}, ord (q(x, y)) is even. Proof. Ste 0: Put P (t) = At 2 + Bt + C Z[t]. Since is not a square modulo, a fortiori it is not a square in Z or equivalently, in Q so that (t) Q[t] is an irreducible quadratic. Our assumtion gcd(a, B, C) = 1 ensures that (t) Z[t] is rimitive, so by Gauss s Lemma (t) is an irreducible element of the UFD Z[t]. Hence it is also rime, so that R = Z[t]/((t)) is an integral domain. On the other hand, let α be the comlex number B+ 2A. Then the homomorhism Z[t] Z[α] which sends t to α induces an isomorhism of rings R Z[α]. Ste 1: Let be an odd rime number such that ( ) = 1. We claim that R is a rime ideal; equivalently, we claim that the quotient ring R/R = Z/Z[t]/(At 2 + Bt + C) is an integral domain. But in turn this is equivalent to the (natural image in Z/Z[t] of the) olynomial (t) being irreducible in Z/Z[t], which follows from our assumtion that the discriminant is not a square in the field Z/Z. By Ste 0, we also have that Z[α] is a rime ideal of Z[α]. Ste 2: Put α = B 2A. Note that Z[α] = Z[α]. For integers x and y, not both zero, we have in Z[α] a factorization q(x, y) = (x + αy)(x + αy).

THUE-VINOGRADOV AND INTEGERS OF THE FORM x 2 + Dy 2 7 Therefore if q(x, y), then since Z[α] is a rime ideal, we must have either x + αy or x + αy. Without loss of generality we consider the first case: we have that x + y α Z[α], i.e., there exist integers X and Y such that ( ) ( ) x y + α = X + Y α. Thus X = x and Y = y, so that x and y, establishing art a). Ste 3: By Ste 2, if q(x, y), then x, y Z and thus ord (q( x, y )) = 2 + ord (q(x, y)). An evident induction finishes the roof. In light of Theorem 7, it is useful to give a name to odd rime numbers bearing the roerty ( ) = 1 with resect to a fixed discriminant. We call such rimes anisotroic rimes for. 3. Thue-Vinogradov Alied to Binary Quadratic Forms Let s aly Theorems 1 and 2 to the reresentation of integers by quadratic forms. Theorem 8. Let q(x, y) = Ax 2 + Bxy + Cy 2 Z[x, y] be an anisotroic quadratic form of discriminant = B 2 4AC. Let n Z + be a nonsquare such that gcd(n, 2C) = 1 and is a square modulo n. a) There exist k, y, z Z with 0 < x, y < n, 0 < k < A + B + C, such that q(x, y) = kn. b) If q is ositive definite, then k > 0. c) If A > 0, B = 0, C < 0, then C < k < A. d) If AC < 0, then k < max( A + B, C + B ). Proof. a) Since n is odd, 1 2 Z/nZ and thus the quadratic formula is valid: since the discriminant of the quadratic Ax 2 + Bx + C is a square modulo n, there is a rational root. Thus there exist b, l Z such that Ab 2 + Bb + C = ln. If a rime divides b and n, it also divides C, contradicting our assumtion; thus we must have gcd(b, n) = 1. We aly Thue s Lemma (Theorem 1) to get x, y Z, not both zero, such that 0 x < n, 0 y n and x by (mod n). On the one hand and on the other, q(x, y) = Ax 2 + Bxy + y 2 = y 2 (Ab 2 + Bb + C) 0 (mod n) 0 < q(x, y) Ax 2 + Bxy + Cy 2 < ( A + B + C )n, roving art a). b) If q is ositive definite, then k = q(x,y) n > 0. c) Suose q(x, y) = Ax 2 + Cy 2 with A > 0, C < 0. Then d) If AC < 0, then q(x, y) n C < q(x, y) n < A. B + Ax 2 + Cy 2 < B + max( A, C ) = max( A + B, C + B ).

8 PETE L. CLARK Theorem 9. Let q(x, y) = Ax 2 + Bxy + Cy 2 Z[x, y] be an anisotroic. Let n Z + be such that gcd(n, 2AC) = 1 and B 2 4AC is a square modulo n. a) There are nonzero integers x, y, k with k < B + 2 A C and q(x, y) = kn. b) In addition to the hyotheses of art a), suose moreover that AC < 0. Then there are nonzero integers x, y, k with 0 < k < B + A C. Proof. By interchanging x and y if necessary, we may assume A C. a) As in the roof of Theorem 8, there are b, l Z with gcd(b, n) = 1 and Ab 2 +Bb+ C = ln. Now aly Vinogradov s Lemma (Theorem 2) with a = 1 and α = C A 1 4 n to get x, y Z, not both zero, such that x by (mod n) and Thus we have 0 x < C A 1 A 4 n, 0 y C 1 4 n. q(x, y) = Ax 2 + Bxy + y 2 = y 2 (Ab 2 + Bb + C) 0 (mod n), 0 < q(x, y) A x 2 + B x y + C y 2 < ( B + 2 A C )n. b) If AC < 0, then 0 < q(x, y) Bxy + A x 2 C y 2 < ( B + A C )n. Remark 3.1: By the arithmetic-geometric mean inequality, if A = C, the bound k < B +2 A C of Theorem 9 is an imrovement of the bound k < A + B + C of Theorem 8. When A and C are aroximately equal in size the gain is modest, but when one is much larger than the other it is a significant imrovement. When alied to rincial forms, Theorem 9 gives a considerably more useful result. Corollary 10. a) Let D be an integer such that D is not a square. Suose n Z + is a nonsquare such that gcd(n, 2D) = 1 and D is a square modulo n. Then there exist integers x, y, k such that x 2 + Dy 2 = kn, 0 < k < 2 D. b) Let E be an integer such that 1 4E is not a square. Suose n Z + is a nonsquare such that gcd(n, 2E) = 1 and 1 4E is a square modulo n. Then there exist integers x, y, k such that x 2 + xy + Ey 2 = kn, 0 < k < 1 + 2 E. 4. First Alications of Theorem 9 In this section we give some esecially simle alications of Theorem 9, of a sort that we feel would be suitable for a first undergraduate course in number theory in which quadratic recirocity has been introduced. 4.1. Indefinite forms. Theorem 11. Let n be an odd integer such that 2 is a square modulo n. Then there exist integers x, y such that n = x 2 2y 2.

THUE-VINOGRADOV AND INTEGERS OF THE FORM x 2 + Dy 2 9 Proof. By Theorem 8c), there are integers x, y, not both zero, such that x 2 2y 2 = k for 2 < k < 1. Thus k = 1, so that x 2 2y 2 = n. This is just the oosite of what we wanted to show, but take heart. The form q(x, y) = x 2 2y 2 is the rincial form of discriminant 8, so that by Proosition 5 the set of nonzero integers it reresents is closed under multilication. Moreover, 1 2 2 1 2 = 1. Therefore Proosition 5 imlies that q reresents n iff it reresents n. Corollary 12. A nonzero integer is of the form q(x, y) = x 2 2y 2 iff for every rime 3, 5 (mod 8), ord (n) is even. Proof. By Proosition 5, the set of nonzero integers of the form x 2 2y 2 is closed under multilication. It certainly includes all squares, 2 = 2 2 2 1 2, and by Theorem 11 all rimes ±1 (mod 8). Therefore the conditions given in the statement of the corollary are sufficient for n to be of the form x 2 2y 2. Conversely, the rimes 3, 5 (mod 8) are recisely those for which ( (q) ) = ( 8 ) = ( 2 ) = 1 i.e., are anisotroic rimes so by Theorem 7, it is necessary that ord (n) be even at all such rimes. Theorem 13. Let > 3 be a rime number such that ( 3 ) = 1. Then there exist integers x, y such that x 2 3y 2 = ( 1) 1 2. Proof. Alying Theorem 9c), we get nonzero integers x, y, k with x 2 3y 2 = k and 3 < k < 1, i.e., k = 2 or k = 1. Case 1: 1 (mod 4). Together with ( 3 ) = 1, this imlies 1 (mod 3). Reducing x 2 3y 2 = k modulo 3 shows k 1 (mod 3), so k = 2. Thus 2 is of the form x 2 3y 2, which is not the answer that we want. But we can get there: 2 = 1 2 3 1 2 is also reresented, so by Proosition 4 also ( 2)( 2) = 4 is of the form x 2 3y 2. Reducing x 2 3y 2 = 4 modulo 4 shows that x and y are both even, so ( x 2 )2 3( y 2 )2 = = ( 1) 1 2. Case 2: 3 (mod 4). Together with ( 3 ) = 1, this imlies 2 (mod 3). Reducing x 2 3y 2 = k modulo 3 shows k = 1, so x 2 3y 2 = = ( 1) 1 2. Corollary 14. Let n be a nonzero integer. a) If ord 3 (n) is even, then n is of the form x 2 3y 2 iff: (i) For all odd rimes with ( 3 ) = 1, ord (n) is even; and (ii) n is ositive iff the number of rime divisors of n such that 3 is a square modulo and 2 (mod 3), counted with multilicity, is even. b) Suose that ord 3 (n) is odd. Then n is of the form x 2 3y 2 iff both of the following hold: (i) For all odd rimes with ( 3 ) = 1, ord (n) is even; (ii) n is ositive iff the number of rime divisors of n such that 3 is a square modulo and 2 (mod 3), counted with multilicity, is odd. Proof. Ste 0: Suose n = 3 a N with gcd(3, N) = 1 and x 2 3y 2 = 3 a N. Then 3 x so we may ut x = 3X and substitute, getting 3X 2 y 2 = 3 a 1 N. If a > 1, then 3 y so we may ut y = 3Y and substitute, getting X 2 3Y 2 = 3 a 2 N. So we see: if a is even, n = 3 a N is of the form x 2 3y 2 iff N is of that form; and if n is odd, n = 3 a N is of the form x 2 3y 2 iff N is of that form. Ste 1: Taking Ste 0 into account, it suffices to find necessary and sufficient conditions for an integer n with gcd(3, n) = 1 to be of the form x 2 3y 2. Since

10 PETE L. CLARK every square is of the form x 2 3y 2 and for every rime with ( 3 ) = 1, Theorem 13 shows that ± is of the form x 2 3y 2, if n satisfies conditions (i) and (ii) in the statement of the corollary, then ±n = x 2 3y 2. Reducing modulo 3, we see that the sign is determined by the arity condition in (ii). Conversely, suose n = x 2 3y 2. The rimes with ( 3 ) = 1 are recisely those for which ( (q) ) = 1 i.e., are anisotroic rimes so by Theorem 7, it is necessary that ord (n) be even at all such rimes, so (i) is necessary. Again, reduction modulo 3 shows that (ii) is necessary. Several more indefinite forms can be treated in this manner. In fact unlike the case of ositive definite forms it seems likely that reresentation theorems can be roven for infinitely many indefinite binary quadratic forms. So we had better leave this aside for now and turn to the definite case. 4.2. Positive definite forms. If D = 1, then Corollary 10a) immediately yields: Theorem 15. Let n be a ositive integer such that 1 is a square modulo n. Then there exist integers x and y such that n = x 2 + y 2. Corollary 16. A ositive integer n is of the form x 2 + y 2 iff for every rime 3 (mod 4), ord (n) is even. Proof. By quadratic recirocity, for an odd rime, ( 1 ) = 1 if 1 (mod 4) and ) = 1 if 3 (mod 4). Therefore the conditions on the -order at rimes ( 1 congruent to 3 modulo 4 are necessary by Theorem 7b). Conversely, 2 = 1 2 + 1 2 and for any n, n 2 = n 2 + 0 2. Also, if 1 (mod 4), then 1 is a square modulo, so by Theorem 15, is of the form x 2 + y 2. By Proosition 5a), if n = 2 a b1 1 b r r q 2c1 1 q 2c s s, 1,..., r 1 (mod 4), q 1,..., q s 3 (mod 4), then n is of the form x 2 + y 2. Theorem 17. Let n be an odd ositive integer such that 2 is a square modulo n. Then there exist integers x and y such that n = x 2 + 2y 2. Proof. By Corollary 10a), there are integers x, y Z such that either x 2 + 2y 2 = n or x 2 + 2y 2 = 2n. In the former case we are done, so assume that x 2 + 2y 2 = 2n. Then 2 x, so we may write x = 2X and obtain 2n = x 2 + 2y 2 = 4X 2 + 2y 2, so n = y 2 + 2X 2. Corollary 18. A ositive integer n is of the form x 2 + 2y 2 iff for every rime 5, 7 (mod 8), ord (n) is even. Proof. By quadratic recirocity, for an odd rime, ( 2 ) = 1 if 1, 3 (mod 8) and ( 2 ) = 1 if 5, 7 (mod 8). The remainder of the roof is very similar to that of Corollary 16. Details left to the reader. Theorem 19. Let n be a ositive integer such that gcd(12, n) = 1 and 3 is a square modulo n. Then there exist integers x and y such that n = x 2 + 3y 2.

THUE-VINOGRADOV AND INTEGERS OF THE FORM x 2 + Dy 2 11 Proof. Alying Corollary 10a), there exist integers x, y Z such that x 2 +3y 2 = kn for some k, 1 k 3. If k = 1, we re done. Consider the case x 2 + 3y 2 = 2n. Reducing modulo 3 we get x 2 2n (mod 3). Let be any (odd, by hyothesis) rime divisor of n. Then, since 3 is a square mod n, a fortiori we have ( 3 ) = 1. By quadratic recirocity, this imlies 1 (mod 3). That is, to say, n divisible only by rimes of the form 1 (mod 3), from which it follows that n 1 (mod 3), and thus 2n 2 (mod 3). But then x 2 2 (mod 3), a contradiction. Consider the case x 2 + 3y 2 = 3n. Then x = 3X for X Z: substituting and simlifying gives 3X 2 + y 2 = n, so n is of the form x 2 + 3y 2. Corollary 20. A ositive integer n is of the form x 2 + 3y 2 iff ord 2 (n) is even and for every rime 1 (mod 3), ord (n) is even. Proof. The method of roof of Corollaries 16 and 18 establishes this result for all odd n. It follows by Proosition 6 that the given conditions are sufficient for reresentability of n. Now suose that n = 2 a m with m and a both odd. We must show that n is not of the form x 2 + 3y 2. Case 1: a = 1. Then reducing x 2 + 3y 2 = 2m modulo 4 gives a contradiction. So we may assume a 3 and, seeking a contradiction, that we have integers x and y such that x 2 + 3y 2 = 2 a m. Case 2: x and y are both odd. Then reducing modulo 8 gives a contradiction. Case 3: x and y have oosite arity. Then reducing modulo 2 gives a contradiction. Case 4: x = 2X, y = 2Y. Then X 2 + 3Y 2 = 2 a 2 m and an inductive argument comletes the roof. Theorem 21. Let n be an odd ositive integer such that 4 is a square modulo n. Then there exist integers x and y such that n = x 2 + 4y 2. Proof. Writing x 2 + 4y 2 as x 2 + (2y) 2, the result becomes equivalent to the claim that in the conclusion of Theorem 15, we can take one of x or y to be even. This is certainly true, because if they were both odd, then x 2 + y 2 = n would be even. Corollary 22. A ositive integer n is of the form x 2 + 4y 2 iff ord 2 (n) 1 and for every rime 1 (mod 4), ord (n) is even. Proof. Again the arguments for odd n are similar to those given above. If ord 2 (n) = 1, then reducing modulo 4 shows that n is not of the form x 2 + 4y 2. On the other hand, 4 = 2 2 + 4 0 2 and 8 = 2 2 + 4 1 2 are both of the form x 2 + 4y 2, hence so is every n = 2 k with k > 1. The result follows. Theorem 23. Let n be a ositive integer such that gcd(14, n) = 1 and 7 is a square modulo n. Then there exist integers x and y such that n = x 2 + 7y 2. ) = 1, so by quadratic recirocity is a square modulo 7. Therefore n is a roduct of nonzero squares modulo 7 so it itself a nonzero square modulo 7. Therefore k, being the quotient of nonzero squares modulo 7, is itself a nonzero square modulo 7: i.e., k = 1, 2, 4. Proof. Alying Corollary 10a), there exist integers x, y Z such that x 2 +7y 2 = kn for some k, 1 k 5. If k = 1 we are done, so assume k > 1. Ste 1: Reducing modulo 7, we get x 2 kn (mod 7), i.e., kn is a nonzero square modulo 7. Let be any (odd, by hyothesis) rime divisor of n. Then our hyothesis imlies ( 7

12 PETE L. CLARK Ste 2: Suose x 2 + 7y 2 = 2n. The ossible values of the left hand side modulo 8 are 0, 1, 3, 4, 5, 7. The ossible values of the right hand side are 2, 6: contradiction. Ste 3: Suose x 2 +7y 2 = 4n. Since the right hand side is even, x and y must have the same arity. If they are both odd, x 2 + 7y 2 0 (mod 8), contradiction. So x and y are both even: x = 2X, y = 2Y, 4X 2 + 4 7Y 2 = 4, and X 2 + 7Y 2 =. Corollary 24. A ositive integer is of the form x 2 + 7y 2 iff ord 2 (n) 1 and for every rime 3, 5, 6 (mod 7), ord (n) is even. Proof. By quadratic recirocity, for an odd rime, ( 7 ) = 1 if 1, 2, 4 (mod 7) and ( 7 ) = 1 if 3, 5, 6 (mod 7). The rest is left to the reader. 5. Primes of the form x 2 + Dy 2 for idoneal D 5.1. Auxiliary Congruence Conditions and Small Examles. The reader may have wondered why, in 4.2, the values D = 5 and D = 6 were skied. The answer is that, for these values, the converse of Proosition 4 is false: the necessary condition ( D ) = 1 is no longer sufficient for a rime to be of the form x 2 + Dy 2. Examle 5.1: Let D = 5 and = 3. Then ( 5 3 ) = 1, but the equation 3 = x2 + 5y 2 has no solutions. Examle 5.2: Let D = 6 and = 5. Then ( 6 5 ) = 1, but the Diohantine equation 5 = x 2 + 6y 2 has no solutions. The reasons for this are not so mysterious: for these values of D as well as infinitely many others there are auxiliary congruence conditions to take into account. Indeed we have the following result. Proosition 25. (Auxiliary Congruences) Let D Z +, and let be a rime with gcd(, 2D) = 1. Suose that there exist x, y Z such that x 2 + Dy 2 =. Then: a) For each odd rime l dividing D, ( l ) = 1. b) If D 0 (mod 8), then 1 (mod 8). c) If D 1, 4, 5 (mod 8), then 1 (mod 4). d) If D 2 (mod 8), then 1, 3 (mod 8). e) If D 6 (mod 8), then 1, 7 (mod 8). Proof. For art a) we reduce modulo l to get x 2 (mod l). Since gcd(, D) = 1, gcd(, l) = 1 and thus ( l ) = 1. The other cases involve reducing modulo 8 and considering the various ossibilities for (mod 8): details are left to the reader. Theorem 26. Let be a rime number with gcd(10, ) = 1. Suose that 1 (mod 4) and ( 5 ) = 1. Then there exist x, y Z such that = x2 + 5y 2. Proof. By Corollary 10a), there are integers x, y Z such that x 2 + 5y 2 = k for some k, 1 k 4. Reducing modulo 5, we get x 2 k (mod 5), i.e., k is a nonzero square modulo 5. Our hyotheses imly that is a square modulo 5, and hence so is k: i.e., k = 1 or k = 4. If x 2 + 5y 2 = 4, then by Lemma 31, x and y are even, so = ( x 2 )2 + 5( y 2 )2.

THUE-VINOGRADOV AND INTEGERS OF THE FORM x 2 + Dy 2 13 Theorem 27. A rime is of the form x 2 +6y 2 iff ( 6 ) = 1 and ±1 (mod 8). Proof. We may assume gcd(, 10) = 1. The given conditions are necessary by Proosition 25. Conversely, assume they hold. By Corollary 10a), there are x, y Z such that x 2 + 6y 2 = k for some k, 1 k 4. Reducing modulo 3, we get x 2 k (mod 3), so that k 0, 1 (mod 3). Our hyotheses imly 1 (mod 3), so k = 1, 3, 4. By Lemma 31, if 4 is of the form x 2 + 6y 2, so is. It remains to consider the case k = 3: x 2 +6y = 3. Write x = 3X and substitute, getting 3x 2 + 2y 2 =. Certainly 3 is not of the form x 2 + 6y 2, so we may assume > 3. Reducing modulo 3 then gives 2y 2 2 (mod 3), a contradiction. The following result alies the method to a nonrincial form. Theorem 28. A rime different from 2 and 5 is of the form 2x 2 + 5y 2 iff ) = 1 and 2, 3 (mod 5) iff 7, 13, 23, 27 (mod 40). ( 10 Proof. Necessity: Suose = 2x 2 + 5y 2. Reducing modulo gives 2x 2 + 5y 2 0 (mod ). If x 0 (mod ), then = 2x 2 + 5y 2 shows y 0 (mod ) and thus = 2x 2 +5y 2 is divisible by 2, a contradiction. Therefore 2, 5, x, y are all invertible modulo, and 2x 2 + 5y 2 0 = 5 2 X2 (mod ), which holds iff 10 X 2 (mod ), i.e., iff ( 10 ) = 1. Similarly, reducing modulo 5 gives 2x2 (mod 5), so is not a square modulo 5 and hence 2, 3 (mod 5). Thus so 2 1 = ( 10 ) = ( 2 )(5 ) = ( 2 ), = 1, and thus 5, 7 (mod 8). A Chinese Remainder Theorem calculation gives 2, 3 (mod 5) and 5, 7 (mod 8) 7, 13, 23, 27 (mod 40). Sufficiency: Suose > 5 satisfies the necessary congruence conditions. In articular is rime to 10 and such that ( 10 ) = 1, so by Theorem 9 there are x, y, k Z with 2x 2 + 5y 2 = k and 1 k < 2 10, i.e., 1 k 5. If k = 1, we re done. Suose 2x 2 +5y 2 = 2. Reducing modulo 5 gives x 2 (mod 5), contradiction. Suose 2x 2 +5y 2 = 3. Reducing modulo 5 gives x 2 (mod 5), contradiction. Suose 2x 2 + 5y 2 = 4. Then y is even, and reducing modulo 4 shows x is even. So we may ut x = 2X, y = 2Y to get 2X 2 + 5Y 2 =. Suose 2x 2 + 5y 2 = 5. Put x = 5X to get 10X 2 + y 2 =. Reducing mod 5 shows ( 5 ) = 1, contradiction. 5.2. The reresentation theorem. Examle 5.3: Consider the quadratic form q(x, y) = x 2 + 11y 2. In this case, the congruence conditions ( 11 ) = 1 togther with the auxiliary congruence conditions of Proosition 25 are not sufficient for a rime to be of the form x 2 +11y 2. Indeed, take = 353; it is congruent to 1 modulo 44, so satisfies all congruence conditions, but is easily seen not to be of the given form. In fact, with a bit more work it can be shown that the congruence x 2 + 11y 2 353 (mod n) has solutions for every n Z +. That is, the set of rimes reresented by x 2 + 11y 2 is not characterized by any set of congruence conditions whatsoever. In fact, the following is true. Theorem 29. For a ositive integer D, the following are equivalent: (i) There exist corime ositive integers a and N such that every rime number

14 PETE L. CLARK a (mod N) is of the form x 2 + Dy 2. (ii) Every rime number 1 (mod 4D) is of the form x 2 + Dy 2. (iii) There is a nonemty subset S (Z/4DZ) such that for a rime number with gcd(, D) = 1, is of the form x 2 + Dy 2 iff s (mod 4D) for some s S. (iv) D = 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, lus at most two further values of D. Any further values of D which exist are at least 10 8. A ositive integer D satisfying the above equivalent conditions is said to be idoneal. Proof. This is a classical, but not easy, result. The most accessible reference for the nonsecialist is robably [C]. Remark 5.2: It has been shown that assuming the Generalized Riemann Hyothesis (GRH), D = 1848 is indeed the largest idoneal number. It is known unconditionally that if there are any idoneal numbers D > 1848, there is exactly one such squarefree number D big. Deending uon certain congruence roerties of D big, there may also be one further nonsquarefree idoneal number of the form N 2 D big. 5 In other words, we need only try out our elementary methods on idoneal numbers D. Conversely, we will now show that (at least) for all squarefree idoneal numbers D aearing on the above list, our elementary methods succeed in determining all rimes reresented by x 2 + Dy 2. Theorem 30. (Reresentation Theorem) Let D be one of the 65 idoneal numbers listed in Theorem 29. Then an odd rime is of the form x 2 + Dy 2 iff = D or all of the following hold: (i) ( D ) = 1, (ii) For all odd rimes l D, ( l ) = 1, (iii) If D 0 (mod 8), then 1 (mod 8), (iv) If D 1, 4, 5 (mod 8), then 1 (mod 4), (v) If D 2 (mod 8), then 1, 3 (mod 8), (vi) If D 6 (mod 8), then 1, 7 (mod 8). Of course Theorem 30 is really 65 different results, of which we have already roved the first (and easiest!) seven, corresonding to 1 D 7. I don t know how to rove any 65 theorems without taking some time and sace, but I have tried to organize cognate cases and describe various routine calculations in a uniform, high level way so as to make the roof reasonably alatable. We give two easy rearatory lemmas and then begin the roof roer. In view of the of the Auxiliary Congruences (iii) through (vi), it is natural to grou together the values of D lying in the same congruence class modulo 8, and this is what we do. 5.3. Prearatory Lemmas. Lemma 31. Suose A, B, x, y Z are such that 4n = Ax 2 + By 2. moreover that one of the following holds: (i) A is odd and B 2 (mod 4) (or conversely). Suose 5 It is very common the find in the literature the statement that there is at most one further idoneal value of D, but in [Ka09], E. Kani argues convincingly that this must be a mistake.

THUE-VINOGRADOV AND INTEGERS OF THE FORM x 2 + Dy 2 15 (ii) A and B are both odd and A B (mod 4). Then x and y are both even, hence n = A( x 2 )2 + B( y 2 )2. Proof. We need only reduce 4n = Ax 2 + By 2 modulo 4 and note that under either hyothesis, Ax 2 + By 2 0 (mod 4) forces x and y to be even. Lemma 32. Let q be a rime number with gcd(q, n) = 1. Suose that ord q (D) = 1 and ord q (kn) 2. Then if x 2 + Dy 2 = kn, then x = qx and y = qy so that X 2 + Dy 2 = k q 2 n. Proof. Since q D and q k, q x 2. Since q is rime, by Euclid s Lemma q x and we may take x = qx. Substituting and simlifying gives qx 2 + D q y2 = k q n. Since q qx 2 and q k q n, q D q y2. Since q is rime and q D q, q y2 and then q y. Taking y = qy and simlifying, we get X 2 + Dy 2 = k q 2 n. 5.4. Proof of the Reresentation Theorem: D 1, 5 (mod 8). Suose D {5, 9, 13, 21, 25, 33, 37, 45, 57, 85, 93, 105, 133, 165, 177, 253, 273, 345, 357, 385, 1365}. We have x, y, k Z with x 2 + Dy 2 = k and 1 k 2 D. Ste 0: If k = 1, we are done. Ste 1: We claim first that we cannot have k = 2: indeed, each of the above values of D is divisible by some q {3, 5, 11, 13, 19, 37}, hence by an odd rime q with ( 2 q ) = 1. Therefore reducing x2 + Dy 2 = 2 modulo q gives a contradiction. Moreover, suose 4 k. Put k = 4K. By Lemma 31 x 2 + Dy 2 = 4K imlies x = 2X, y = 2Y and thus X 2 + DY 2 = k. So we may assume k is odd. Ste 2: Since, D 1 (mod 4), reducing modulo 4 shows k 3 (mod 4). Ste 3: If q is an odd rime dividing D, then reducing (2) modulo q shows ( k q ) 1. Ste 4: If q is an odd rime exactly dividing D, then by Lemma 32 we need not consider any values of k with ord q (k) 2. Ste 5: We comile the list of anisotroic rimes, i.e., rimes l 2 D with gcd(l, 2D) = 1 and ( D l ) = 1. For each of these rimes, if l k then l x, l y, so ( x l )2 + D( y l )2 = k l. Thus we need not consider values of k which are 2 divisible by any anistroic rime. It turns out that in all cases every rime l < D with gcd(l, 2D) = 1 is anisotroic, but there may be isotroic rimes l with D l < 2 D with ( D l ) = 1. Thus the values of k we need to consider are those for which every odd rime divisor is istotroic or divides D; are exactly divisible by q if ord q (D) = 1; are either odd or exactly divisible by 2; and are not congruent to 3 modulo 4. Haily, in all cases this leaves us with a short (ossibly emty) list of values of k to consider. In fact, it turns out that the above considerations comlete the roof for each of the following values of D: D {9, 13, 21, 33, 37, 85, 93, 105, 133, 165, 177, 253, 273}. Ste 6: We consider the remaining cases. D = 25: We are left to consider k = 5, and reducing modulo 5 gives a contradiction. D = 45: We are left to consider k = 6, 9, 10. If k = 6, take x = 3X to get 3X 2 + 9y 2 = 6 and reduce modulo 3 to get a contradiction. If k = 9, take x = 9X to get 9X 2 + 5y 2 =, and reduce modulo 3 to get a contradiction. If k = 10, take x = 5X to get 5X 2 + 9y 2 = 2, and reduce modulo 5 to get a contradiction.

16 PETE L. CLARK D = 57: We are left to consider k = 6. Take x = 3X to get 3X 2 + 19y 2 = 2, and reduce modulo 3 to get a contradiction. D = 345: We are left to consider k = 30. Take x = 5X to get 5X 2 + 69y 2 = 6, and reduce modulo 23 to get a contradiction. D = 357: We are left to consider k = 21. Take x = 21X to get 21X 2 + 17y 2 =, and reduce modulo 3 to get a contradiction. D = 385: We are left to consider k = 14. Take x = 7X to get 7X 2 + 55y 2 = 2, and reduce modulo 7 to get a contradiction. D = 1365: We are left to consider k = 30. Take x = 15X to get 15X 2 +91y 2 = 2, and reduce modulo 5 to get a contradiction. 5.5. Proof of the Reresentation Theorem: D 2, 6 (mod 8). Suose D {2, 4, 6, 10, 18, 22, 42, 58, 70, 78, 102, 130, 190, 210, 330, 462}. Let > D be a rime satisfying the necessary congruences of the Reresentation Theorem. We wish to show that there are x, y Z such that x 2 + Dy 2 =. By Corollary 10a) there exist x, y, k Z such that (2) x 2 + Dy 2 = k with 1 k 2 D = 4D. Ste 0: If k = 1, we re done. Ste 1: Suose k = 2. Then for any odd rime l D, reducing x 2 + Dy 2 = 2 modulo l yields 1 = ( 2 l ) = ( 2 l )( l ). Since one of our auxiliary congruences is ( l ) = 1, we conclude ( 2 l ) = 1, i.e., every odd rime divisor of D is congruent to ±1 (mod 8). But this is not the case for any of our D s, a contradiction. Ste 2: If 4 k, then since D 2 (mod 4), reducing x 2 + Dy 2 4k modulo 4 gives a contradiction. Ste 3: Suose k is divisible by a rime l with gcd(l, D) = 1. Then (one comutes) in all cases we have ( l ) = 1, so l is an anisotroic rime for q, so x2 + Dy 2 = k imlies x and y are both divisible by l and thus ( x l )2 + D( y l )2 = ( k l ). Continuing 2 in this way, we may assume that k is not divisible by any anisotoic rimes. Case 4: Suose k is divisible by an odd rime q D. D = 10: Then q = k = 5. If x 2 + 10y 2 = 5, then we may ut x = 5X to get 5X 2 + 2y 2 =, and reducing modulo 5 gives a contradiction. D = 18: Then q = 3. Since 2 18 = 8, we must then have that ord 3 (k) = 1. Thus x 2 +18y 2 = 3K yields 3X 2 +6y 2 = K with gcd(k, 3) = 1, a contradiction. D = 22 or 58: Then there is no odd rime q D with q 2 D. D = 30: Then q = 3 or 5 and k = 6 or 9. If k = 6, take x = 6X to get 6X 2 + 5y 2 =, and reduce modulo 3 to get a contradiction. If k = 9, take x = 3X to get 3X 2 + 10y 2 = 3 and then y = 3Y to get X 2 + 30y 2 =. D = 42: Then q = 3 or q = 7. Suose first that q = 3, so k = 3 or k = 6. Since ( 7 ) = 1 and ( 3 7 ) = ( 6 7 ) = 1, reducing x2 + 42y 2 = k modulo 7 gives a contradiction. Now suose q = 7, so k = 7: ut x = 7X to get 7X 2 + 6y 2 = ; reducing modulo 7 gives a contradiction. D = 70: Reducing (2) modulo 5 and 7 gives ( k 5 ), ( k 7 ) 1. Moreover q = 5 or q = 7. If q = 5, then we need consider only k = 15: take x = 5X to get 5X 2 + 14y 2 = 3; reducing modulo 5 gives a contradiction. If q = 7, we need consider only k = 14: take x = 14X to get 14X 2 + 5y 2 = 2; reducing modulo 5

THUE-VINOGRADOV AND INTEGERS OF THE FORM x 2 + Dy 2 17 gives a contradiction. D = 78: Reducing (2) modulo 3 and 13 gives ( k 3 ), ( k 13 ) 1. Moreover q = 3 or q = 13. If q = 3, we need consider only k = 3: take x = 3X to get 3X 2 + 26y 2 = ; reducing modulo 3 gives a contradiction. If q = 13, we need consider only k = 13: take x = 13X to get 13X 2 + 6y 2 = ; reducing modulo 13 gives a contradiction. D = 102: Reducing (2) modulo 3 and 17 gives ( k 3 ), ( k 17 ) 1. Moreover q = 3 or q = 17. If q = 3, we need consider only k = 15: take x = 3X to get 3X 2 +34y 2 = 5; reducing modulo 3 gives a contradiction. If q = 17 then k = 17 and ( 17 3 ) = 1. D = 130: Reducing (2) modulo 5 and 13 gives ( k 5 ), ( k 13 ) 1. Moreover q = 5 or q = 13. If q = 5 we need consider only k = 10: take x = 5X to get 5X 2 +26y 2 = 2; reducing modulo 5 gives a contradiction. If q = 13 then k = 13 and ( 13 5 ) = 1. D = 190: Reducing (2) modulo 5 and 19 gives ( k 5 ), ( k 19 ) 1. Moreover q = 5 or q = 19. If q = 5 we need only consider k = 5: take x = 5X to get 5X 2 + 38y 2 = ; reducing modulo 5 gives a contradiction. If q = 19 then k = 19: take x = 19X to get 19X 2 + 10y 2 = ; reducing modulo 19 gives a contradiction. D = 210: Reducing (2) modulo 3, 5 and 7 gives ( k 3 ), ( k 5 ), ( k 7 ) 1. Moreover q = 3, 5, 7. If q = 3 then k = 15 or 21. In the former case, take x = 15X to get 15X 2 + 14y 2 = ; reducing modulo 3 gives a contradiction. In the latter case, take x = 21X to get 21X 2 +10y 2 = ; reducing modulo 7 gives a contradiction. If q = 5, then k = 15: take x = 15X to get 15X 2 + 14y 2 = ; reducing modulo 3 gives a contradiction. If q = 7, then k = 21, which we have already ruled out. D = 330: Reducing (2) modulo 3, 5 and 11 gives ( k 3 ), ( k 5 ), ( k 11 ) 1. Morever, q = 3, 5, 11. From these values of q we need consider only k = 15. Take x = 15X to get 15X 2 + 22y 2 =, and reduce modulo 5 to get a contradiction. D = 462: Reducing (2) modulo 3, 7 and 11 gives ( k 3 ), ( k 7 ), ( k 11 ) 1. Moreover q = 3, 7, 11 and from these values of q we must consider k = 15, 22, 42. If k = 15, take x = 3X to get 3X 2 + 154y 2 = 5; reducing modulo 3 gives a contradiction. If k = 22, take x = 22X to get 22X 2 + 21y 2 = ; reducing modulo 11 gives a contradiction. If k = 42, take x = 42X to get 42X 2 + 11y 2 = ; reducing modulo 3 gives a contradiction. 5.6. Proof of the Reresentation Theorem: D 3, 7 (mod 8). Suose D {3, 7, 15}. We have already considered D = 3 and D = 7, so suose D = 15. Reducing (2) modulo 3 and 5 gives ( k 3 ), ( k 5 ) 1, so we are left to consider k = 4 and k = 6. Reducing x 2 + 15y 2 = 4 modulo 8 shows that both x and y are even, so taking x = 2X, y = 2Y gives X 2 + 15Y 2 =. If k = 6, we may take x = 3X, getting 3X 2 + 5y 2 = 2, and reducing modulo 4 gives a contradiction. 5.7. Proof of the Reresentation Theorem: D 4 (mod 8). Suose D {4, 12, 28, 60}. D = 4 has already been considered (Theorem 21); otherwise D = 4D with D 3 (mod 4) and D idoneal. Suose satisfies the necessary congruences of the Reresentation Theorem. These congruences conditions together with the theorem for

18 PETE L. CLARK D imly that is of the form x 2 + D y 2 =. Reducing modulo 4 shows that y is even, so = x 2 + D (2Y ) 2 = x 2 + DY 2. 5.8. Proof of the Reresentation Theorem: D 0 (mod 8). Suose D = 8D {8, 16, 40, 48, 72, 88, 120, 168, 232, 240, 280, 312, 408, 520, 760, 840, 1320, 1848}. Let be an odd rime satisfying the Congruence Conditions of the Reresentation Theorem. By Corollary 10a), there are x, y, k Z + with x 2 + Dy 2 = k, 1 k < 2 D. Ste 0: If k = 1, we are done. Ste 1: Reducing x 2 + 8D y 2 = k modulo 8 gives k 0, 1, 4 (mod 8). Ste 2: Suose k = 4: if x 2 + 8D y 2 = 4, then we may take x = 2X to get X 2 + 2D y 2 =. Reducing modulo 8 gives X 2 + 2D y 2 1 (mod 8). Now observe that for all the values of D above we have ord 2 (D ) {1, 2}, so if y were odd X 2 5, 7 (mod 8), a contradiction. Therefore we may ut y = 2Y to get X 2 + DY 2 =. Ste 3: Suose that 16 D and x 2 + Dy 2 = 16. Then we may take x = 4X to get 2X 2 + D y 2 = 2. Since D is odd, we may take y = 2Y to get X 2 + 2D y 2 =. Since 1 (mod 4) and 2D 2 (mod 4), y must be even. Putting y = 2Y we get X 2 + 8D Y 2 = X 2 + DY 2 =. Further, we cannot have x 2 + Dy 2 = 32, since ord 2 (x 2 + 8D y 2 ) is either even or equal to 3 and ord 2 (32) = 5. Ste 5: Suose that 16 D. Then reducing modulo 16 shows k 8 (mod 16). Ste 6: As usual, we need not consider any values of k which are divisible by any odd anisotroic rimes, and we may make use of Lemma 32 to eliminate certain values of k. Again, we are left with short lists to eliminate by more exlicit analysis. D = 8: There are no further values of k to consider. D = 16: There are no further values of k to consider. D = 40: We are left to consider k = 8, 20. If k = 8, then take x = 4X to get 2X 2 + 5y 2 =, and reduce modulo 5 to get a contradiction. If k = 20, take x = 5X to get 5X 2 + 8y 2 = 4, and reduce modulo 5 to get a contradiction. D = 48: We are left to consider k = 12. We may take x = 6X to get 3X 2 +4y 2 = and then reduce modulo 4 to get a contradiction. D = 72: We are left to consider k = 8, 9, 12. If k = 8, take x = 4X to get 2X 2 + 9y 2 =, and reduce modulo 3 to get a contradiction. If k = 9, take x = 3X to get X 2 + 8y 2 =. We may take y = 3Y, so X 2 + 72Y 2 =. If k = 12, take x = 6X to get 3X 2 + 6y 2 = 2, and reduce modulo 3 to get a contradiction. D = 88: We are left to consider k = 8. We may take x = 4X to get 2X 2 +11y 2 =, and reduce modulo 11 to get a contradiction. D = 120: We are left to consider k = 8. We may take x = 4X to get 2X 2 +15y 2 = and reduce modulo 3 to get a contradiction. D = 168: We are left to consider k = 8. We may take x = 4X to get 2X 2 +21y 2 = and reduce modulo 3 to get a contradiction. If k = 16 we may take x = 4X to get 2X 2 + 21y 2 = 2 and then y = 2Y to get X 2 + 42Y 2 =. Reducing modulo 4 shows that Y is even, so we may ut Y = 2Y and get X 2 + 168Y 2 =. D = 232: We are left to consider k = 8, 16. If k = 8 then we may take x = 4X to get 2X 2 + 29y 2 = and reduce modulo 29 to get a contradiction.

THUE-VINOGRADOV AND INTEGERS OF THE FORM x 2 + Dy 2 19 D = 240: We are left to consider k = 16. We may take x = 4X to get X 2 + 15y 2 =. Reducing modulo 8 shows y is divisible by 4, so we may take y = 4Y to get X 2 + 240Y 2 =. D = 280: We are left to consider k = 8. If k = 8 we may take x = 4X to get 2X 2 + 35y 2 = and reduce modulo 5 to get a contradiction. D = 312: We are left to consider k = 8, 12. If k = 8 we may take x = 4X to get 2X 2 + 39y 2 = and reduce modulo 3 to get a contradiction. If k = 12 we may take x = 6X to get 3X 2 + 26y 2 = and reduce modulo 3 to get a contradiction. D = 408: We are left to consider k = 8. We may take x = 4X to get 2X 2 +51y 2 = and reduce modulo 3 to get a contradiction. D = 520: We are left to consider k = 8, 40. If k = 8 we may take x = 4X to get 2X 2 + 65y 2 = and reduce modulo 5 to get a contradiction. If k = 40 we may take x = 20X to get 10X 2 + 13y 2 = and reduce modulo 5 to get a contradiction. D = 760: We are left to consider k = 8, 20. If k = 8 we may take x = 4X to get 2X 2 + 95y 2 = and reduce modulo 5 to get a contradiction. If k = 20 we may take x = 10X to get 5X 2 + 38y 2 = and reduce modulo 5 to get a contradiction. D = 840: We are left to consider k = 8. We may take x = 4X to get 2X 2 +105y 2 = and reduce modulo 5 to get a contradiction. D = 1320: We are left to consider k = 8, 60, 64. If k = 8 we may take x = 4X to get 2X 2 + 165y 2 = and reduce modulo 5 to get a contradiction. If k = 60 we may take x = 30X to get 15X 2 +22y 2 = and reduce modulo 5 to get a contradiction. If k = 64 we may take x = 2 2 X to get 2X 2 + 165y 2 = 2 3. Next we may take y = 2Y to get X 2 + 330Y 2 = 2 2. Next we may take X = 2X to get 2X 2 + 165Y 2 = 2. Next we may take Y = 2Y to get X 2 + 330Y 2 =. Reducing modulo 4 shows Y is even and thus Y = Y and finally we get X 2 + 1320Y 2 =. D = 1848: We are left to consider k = 8, 64. If k = 8 we may take x = 4X to get 2X 2 + 231y 2 = and reduce modulo 3 to get a contradiction. If k = 64 we may take x = 2 2 X to get 2X 2 + 231y 2 = 2 3. Next take y = 2Y to get X 2 + 462Y 2 = 2 2. Next take X = 2X to get 2X 2 + 231Y 2 = 2. Next take Y = 2Y to get X 2 + 462Y 2 =. Reducing modulo 4 shows Y is even and thus Y = Y and finally we get X 2 + 1848Y 2 =. This comletes the roof of the Reresentation Theorem. 6. Some reresentations of squarefree integers 6.1. A squarefree reresentation theorem. For some idoneal values of D, we can go beyond Theorem 29 and find all squarefree values of n rime to 2D which are reresented by x 2 + Dy 2. The idea is to aly Theorem 9 to all the ositive definite diagonal forms of discriminant 4D and exloit the multilication identities of Proosition 5. Theorem 33. Let n be a squarefree ositive integer rime to 3. Then: a) n is of the form q 1 = x 2 + 6y 2 iff 6 is a square modulo n and n 1 (mod 3). b) n is of the form q 2 = 2x 2 +3y 2 iff 6 is a square modulo n and n 1 (mod 3). Proof. Ste 0: In both cases, the given conditions are easily seen to be necessary: that 6 needs to be a square modulo n is a consequence of Proosition 4, and the other conditions come from reducing modulo 3.