A Note on Jacobi Symbols and Continued Fractions

Similar documents
Necessary and Sufficient Conditions for the Central Norm to Equal 2 h in the Simple Continued Fraction Expansion of 2 h c for Any Odd Non-Square c > 1

POLYNOMIAL SOLUTIONS OF PELL S EQUATION AND FUNDAMENTAL UNITS IN REAL QUADRATIC FIELDS

ON THE CONTINUED FRACTION EXPANSION OF THE UNIQUE ROOT IN F(p) OF THE EQUATION x 4 + x 2 T x 1/12 = 0 AND OTHER RELATED HYPERQUADRATIC EXPANSIONS

Series of Error Terms for Rational Approximations of Irrational Numbers

The Diophantine equation x n = Dy 2 + 1

2 Arithmetic. 2.1 Greatest common divisors. This chapter is about properties of the integers Z = {..., 2, 1, 0, 1, 2,...}.

Fibonacci Sequence and Continued Fraction Expansions in Real Quadratic Number Fields

x 9 or x > 10 Name: Class: Date: 1 How many natural numbers are between 1.5 and 4.5 on the number line?

Finite Fields and Their Applications

Fractional Parts of the Period of the Continued Fraction Expansion of Quadratic Integers. A. J. van der Poorten Macquarie University

On the continued fraction expansion of 2 2n+1

Predictive criteria for the representation of primes by binary quadratic forms

Macquarie University

POLYNOMIAL SOLUTIONS TO PELL S EQUATION AND FUNDAMENTAL UNITS IN REAL QUADRATIC FIELDS arxiv: v1 [math.nt] 27 Dec 2018

#A20 INTEGERS 11 (2011) ON CONGRUENT NUMBERS WITH THREE PRIME FACTORS. Lindsey Reinholz

φ(xy) = (xy) n = x n y n = φ(x)φ(y)

Explicit solution of a class of quartic Thue equations

Two Diophantine Approaches to the Irreducibility of Certain Trinomials

On integer solutions to x 2 dy 2 = 1, z 2 2dy 2 = 1

A field F is a set of numbers that includes the two numbers 0 and 1 and satisfies the properties:

Unisequences and nearest integer continued fraction midpoint criteria for Pell s equation

On prime factors of subset sums

Grade 11/12 Math Circles Rational Points on an Elliptic Curves Dr. Carmen Bruni November 11, Lest We Forget

Notes on Continued Fractions for Math 4400

Wilson s Theorem and Fermat s Little Theorem

Relative Densities of Ramified Primes 1 in Q( pq)

Number theory lectures

HASSE-MINKOWSKI THEOREM

DIOPHANTINE APPROXIMATION AND CONTINUED FRACTIONS IN POWER SERIES FIELDS

CONTINUED FRACTIONS. 1. Finite continued fractions A finite continued fraction is defined by [a 0,..., a n ] = a 0 +

The following techniques for methods of proofs are discussed in our text: - Vacuous proof - Trivial proof

Summary Slides for MATH 342 June 25, 2018

Proofs. Chapter 2 P P Q Q

Advances in Applied Mathematics 48(2012), Constructing x 2 for primes p = ax 2 + by 2

Proofs. Chapter 2 P P Q Q

Quadratic reciprocity and the Jacobi symbol Stephen McAdam Department of Mathematics University of Texas at Austin

Math 109 HW 9 Solutions

Quadratic Diophantine Equations x 2 Dy 2 = c n

Chakravala - a modern Indian method. B.Sury

COMPLEX NUMBERS WITH BOUNDED PARTIAL QUOTIENTS

18-29 mai 2015: Oujda (Maroc) École de recherche CIMPA-Oujda Théorie des Nombres et ses Applications. Continued fractions. Michel Waldschmidt

ARITHMETIC PROGRESSIONS IN CYCLES OF QUADRATIC POLYNOMIALS

SYMMETRY AND SPECIALIZABILITY IN THE CONTINUED FRACTION EXPANSIONS OF SOME INFINITE PRODUCTS

Pell s equation. Michel Waldschmidt

Gaussian integers. 1 = a 2 + b 2 = c 2 + d 2.

ON DIFFERENCES OF TWO SQUARES IN SOME QUADRATIC FIELDS

