A Classification of Integral Apollonian Circle Packings

Similar documents
Number Theory Solutions Packet

Simultaneous Linear, and Non-linear Congruences

ax b mod m. has a solution if and only if d b. In this case, there is one solution, call it x 0, to the equation and there are d solutions x m d

Apollonian Circle Packings: Number Theory II. Spherical and Hyperbolic Packings

CS 5319 Advanced Discrete Structure. Lecture 9: Introduction to Number Theory II

UNBOUNDED APOLLONIAN CIRCLE PACKINGS, SELF-SIMILARITY AND RESIDUAL POINTS

M381 Number Theory 2004 Page 1

MA4H9 Modular Forms: Problem Sheet 2 Solutions

Math 109 HW 9 Solutions

Lecture Notes. Advanced Discrete Structures COT S

COMP239: Mathematics for Computer Science II. Prof. Chadi Assi EV7.635

NOTES ON FINITE FIELDS

1 Overview and revision

Chapter 5. Number Theory. 5.1 Base b representations

D-MATH Algebra I HS18 Prof. Rahul Pandharipande. Solution 1. Arithmetic, Zorn s Lemma.

PRACTICE PROBLEMS: SET 1

PUTNAM TRAINING NUMBER THEORY. Exercises 1. Show that the sum of two consecutive primes is never twice a prime.

The group (Z/nZ) February 17, In these notes we figure out the structure of the unit group (Z/nZ) where n > 1 is an integer.

Number Theory. Final Exam from Spring Solutions

Elementary Number Theory. Franz Luef

MATH 145 Algebra, Solutions to Assignment 4

12x + 18y = 50. 2x + v = 12. (x, v) = (6 + k, 2k), k Z.

Math 324, Fall 2011 Assignment 7 Solutions. 1 (ab) γ = a γ b γ mod n.

ALGEBRA. 1. Some elementary number theory 1.1. Primes and divisibility. We denote the collection of integers

AN EXTENSION OF A THEOREM OF EULER. 1. Introduction

3.2 Solving linear congruences. v3

MATH FINAL EXAM REVIEW HINTS

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

CHAPTER 3. Congruences. Congruence: definitions and properties

Elementary Number Theory Review. Franz Luef

Proof 1: Using only ch. 6 results. Since gcd(a, b) = 1, we have

Apollonian Equilateral Triangles

NOTES ON SIMPLE NUMBER THEORY

Chapter 7. Number Theory. 7.1 Prime Numbers

Individual Solutions

MATH 433 Applied Algebra Lecture 4: Modular arithmetic (continued). Linear congruences.

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?

Partial Sums of Powers of Prime Factors

Ma/CS 6a Class 2: Congruences

CHAPTER 6. Prime Numbers. Definition and Fundamental Results

CHAPTER 3. Number Theory

w d : Y 0 (N) Y 0 (N)

Chapter 3 Basic Number Theory

1. multiplication is commutative and associative;

Math 118: Advanced Number Theory. Samit Dasgupta and Gary Kirby

1. (a) q = 4, r = 1. (b) q = 0, r = 0. (c) q = 5, r = (a) q = 9, r = 3. (b) q = 15, r = 17. (c) q = 117, r = 11.

Theory of Numbers Problems

Definitions. Notations. Injective, Surjective and Bijective. Divides. Cartesian Product. Relations. Equivalence Relations

An integer p is prime if p > 1 and p has exactly two positive divisors, 1 and p.

1 Basic Combinatorics

arxiv: v1 [math.mg] 8 Feb 2011

Lecture notes: Algorithms for integers, polynomials (Thorsten Theobald)

MATH 145 Algebra, Solutions to Assignment 4

MATH 501 Discrete Mathematics. Lecture 6: Number theory. German University Cairo, Department of Media Engineering and Technology.

Sydney University Mathematical Society Problems Competition Solutions.

Ma/CS 6a Class 2: Congruences

Course 2316 Sample Paper 1

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?

2. THE EUCLIDEAN ALGORITHM More ring essentials

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

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

KUMMER S LEMMA KEITH CONRAD

D-MATH Algebra II FS18 Prof. Marc Burger. Solution 26. Cyclotomic extensions.

A SURVEY OF PRIMALITY TESTS

Introduction to Arithmetic Geometry Fall 2013 Lecture #24 12/03/2013

Tomáš Madaras Congruence classes