Number Theory Homework.

Almost fifth powers in arithmetic progression

GENERALIZED PALINDROMIC CONTINUED FRACTIONS

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

Extending Theorems of Serret and Pavone

Colloq. Math. 145(2016), no. 1, ON SOME UNIVERSAL SUMS OF GENERALIZED POLYGONAL NUMBERS. 1. Introduction. x(x 1) (1.1) p m (x) = (m 2) + x.

= 1 2x. x 2 a ) 0 (mod p n ), (x 2 + 2a + a2. x a ) 2

1. Introduction. Let P and Q be non-zero relatively prime integers, α and β (α > β) be the zeros of x 2 P x + Q, and, for n 0, let

SOME RESULTS ON SPECIAL CONTINUED FRACTION EXPANSIONS IN REAL QUADRATIC NUMBER FIELDS

Material covered: Class numbers of quadratic fields, Valuations, Completions of fields.

A Generalization of Wilson s Theorem

Proofs Not Based On POMI

Course 2316 Sample Paper 1

SOLUTIONS TO PROBLEM SET 1. Section = 2 3, 1. n n + 1. k(k + 1) k=1 k(k + 1) + 1 (n + 1)(n + 2) n + 2,

Arithmetic Operations. The real numbers have the following properties: In particular, putting a 1 in the Distributive Law, we get

arithmetic properties of weighted catalan numbers

THE JACOBI SYMBOL AND A METHOD OF EISENSTEIN FOR CALCULATING IT

A GENERALIZATION OF A THEOREM OF BUMBY ON QUARTIC DIOPHANTINE EQUATIONS

8. Dirichlet s Theorem and Farey Fractions

SOME AMAZING PROPERTIES OF THE FUNCTION f(x) = x 2 * David M. Goldschmidt University of California, Berkeley U.S.A.

Math 120 HW 9 Solutions

Algebraic Number Theory and Representation Theory

On a special case of the Diophantine equation ax 2 + bx + c = dy n

be a sequence of positive integers with a n+1 a n lim inf n > 2. [α a n] α a n

THUE S LEMMA AND IDONEAL QUADRATIC FORMS

NORM OR EXCEPTION? KANNAPPAN SAMPATH & B.SURY

Mathematics Course 111: Algebra I Part I: Algebraic Structures, Sets and Permutations

CONTINUED FRACTIONS, PELL S EQUATION, AND TRANSCENDENTAL NUMBERS

Diophantine Equations and Congruences

18.S34 linear algebra problems (2007)

PELL S EQUATION, II KEITH CONRAD

Part II. Number Theory. Year

Basic Proof Examples

The Diophantine equation x(x + 1) (x + (m 1)) + r = y n

On Robbins example of a continued fraction expansion for a quartic power series over F 13

Complex Numbers: Definition: A complex number is a number of the form: z = a + bi where a, b are real numbers and i is a symbol with the property: i

THUE S LEMMA AND IDONEAL QUADRATIC FORMS

NOTES Edited by William Adkins. On Goldbach s Conjecture for Integer Polynomials

MA257: INTRODUCTION TO NUMBER THEORY LECTURE NOTES

Average value of the Euler function on binary palindromes

Infinite Continued Fractions

Solving x 2 Dy 2 = N in integers, where D > 0 is not a perfect square. Keith Matthews

2x 1 7. A linear congruence in modular arithmetic is an equation of the form. Why is the solution a set of integers rather than a unique integer?

THESIS. Presented in Partial Fulfillment of the Requirements for the Degree Master of Science in the Graduate School of The Ohio State University

ON DIRICHLET S CONJECTURE ON RELATIVE CLASS NUMBER ONE

Math 314 Course Notes: Brief description

The Jacobi Symbol. q q 1 q 2 q n

Zhi-Wei Sun Department of Mathematics, Nanjing University Nanjing , People s Republic of China

Proofs Not Based On POMI

A Guide to Arithmetic

On the power-free parts of consecutive integers

Introduction to Number Theory

Solutions to Assignment 1

Determining elements of minimal index in an infinite family of totally real bicyclic biquadratic number fields

Transcription:

Reprinted from: The American Mathematical Monthly Volume 06, Number, pp 52 56 January, 999 A Note on Jacobi Symbols and Continued Fractions A. J. van der Poorten and P. G. Walsh. INTRODUCTION. It is well known that the continued fraction expansion of a real quadratic irrational is periodic. Here we relate the expansion for rs, under the assumption that rx 2 sy 2 ± has a solution in integers X and Y,tothat of r/s and to the Jacobi symbols ( r s) which appear in the theory of quadratic residues. We have endeavoured to make our remarks self-contained to the extent of providing a brief reminder of the background theory together with a cursory sketch of the proofs of the critical assertions. For extensive detail the reader can refer to [5], the bible of the subject. The introductory remarks following in 2 3 below are inter alia detailed in []. Let p and q denote distinct odd primes. In [3], Friesen proved connections between the value of the Legendre symbol ( p q) and the length of the period of the continued fraction expansion of pq. These results, together with those of Schinzel in [6], provided a solution to a conjecture of Chowla and Chowla in [2]. We report a generalization of those results to the evaluation of Jacobi symbols ( r s), and, in the context of there being a solution in integers X, Y to the equation rx 2 sy 2 ±, to remark on the continued fraction expansion of r/s vis à vis that of rs. Theorem. Let r and s be squarefree positive integers with r > s >, such that the equation rx 2 sy 2 ± has a solution in positive integers X, Y. Suppose the continued fraction expansion of rs is [ a 0, a,a 2,...,a l ]. Then both the length of the period l 2h, and the central partial quotient a h,are even, and the continued fraction expansion of r/s is [ 2 a h, a h+,...,a l,a,...,a h ][ 2 a h, a h,...,a,a l,a,...,a h,a h ]. Theorem 2. Let r and s be squarefree positive integers with r>s>, such that the equation rx 2 sy 2 ± has a solution in positive integers X, Y. Denote by l the length of the period of the continued fraction expansion of rs. Then the following Jacobi symbol equalities hold: ( ) r s ( ) 2 l+, s ( ) s r ( As an immediate consequence we obtain the following results which respectively appeared as Theorem 2 and Theorem 5 in [3]. Corollary. Let p q 3 (mod 4) be distinct primes and set N pq. Denote by l the length of the period of the continued fraction expansion of N. Then l is even, and ( ) p ɛ( ) 2 l, q where ɛ if p<q and ɛ if p>q. r ) 2 l. 52 NOTES [January

Corollary 2. Let p 3 (mod 8) and q 7 (mod 8) be primes and set N 2pq. Denote by l the length of the period of the continued fraction expansion of N. Then l is even, and ( ) p ɛ( ) 2 l, q where ɛ if 2p <q and ɛ if 2p >q. 2. CONTINUED FRACTIONS. In this section we recall some basic facts about continued fractions that will be appealed to in the proof of our results. Given an irrational number α, define its sequence (α i ) i 0 of complete quotients by setting α 0 α, and α i+ /(α i a i ). Here, the sequence (a i ) i 0 of partial quotients of α is given by a i α i where denotes the integer part of its argument. Plainly we have α a 0 + a + a 2 + a 3 +... It is only the partial quotients that matter, so such a continued fraction expansion may be conveniently denoted just by [ a 0,a,a 2,a 3,...]. The truncations [ a 0,a,...,a i ] plainly are rational numbers p i /q i. Here, the pairs of relatively prime integers p i, q i are given by the matrix identities ( a0 0 )( ) a 0 ( ) ai 0 ( ) pi p i and the remark that the empty matrix product is the identity matrix. The alleged correspondence, whereby matrix products provide the convergents p i /q i,may be confirmed by induction on the number of matrices on noticing the definition q i q i [ a 0,a,...,a i ]a 0 +/[ a,...,a i ], [ a 0 ]a 0. Incidentally, it clearly follows from transposing the matrix correspondence that () [ a i,a i,...,a ]q i /q i, for i, 2,... The matrix correspondence entails p i /q i p i /q i +( ) i /q i q i whence, by induction, α a 0 + i ( )i /q i q i, and so 0 < ( ) i (q i α p i ) < /q i+, displaying the excellent quality of approximation to α provided by its convergents. Conversely, if (2) qα p < /2q, then the rational p/q must be a convergent to α. 999] NOTES 53