Elementary Algebra Chinese Remainder Theorem Euclidean Algorithm

NONABELIAN GROUPS WITH PERFECT ORDER SUBSETS

SOME PROPERTIES OF INTEGRAL APOLLONIAN PACKINGS

Part II. Number Theory. Year

THE TRIANGULAR THEOREM OF THE PRIMES : BINARY QUADRATIC FORMS AND PRIMITIVE PYTHAGOREAN TRIPLES

Chapter 5: The Integers

Math 324, Fall 2011 Assignment 6 Solutions

Number Theory Homework.

Notes on Systems of Linear Congruences

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,

(n = 0, 1, 2,... ). (2)

Solutions of APMO 2017

This exam contains 5 pages (including this cover page) and 4 questions. The total number of points is 100. Grade Table

Prof. Ila Varma HW 8 Solutions MATH 109. A B, h(i) := g(i n) if i > n. h : Z + f((i + 1)/2) if i is odd, g(i/2) if i is even.

11 Division Mod n, Linear Integer Equations, Random Numbers, The Fundamental Theorem of Arithmetic

HOMEWORK 11 MATH 4753

Algebra SEP Solutions

MATH 361: NUMBER THEORY FOURTH LECTURE

MATH 3240Q Introduction to Number Theory Homework 4

Part V. Chapter 19. Congruence of integers

4 Powers of an Element; Cyclic Groups

GENERALIZED CANTOR SETS AND SETS OF SUMS OF CONVERGENT ALTERNATING SERIES

32 Divisibility Theory in Integral Domains

Name: There are 8 questions on 13 pages, including this cover.

Homework #2 solutions Due: June 15, 2012

Solutions to 2015 Entrance Examination for BSc Programmes at CMI. Part A Solutions

RMT 2013 Power Round Solutions February 2, 2013

Homework 7 solutions M328K by Mark Lindberg/Marie-Amelie Lawn

Sieving 2m-prime pairs

ON A PROBLEM OF PILLAI AND ITS GENERALIZATIONS

Wilson s Theorem and Fermat s Little Theorem

5: The Integers (An introduction to Number Theory)

The primitive root theorem

Transposition as a permutation: a tale of group actions and modular arithmetic

Transcription:

A Classification of Integral Apollonian Circle Pacings Tabes Bridges Warren Tai Advised by: Karol Koziol 5 July 011 Abstract We review the basic notions related to Apollonian circle pacings, in particular focusing on root quadruples. After considering several examples of infinite families of such quadruples, we show that all primitive root quadruples tae on a particularly simple form, and can be easily parametrized by suitable integers and α. We then classify all possible families with = p j, p a prime, and combine these families using an analog of the Chinese Remainder Theorem to give an exhaustive classification of all such families. As a final note, we examine a congruence property mod 1 of the families P,α for gcd, 1 = 1. 1 Introduction Apollonian circle pacing is rooted in the following theorem of Euclidean geometry, nown as Apollonius Theorem: given any three mutually tangent circles in the plane, there are exactly two circles tangent to the first three. By starting with a configuration of four mutually tangent circles, with one containing the other three, this theorem can be exploited to fill in the lunes between circles, as each lune is bounded by three circles. Continuing in this fashion ad infinitum gives an Apollonian circle pacing. The curvatures a, b, c, d of any set of four mutually tangent circles satisfy the Descartes equation a + b + c + d = a + b + c + d 1.1 and are called a Descartes quadruple. We are primarily concerned with primitive integral root quadruples, which are Descartes quadruples of the form a, b, c, d Z 4 such that gcda, b, c, d = 1, a + b + c + d > 0, a 0 b c d, and a + b + c d. A root quadruple represents the curvatures of the four largest circles in a pacing, with a 0 representing the negative orientation of the circle which contains the other three. The case a = 0 refers to the case of an unbounded strip pacing, which contains circles of infinite radius and is of no particular concern to us, so we shall henceforth omit it from our discussion. We note that starting with an integral root quadruple will result in a pacing that has all integral curvatures. This follows from the formula for d, the curvature of the circle tangent to the three circles of curvature a, b, and c, and unequal to the circle of curvature d: d = a + b + c d, 1. 1