3. CONTINUED FRACTIONS OF SQUARE ROOTS OF RATIONALS. In the case α N, for positive integer N not a square, it is well known and easy to confirm by induction that its complete quotients α i are all of the shape α i (P i + N)/Q i, with the sequences of integers (P i ) and (Q i ) given sequentially by P i+ + P i a i Q i, and Q i+ Q i N P 2 i+, where α 0 N entails P 0 0 and Q 0. Plainly, always Pi 2 N (mod Q i ). Moreover, it is easy to see that the integers P i all satisfy 0 P i < N and the positive integers Q i are all less than 2 N. It follows by the box principle that the continued fraction expansion of N must be periodic. Much more is fairly clear. First, note that the generic step in the continued fraction algorithm for α N is α i (P i + N)/Q i a i (P i+ N)/Q i. Under conjugation N N, this step transforms to (3) (P i+ + N)/Q i a i (P i N)/Q i. But the 0-th step, ingeniously adjusted by adding a 0 P, a 0 + N 2a 0 (a 0 N) is plainly invariant under conjugation. Moreover, because <P N<0wehave (P + N)/Q >. On the other hand P + N>ofcourse entails < (P N)/Q < 0. It s now easy to see, by induction on i, that in (3) < (P i N)/Q i < 0. So a i is the integer part of (P i+ + N)/Q i and (3) is a step in the continued fraction expansion of a 0 + N, and thus of N. It follows that the sequence of steps detailing the continued fraction expansion of a 0 + N is inverted by conjugation, that since it has a fixed point the entire tableaux must be periodic, and that, with l the length of the period, we must have (4) a 0 + N [2a 0,a,a 2,...,a l ], moreover with the word a a 2...a l a palindrome. Lemma. The symmetry just mentioned entails that for even period length l there is a central step, at h 2 l, α h (P h + N)/Q h a h (P h+ N)/Q h, invariant under conjugation. So P h+ P h, and a h 2P h /Q h. It follows that Q h 2N. Conversely, if N is squarefree and Q j 2N, where j 0, then l is even and 2j l. Proof. Plainly Q h N Ph 2 and Q h2p h entails Q h 2N.Asregards the converse, it suffices to notice that Q j N Pj 2 and Q j 2N implies Q j 2Pj 2. The only possible square factor of Q j is 4, since N is squarefree and Q j2n,soitfollows that Qj2Pj ;say2p j /Q j a j. Thus α j (P j + N)/Q j a j (P j N)/Q j 54 NOTES [January

is a step in the continued fraction expansion of N invariant under conjugation. It therefore must be the central such step, and this is what we were to show. Again by induction, or otherwise, one can confirm that ( )( ) ( pi p i Pi+ pi Nq i q i q i 0 Q i+ q i p i which entails in particular that p 2 i Nq2 i ( )i+ Q i+.inother words, the Q i+ arise from the convergents as just indicated. Conversely, one sees that when x 2 Ny 2 t with t < N then, if t>0, x/y N < /2y 2, whilst if t<0 then y/x / N < /2x 2. In either case it follows from the remark following (2) that x/y is a convergent to N, whence t is ( ) i+ Q i+, some i. 4. PROOF OF THE THEOREMS. Proof of Theorem. Set N rs. By the definitions of the sequences (P i ) and (Q i )we have (P h + N)/Q h [a h,a h+,a h+2,...][a h, a h+,...,a l,a,a 2,...,a h ]. Let (X, Y )beapositive integer solution to rx 2 sy 2 ±. Then (sy ) 2 NX 2 s, so because s< N it follows that sy/x is a convergent to rs, and, more to the point, s is some Q i for N. Since, trivially, s N rs, wesee that the lemma entails that i 2 l h, whence sy/x p h /q h. Here Q h s is squarefree by hypothesis and, since now it divides N, the argument given at the lemma entails that Q Ph h.thusp h /Q h 2 a h is an integer, and so rs/qh r/s [ 2 a h, a h+,...,a l,a,...,a h ]. ) ; Finally, our remark at (), or, if one prefers, the observation at (4) that the word a a 2...a l is a palindrome, provides the given formulation of the expansion. Proof of Theorem 2. We saw above that the data entails sy/x p h /q h.thus p 2 h Nqh 2 ( ) h Q h is (sy ) 2 rsx 2 ( ) h s, and so sy 2 rx 2 ( ) h, from which the desired conclusions follow. We now establish the proofs of the corollaries. Proof of Corollary. With N pq divisible by a prime congruent to 3 modulo 4, it is plain that U 2 NV 2 has no solution in nonzero integers U, V.Thus the period of pq has even length l 2h, say. Hence there is a solution in relatively prime integers x, y for x 2 pqy 2 ±Q h with some Q h dividing 2pq, and <Q h < 2 pq. However, it is plain that x 2 pqy 2 2 (mod 4) is impossible so we must have Q h is one of p or q ;sayq h q. But x 2 pqy 2 q implies x qy, y X, giving a solution in integers X, Y to px 2 qy 2 ±, satisfying the conditions of Theorem 2. Proof of Corollary 2. As above, U 2 2pqV 2 isimpossible in nonzero integers U, V,sothere is a solution in relatively prime integers x, y for x 2 2pqy 2 ±Q h, for some Q h dividing 4pq, and <Q h < 2 2pq. It s easy to see that the possibilities modulo 8 are x 2 2pqy 2 ±2p or x 2 2pqy 2 ±q and that either yields integers X, Y satisfying 2pX 2 qy 2 ±. Thus again the hypotheses of Theorem 2 are satisfied, and the result follows by noticing that the Jacobi symbol ( 2 q) for q 7 (mod 8). 999] NOTES 55