which itself follows from a consequence of the Descartes equation, d, d = a + b + c ± ab + bc + ac. 1.3 The paper [GLMWY] gives the following theorem: Theorem 1. For a solution a, b, c, d Z 4 to the Descartes Equation 1.1 we define the simplified quadruple x, d 1, d, m Z 4 by a 1 0 0 0 x x b c = 1 1 0 0 d 1 1 0 1 0 d = d 1 x d x, 1.4 d 1 1 1 m m + d 1 + d x which satisfies x + m = d 1 d. 1.5 The transformation can, of course, be reversed, giving a bijection between integral solutions to the equations 1.1 and 1.5. Furthermore, and ithe Descartes quadruple a, b, c, d is primitive if and only if gcdx, d 1, d = 1, iithe Descartes quadruple a, b, c, d with a+b+c+d > 0 and a 0 is a root quadruple if and only if x < 0 m d 1 d. Notation. Let A denote the 4 4 matrix in 1.4. Its inverse, by which we can transform from Descartes quadruples to simplified quadruples, is 1 0 0 0 A 1 = 1 1 0 0 1 0 1 0. 1.6 Finding Infinite Families 1 1 1 1 We can use the much simpler 1.5 in lieu of 1.1 to calculate formulae in terms of a variable n N, which may be free or constrained to certain equivalence classes; in any case, such a formula will have infinitely many solutions. We start by examining several examples in an ad hoc fashion; we will later proceed systematically. Example 1. [GLMWY] The quadruple n, n + 1, n + n, n + n + 1 is a primitive root quadruple for all n N.

Let m = 0 and x = n in 1.5, giving n = d 1 d..1 In order to satisfy condition i, let d 1 = 1 and d = n. Then we have a simplified quadruple x = n, 1, n, 0 T. We can transform x to a Descartes quadruple by multiplying on the left by A, which gives Ax = n, n + 1, n + n, n + n + 1 T. Letting m = 1 and x = n results in a similar computation which yields the Descartes quadruple for all n 1 mod, n > 1 n + 1 n + 1 n, n +,,.. Example. The quadruple n, n + 8, n + 8n + 4, n + 8n + 36 is a root quadruple for 8 8 all n mod 4, n > 6. Letting m = and x = n in 1.5 gives n + 4 = d 1 d..3 Pic n =, giving 4 + 1 = d 1 d. Choosing odd gives us 1 mod 4, so that + 1 mod 4, and +1 1 mod. Now let d 1 = 8, so that d = n +4 is odd and 8 hence relatively prime to 8. We now have the simplified quadruple x = n, 8, n +4, T. 8 Computing Ax gives the desired Descartes quadruple. Example 3. The quadruple n, n + 4, n + 4n, n + 4n + 16 is a root quadruple for all 4 4 n mod 4, n >. Letting d 1 = 4 and x = n in 1.5 gives Taing n mod 4, we can set n = 4 +, which gives We see that m must be even, so we set m = j, which gives n + m = 4d..4 16 + 16 + 4 + m = 4d..5 44 + 4 + 1 + j = 4d 4 + 4 + 1 + j = d..6 We are assured condition i by setting j even. By condition ii, we in fact have j = 0, which implies m = 0, which in turn implies d = 4 + 4 + 1. We thus get the quadruple x = n, 4, n 4, 0T. Computing Ax gives the desired Descartes quadruple. A similar computation yields the Descartes quadruple for all n 0 mod 4, n > 1 n, n + 4, n + 4n + 4, n + 4n + 4..7 4 4 3

Example 4. Without belabouring computations, we note the following two families of quadruples: n, n + 5, n + 5n + 1, n + 5n + 16, n ± mod 5, n > 3.8 5 5 n, n + 5, n + 5n + 4, n + 5n + 9, n ±1 mod 5, n > 4..9 5 5 3 An Infinite Family of Infinite Families For the remainder of this paper, we will denote by δ a number which squares to 1 modulo some positive integer. If δ does not exist in a particular ring Z/Z, it may still be used hypothetically for the sae of argument. In particular, it is well-nown that δ exists in Z/pZ if and only if p 1 mod 4 or p =. Theorem. For each prime p 1 mod 4, the following is a primitive root quadruple for suitable natural numbers n, α, and β. x := n, n + p, n + pn + α, n + pn + β T. 3.1 p p More precisely, we must have 0 < α < p and β = p α. This condition implies that α < β. The given quadruple is a primitive root quadruple for all n ±δα mod p such that p α n. Note that there are infinitely many such n N. In fact, this covers all possible families of the form n, n + p,... Proof. Applying 1.5 to A 1 x = n, p, n + α p p + α β we get that α = p, p + α β T 3. p. Clearing denominators and collecting terms we get β = α + p pα β = α + p pα = p α = p α. 3.3 To ensure that α < β, we require α < p. In addition, we require α > 0, since α = 0 would give gcdn, p, n +α > 1. p We need to ensure that n + pn + α and n + pn + β are integers, meaning find n such p p that n + α and n + β are congruent to 0 mod p. Since α β mod p, it suffices to chec for the former. Since α 0 mod p, we have n α mod p n ±δα mod p. 3.4 We need to find δ Z/pZ such that δ 1 mod p. As noted above, it is well now that δ can be found for all p 1 mod 4 for example, Wilson s Theorem implies that δ ± p 1! mod p. Therefore, the quadruple will be integral for p 1 mod 4. 4

In [GLMWY], it is demonstrated that for a simplified quadruple to transform to a primitive root quadruple, it must satisfy two conditions: i gcdx, d 1, d = 1, and ii x < 0 m d 1 d. We will refer to these four inequalities as I, II, III, and IV, listed left to right. Every quadruple in our family satisfies i, since n 0 mod p so that gcdn, p = 1. For ii, we move left to right: I. Clear by positivity of n. II. We need p β α = p pα, which implies pα 0. This is satisfied by our hypothesis. III. We need p + α β p. This holds by β α. IV. We need p n + α. We simply give this inequality as a lower bound for n. To prove that we have covered all such families, note that we have proven that α must be in 0, p ] Z. Since all other parameters are tied to α, and are exhaustive, it must be the case that these conditions exhaust families of the form n, n + p,... Remar. The quadruple 3.1 does not give an infinite family of integral root quadruples for any p 3 mod 4, because the number δ does not exist in Z/pZ for any p 3 mod 4. 4 The Form of a Root Quadruple It is no coincidence that all of the families we have looed at tae a form lie that in Theorem. We will prove that, in fact, all primitive root quadruples tae this form, and we will henceforth write them in the form given in Theorem 3. Theorem 3. Each primitive root quadruple can be written in the form x := n, n +, n + n + α, n + n + α T, 4.1 where n,, and α are integers such that n +α N, gcdn,, n +α = 1, n, > 0, and 0 α α. Proof. Let a, b, c, d be a primitive root quadruple. In particular, this implies that the quantity ab + ac + bc is an integer, and that d = a + b + c ab + ac + bc, since we must have d d. Define n = a, = a + b, and α = ab + ac + bc. The positivity of follows from Lemma 3.1i of [GLMWY]. Plugging these values into 4.1 yields the quadruple a, b, c, d. Note also that the root condition implies α = ab + bd + ad. Since a, b, c, d is a root quadruple, c d ca + cb da + db 4. ab + ca + cb ab + da + db α α = α + α. 5

From this we now that 0 α 0 α 4.3 α α. The coprimality of n, and n +α follows from that of a, b, and c, since gcda, b, c = gcda, b, c, d note that d is determined by a, b, and c. Conversely, any quadruple of the form 4.1 satisfying the divisibility conditions and inequalities is a primitive root quadruple. With this theorem in hand, we proceed to classify all possible root quadruples of the form 4.1 with = p j, for p a prime. 5 Powers of Theorem 4. Let j be a positive even integer. The following is a primitive root quadruple: x := n, n + j, n + j n + α, n + j n + j α T, 5.1 j j where α j 1, α = q j/, n = l j/, and n j α, and where q, l N have opposite parity. More succinctly, we may write n j/ +α mod j/+1. As there is no upper bound on j or n, this gives an infinite set of infinite families of primitive root quadruples. The given parameters are the only such that guarantee primitivity. Proof. One easily verifies that A 1 x = n, j, n + α, j + j+1 α j T 5. j j+1 satisfies 1.5. Because q +l 1 mod, A 1 x satisfies condition i. Simple computations analogous to those done in the proof of Theorem show that 5. satisfies condition ii: I. Clear. II. j + j+1 α j = j+1 α 0. III. j j+1 α j 1 α, which is part of our hypothesis. IV. This is our given lower bound for n. We must now show that our choices of α and n are the only ones that generate primitive quadruples. Assuming first that α is odd, the equation n + α 0 mod j implies that n must also be odd. In particular, n and α are units in the ring Z/ j Z, satisfying the equation n α 1 mod j. This is a contradiction, as the equation y + 1 0 mod j has no solution for j > 1. Assume now that α = q e, with e < j/ and gcdq, j = 1. Reducing the equation n + α 0 mod j modulo e shows that n 0 mod e, which implies in turn that n 0 mod e. Writing n = l e yields the equation l +q 0 mod j e, which gives a contradiction by a completely analogous argument to the one previously considered. 6