5. CLOSING REMARKS. Suppose we know both that r/s [ 2 a h, a h+,...,a l,a,...,a h ] and rs [a 0, a,...,a h,a h+,...,a l ]. The two expansions have the same tail, that is, they differ only in a finite number of initial partial quotients. Thus the numbers rs and r/s are equivalent and one sees, for example from the matrix correspondence, that there are integers X, Y, U, and V satisfying VX UY ± and so that (U r/s+ B)(X r/s+ Y ) rs. But, removing the surd from the denominator yields (rux sv Y )+(VX UY) rs rx 2 sy 2 rs. It follows that rux sv Y 0 and, this is the point, rx 2 sy 2 ±. So the shape of the two continued fraction expansions, and first principles, shows that there is a solution in integers X, Y to rx 2 sy 2 ±. We might also recall a cute result mentioned by Nagell [4]. Namely, given an integer N, consider the collection of all equations ax 2 by 2 ± with integers a and b so that ab N. Nagell s remark is that at most two of that collection of diophantine equations can have a solution. One of us happened to have been reminded of this fine fact by Dmitri Mit kin at a meeting at Minsk, Belarus in 996. Proof. The cases N less than zero or N a square are uninteresting and trivial, so we suppose that N > 0 and is not a square. Then we have at least one equation with a solution, namely X 2 NY 2. Further, if the length l of the period of N is odd then also NX 2 Y 2 has a solution. If there is some other one of the equations with a solution, say ax 2 by 2 ± with a>b>, then, as we saw above, (by ) 2 NX 2 b so l 2h, b Q h, and ( ) h+.thus there is at most one other equation, and if it has a solution then l is not odd. REFERENCES [] Enrico Bombieri and A. J. van der Poorten, Continued fractions of algebraic numbers, in Computational Algebra and Number Theory, Sydney 992, Wieb Bosma and Alf van der Poorten eds., Kluwer 995, 38 54. [2] P. Chowla and S. Chowla, Problems on periodic simple continued fractions, Proc. Nat. Acad. Sci. USA 69 (972), 37-45. [3] C. Friesen, Legendre Symbols and continued fractions, Acta Arith. 59 (99), 365-379. [4] T. Nagell, On a special class of Diophantine equations of the second degree, Ark. Mat. 3 (954), 5 65. [5] O. Perron, Die Lehre von den Kettenbruchen, Chelsea Publishing Company, New York 950. [6] A. Schinzel, On two conjectures of P. Chowla and S. Chowla concerning continued fractions, Ann. Mat. Pura Appl. 98 (974), -7. Centre for Number Theory Research, Macquarie University, Sydney 209, Australia alf@maths.mq.edu.au University of Ottawa, 585 King Edward St., Ottawa, Ontario, Canada KN 6N5 gwalsh@mathstat.uottawa.ca 56 NOTES [January