Theorem 5. Let j be a positive odd integer. The quadruple 5.1 is a primitive root quadruple if we tae α = q j 1/ and n = l j 1/, where q and l are both odd. More succinctly, this condition is equivalent to n α j 1/ mod j+1/. Proof. Verifying that condition ii is satisfied is identical to the case for j even. We verify the primitivity condition. Suppose first that q is even. We can then set q = q, so n + α = q + l = 4q + l, which is only an integer for l even. In this case, condition i j is not satisfied. Suppose now q is odd and set q = q + 1, so n + α = q + l = 4q + 4q + 1 + l, j which is only an integer for l odd. Writing l = l + 1 shows that this fraction is an odd integer, meaning that condition i is satisfied. Verifying that these are the only such parameters that yield primitive root quadruples follows exactly as in the case for j even. We need only consider the cases where α is odd, or α = q e with gcdq, j = 1 and e < j 1/. 6 Powers of Odd Primes Theorem 6. Let p be a prime equivalent to 1 mod 4, and let j be a positive even integer. The following is a primitive root quadruple for suitable natural numbers n and α. x := n, n + p j, n + p j n + α, n + p j n + p j α T. 6.1 p j p j More precisely, let α = qp e, with gcdq, p j = 1, and α p j /. Let δ denote a square root of 1 in Z/p j Z. If e < j/, then we may tae n ±δα mod p j e with a slight restriction, explained in the proof. If e = j/, then n = lp j/, with l ±δq mod p. If e > j/, then n = lp j/, with l 0 mod p. In each of these cases, we tae n p j α. There are infinitely many n satisfying each of these conditions. The given conditions are the only such that guarantee primitivity. Proof. We easily verify that A 1 x = n, p j, n + α, pj + p j α p j T 6. p j p j satisfies 1.5. We first verify condition ii: I. Clear. II. p j + p j α p j = p j α 0. III. p j p j α p j / α, which is part of our hypothesis. IV. This is our given lower bound for n. We now proceed systematically and verify the remaining claims in the theorem. Note that, by Hensel s Lemma, the existence of δ in Z/pZ guarantees its existence in Z/p j Z. Moreover, reducing δ modulo p e with 0 < e < j yields an element in Z/p e Z which squares to 1. Writing α = qp e, with gcdq, p j = 1, and substituting into the equation n + α 0 7

mod p j gives n + q p e 0 mod p j. If e < j/, we proceed as in the characteristic case, and find that n = lp e. This gives the equation l + q 0 mod p j e, which is equivalent to l ±δq mod p j e. Multiplying through by p e gives n ±δα mod p j e. If e 0, we write n ±δα + fp j e mod p j, where f Z/p e Z. Expanding the equation ±δα + fp j e + α shows exactly which values of f will yield integers relatively prime to p j p, thereby guaranteeing primitivity. If e = j/, then we arrive at the equation n + α p j = l + q. If l is congruent to ±δq mod p, then evidently l + q 0 mod p, and the quadruple will not be primitive. If e > j/, then we are left with the equation n + α p j n p j mod p, in which case we must have n = lp j/ with gcdl, p = 1. These three subcases exhaust all possible choices for α. Theorem 7. Let j be a positive odd integer. The quadruple 6.1 is a primitive root quadruple for suitable α and n. More precisely, let α = qp e, with gcdq, p j = 1, and α p j /. If e < j/, then we may tae n ±δα mod p j e with a suitable restriction, explained in the proof. These are the only parameters for α that yield primitive root quadruples. Proof. Verifying that the given α and n subject to the same restriction as previously discussed satisfy conditions i and ii is identical to the proof for the case of j even. We prove that these are the only admissible choices for α. Assuming that α = qp e with e > j/ gives n + α p j n p j arbitrary integer. This gives n primitive quadruple. mod p. This implies that n must be of the form lp j+1/, with l an p j l p 0 mod p, and therefore such an α cannot yield a We now deal with primes p 3 mod 4. For such primes, there does not exist a square root δ of 1 in Z/p j Z, because such a δ would imply the existence of δ in Z/pZ, which we now to be false. Lemma 1. There never exists an infinite family of primitive root quadruples in the form n, n +,... when = p j for p 3 mod 4 and j an odd positive integer. Proof. We assume such a family exists and wor by cases depending on the nature of a hypothetical α. Case 1. gcdα, p = 1. This implies that α is a unit in Z/p j Z, so n + α 0 mod p j n α 1 mod p j, 6.3 but δ Z/p j Z, a contradiction. Case. gcdα, p > 1. Let α = qp e, where gcdq, p = 1 and e > 0. Then n + α 0 mod p j n + q p e 0 mod p j. 6.4 8

Subcase 1. e < j/. We can then tae n q mod p j e p e n 1 mod p j e, 6.5 qp e which is again a contradiction. Subcase. e > j/. In this case, n 0 mod p j, which implies that n 0 mod p j+1/. Let n = lp j+1/, so that n = l p j+1. We then have n + α p j = l p j+1 + q p e p j = l p + q p e j, 6.6 which gives gcdx, d 1, d > 1, a contradiction. Theorem 8. Let j be a positive even integer. The following is a primitive root quadruple for p 3 mod 4: n, n + p j, n + p j n + α, n + p j n + p j α, 6.7 p j p j where α = qp j/, α p j /, n = lp j/, and n p j α. If q 0 mod p, l must be relatively prime to p. If q 0 mod p, l may be any positive integer large enough to satisfy the lower bound on n. These are the only parameters that yield primitive root quadruples. Proof. The simplified quadruple n, p j, n + α, pj + p j α p j p j p j 6.8 is easily seen to satisfy 1.5. To satisfy condition i, we need l + q 0 mod p. By similar computations to those used in the proof of Lemma 1, α must be a multiple of p j/. For q 0 mod p, we obviously need l 0 mod p. For q 0 mod p, we get l + q 0 mod p l q mod p, 6.9 which is always satisfied, since δ Z/p j Z. We show that condition ii is satisfied by the usual computations: I. Clear. II. p j + p j α p j = p j α 0. III. p j p j α p j / α p j/ / q, which is part of our hypothesis. IV. This is our given lower bound for n. We now show that our choices of α and n are the only possibilities. Assume that α = qp e, with e < j/ and gcdq, p j = 1. The equation n + α 0 mod p j is then equivalent to n the equation qp 1 mod p j e, which we now to be a contradiction. Hence, α must e be divisible by p j/. 9

7 Composite Numbers Theorem 9. Given two infinite families of primitive root quadruples of the form P,α := n, n +, n + n + α, n + n + α where n n mod 7.1 and P,α := n, n +, n + n + α, n + n + α where n n mod, where and are relatively prime, we can generate an associated composition: P,α P,α := 7. n, n +, n + n + α, n + n + α. 7.3 Here n n n τ +n τ mod, 0 α / with α ±α τ +α τ mod, and τ denotes the multiplicative inverse of mod and vice versa. The composition P,α P,α is primitive, and a root quadruple for n α. Proof. By the Chinese Remainder Theorem, n n τ + n τ mod. We now that n α mod and n α mod. Defining α as in the statement of the theorem, we have α α τ + α τ mod. There are no cross terms due to reduction modulo. We will show that this α satisfies the necessary conditions. Note that n + α = n τ + n τ + α τ + α τ. 7.4 Again by the Chinese Remainder Theorem, the right hand side is 0 modulo both and, therefore n + α 0 mod. To ensure that the quadruple is ordered correctly, we need to verify that α. If that is the case upon computation, we are done. If the computed α is greater than, replace it with α < =. We need only to verify that gcdn,, n +α, n + α = 1, assuming gcd n,, n + α, n + α = gcd n,, n + α, n + α = 1. Note that, by coprimality of and, we have the following chain of equalities: gcd n,, n + α, n + α = gcd n,, n + α, n + α + α = gcd n,, n + α = gcd gcdn,, n + α = gcd gcdn, gcdn,, n + α 10

= gcd gcdn,, n + α gcd gcdn,, n + α = gcd gcdn,, n + α gcd gcdn,, n + α. The equality follows from the following fact: if a divides bc, and gcda, b = d, then a/d divides c. Let a = gcdgcdn,, n +α, b =, and c = n +α. Then the since gcda, b = 1, the claim says that a divides c, and a divides gcdn, by definition. Therefore, a divides gcdgcdn,, n +α, and therefore must be less than or equal to this quantity. We have a priori that gcdgcdn,, n +α is less than or equal to a, and therefore the result follows. Since α α mod we have n + α = n + α + l = n + α + α l + l, with α = α + l for some l liewise for. Additionally, by construction, we must have gcd, α = gcd, α and liewise for. Continuing in the chain of equalities gives gcd n,, n + α, n + α = gcd gcdn,, n + α gcd gcdn,, n + α = gcd n,, n + α + α l gcd n,, n + α + α l = gcd n,, n + α gcd n,, n + α = 1. The last equality follows from primitivity of the families P,α, P,α. This theorem gives us a way to generate all families of primitive integral root quadruples. For any choice of except those containing odd powers of primes congruent to 3 mod 4, one can find a family for the appropriate power of each prime factor of, then compose these families using Theorem 9. Using reduction of n modulo these prime powers, one can determine which family to lift. Together with Theorem 3 and the classification of families corresponding 11

to = p j, this shows how to generate all primitive integral root quadruples. Moreover, this theorem implies the following claim: given a primitive root quadruple a, b, c, d with a + b + c + d > 0, the integer a + b = is a sum of two squares. 8 Congruence Relations In this section we investigate a curious congruence relation satisfied by certain families P,α. We first recall the following result from [GLMWY]: Theorem 10. In any primitive integral Apollonian pacing, the Descartes quadruples mod 1 all fall in exactly one of four possible orbits. The first orbit Y = Y 1 mod 1 consists of all permutations of {0, 0, 1, 1, 0, 1, 1, 4, 0, 1, 4, 9, 1, 4, 4, 9, 4, 4, 9, 9} mod 1. The other three orbits are Y := 3, 3, 3, 3 Y, Y 3 := 6, 6, 6, 6 + Y, and Y 4 := 9, 9, 9, 9 Y mod 1. We note that by writing out all the elements in each orbit, we may determine in which orbit a given Descartes quadruple lies simply by checing any two entries of the quadruple that is, any two entries of a Descartes quadruple determine the orbit in which it lies. With this, we may prove the following theorem. Theorem 11. Let P,α denote any primitive family corresponding to the parameter, with arbitrary admissible α, and assume that and 1 are relatively prime. Then the family P,α contains root quadruples in every orbit Y i, i = 1,, 3, 4. Proof. Let P,α be given by quadruples x n = n, n +, n + n + α, n + n + α T, n n mod. Since the entries are given by polynomials in n, we have x n+1 x n mod 1. Since n n mod, we have that n is of the form n = m + n, with m Z. By coprimality of and 1, as m ranges over Z or, more precisely, as m ranges over Z/1Z, n will range over Z/1Z. Therefore, after rearranging quadruples mod 1, the elements of P,α fall into the following congruence classes: 0,,... 11, + 1,... 10, +,.... 1, + 11,... Since we may determine in which orbit a quadruple lies with only two entries, this information suffices. Now, since is relatively prime to 1, it must be congruent to 1, 5, 7, or 11 mod 1. Since we now that must be a sum of two squares, it cannot be congruent to 3 mod 4, and therefore the only congruence classes we need consider are 1 mod 1 and 5 mod 1. In each case, we have: 1

0, 1,... Y 1, 0, 5,... Y 4 11,,... Y, 11, 6,... Y 10, 3,... Y 3, 10, 7,... Y 3 8, 5,... Y 4, 4, 1,... Y 1. Therefore, we see that if and 1 are relatively prime, the family P,α will contain at least one indeed, infinitely many elements in each orbit Y i. 9 Acnowledgements The results summarized in this paper were obtained during an REU at Columbia University during July 011, which was funded by a grant in number theory held jointly by Columbia, NYU, and CUNY. The authors wish to than Professor Dorian Goldfeld for sponsoring the project, as well as our graduate mentors Tim Heath, Karol Koziol, and Ian Whitehead for their generous dispensations of advice and nowledge. References [GLMWY] R.L. Graham, J.C. Lagarias, C.L. Mallows, A. Wils, and C. Yan, Apollonian Circle Pacings: Number Theory, J. Number Theory 100 003, 1-45. 13