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

Similar documents
Apollonian Circle Packings: Geometry and Group Theory III. Higher Dimensions

A Classification of Integral Apollonian Circle Packings

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

32 Divisibility Theory in Integral Domains

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

arxiv: v1 [math.mg] 8 Feb 2011

NUMBERS WITH INTEGER COMPLEXITY CLOSE TO THE LOWER BOUND

Apollonian Dynamics. preliminary report

SOME PROPERTIES OF INTEGRAL APOLLONIAN PACKINGS

Quivers of Period 2. Mariya Sardarli Max Wimberley Heyi Zhu. November 26, 2014

Sydney University Mathematical Society Problems Competition Solutions.

UNBOUNDED APOLLONIAN CIRCLE PACKINGS, SELF-SIMILARITY AND RESIDUAL POINTS

arxiv:math/ v1 [math.mg] 9 Jan 2001

HW2 Solutions Problem 1: 2.22 Find the sign and inverse of the permutation shown in the book (and below).

274 Curves on Surfaces, Lecture 4

Groups of Prime Power Order with Derived Subgroup of Prime Order

Number Theory and the Circle Packings of Apollonius

Multi-coloring and Mycielski s construction

SPECIAL CASES OF THE CLASS NUMBER FORMULA

Exercises for Unit V (Introduction to non Euclidean geometry)

GALOIS GROUPS AS PERMUTATION GROUPS

Part II. Geometry and Groups. Year

Symmetries and Polynomials

Individual Solutions

Topological properties

Apollonian Equilateral Triangles

Definitions, Theorems and Exercises. Abstract Algebra Math 332. Ethan D. Bloch

6 Orthogonal groups. O 2m 1 q. q 2i 1 q 2i. 1 i 1. 1 q 2i 2. O 2m q. q m m 1. 1 q 2i 1 i 1. 1 q 2i. i 1. 2 q 1 q i 1 q i 1. m 1.

EGMO 2016, Day 1 Solutions. Problem 1. Let n be an odd positive integer, and let x1, x2,..., xn be non-negative real numbers.

PRIMES Math Problem Set

COMPLEX NUMBERS WITH BOUNDED PARTIAL QUOTIENTS

Algebra SEP Solutions

Dilated Floor Functions and Their Commutators

QUIVERS AND LATTICES.

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

Finite affine planes in projective spaces

Math 121 Homework 5: Notes on Selected Problems

8. Prime Factorization and Primary Decompositions

2. Intersection Multiplicities

5 Group theory. 5.1 Binary operations

NOTES ON FINITE FIELDS

GALOIS GROUPS OF CUBICS AND QUARTICS (NOT IN CHARACTERISTIC 2)

PYTHAGOREAN TRIPLES KEITH CONRAD

Introduction to Real Analysis Alternative Chapter 1

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

Letter to J. Lagarias about Integral Apollonian Packings. June, from. Peter Sarnak

The Advantage Testing Foundation Solutions

To hand in: (a) Prove that a group G is abelian (= commutative) if and only if (xy) 2 = x 2 y 2 for all x, y G.

Course 311: Michaelmas Term 2005 Part III: Topics in Commutative Algebra

Homework #2 Solutions Due: September 5, for all n N n 3 = n2 (n + 1) 2 4

Factorization in Polynomial Rings

RECOVERY OF NON-LINEAR CONDUCTIVITIES FOR CIRCULAR PLANAR GRAPHS

36th United States of America Mathematical Olympiad

Super-Apollonian Continued Fractions

Math 324 Summer 2012 Elementary Number Theory Notes on Mathematical Induction

Solving a linear equation in a set of integers II

2005 Euclid Contest. Solutions

Welsh s problem on the number of bases of matroids

ISOMETRIES OF R n KEITH CONRAD

NOTES ON DIOPHANTINE APPROXIMATION

Chapter 8. P-adic numbers. 8.1 Absolute values

Super-Apollonian Continued Fractions

The complex projective line

HMMT February 2018 February 10, 2018

Baltic Way 2008 Gdańsk, November 8, 2008

The Classification of Nonsimple Algebraic Tangles

Lebesgue Measure on R n

MATH 215 Sets (S) Definition 1 A set is a collection of objects. The objects in a set X are called elements of X.

CSE 206A: Lattice Algorithms and Applications Spring Minkowski s theorem. Instructor: Daniele Micciancio

CONTINUED FRACTIONS, PELL S EQUATION, AND TRANSCENDENTAL NUMBERS

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

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

Department of Mathematics, University of California, Berkeley. GRADUATE PRELIMINARY EXAMINATION, Part A Fall Semester 2014

Independent generating sets and geometries for symmetric groups

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

4 a b 1 1 c 1 d 3 e 2 f g 6 h i j k 7 l m n o 3 p q 5 r 2 s 4 t 3 3 u v 2

COUNTING NUMERICAL SEMIGROUPS BY GENUS AND SOME CASES OF A QUESTION OF WILF

ELEMENTARY LINEAR ALGEBRA

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

Part V. 17 Introduction: What are measures and why measurable sets. Lebesgue Integration Theory

A2 HW Imaginary Numbers

We simply compute: for v = x i e i, bilinearity of B implies that Q B (v) = B(v, v) is given by xi x j B(e i, e j ) =

GENERATING SETS KEITH CONRAD

Some Results Concerning Uniqueness of Triangle Sequences

The Symmetric Space for SL n (R)

MASTERS EXAMINATION IN MATHEMATICS SOLUTIONS

4.4 Noetherian Rings

PUTNAM TRAINING POLYNOMIALS. Exercises 1. Find a polynomial with integral coefficients whose zeros include

Lecture Notes. Advanced Discrete Structures COT S

a 11 x 1 + a 12 x a 1n x n = b 1 a 21 x 1 + a 22 x a 2n x n = b 2.

arxiv: v1 [math.nt] 5 Nov 2018

FINITE GROUP THEORY: SOLUTIONS FALL MORNING 5. Stab G (l) =.

ZEROS OF SPARSE POLYNOMIALS OVER LOCAL FIELDS OF CHARACTERISTIC p

DIHEDRAL GROUPS II KEITH CONRAD

ALGEBRA PH.D. QUALIFYING EXAM September 27, 2008

1 Fields and vector spaces

0 Sets and Induction. Sets

arxiv: v3 [math.co] 1 Oct 2018

1 Euclidean geometry. 1.1 The metric on R n

Lines, parabolas, distances and inequalities an enrichment class

Transcription:

Apollonian Circle Packings: Number Theory II. Spherical and Hyperbolic Packings Nicholas Eriksson University of California at Berkeley Berkeley, CA 942 Jeffrey C. Lagarias University of Michigan Ann Arbor, MI 9 (February, 25) ABSTRACT Apollonian circle packings arise by repeatedly filling the interstices between mutually tangent circles with further tangent circles. In Euclidean space it is possible for every circle in such a packing to have integer radius of curvature, and we call such a packing an integral Apollonian circle packing. There are infinitely many different integral packings; these were studied in the paper []. Integral circle packings also exist in spherical and hyperbolic space, provided a suitable definition of curvature is used (see []) and again there are an infinite number of different integral packings. This paper studies number-theoretic properties of such packings. This amounts to studying the orbits of a particular subgroup A of the group of integral automorphs of the indefinite quaternary quadratic form Q D (w, x, y, z) = 2(w 2 +x 2 +y 2 +z 2 ) (w+x+y+z) 2. This subgroup, called the Apollonian group, acts on integer solutions Q D (w, x, y, z) = k. This paper gives a reduction theory for orbits of A acting on integer solutions to Q D (w, x, y, z) = k valid for all integer k. It also classifies orbits for all k (mod 4) in terms of an extra parameter n and an auxiliary class group (depending on n and k), and studies congruence conditions on integers in a given orbit. Keywords: Circle packings, Apollonian circles, Diophantine equations, Lorentz group AMS Subject Classification: H55. Introduction A Descartes configuration is a set of four mutually touching circles with distinct tangents. A (Euclidean) Apollonian circle packing in the plane is constructed starting from a Descartes configuration by recursively adding circles tangent to three of the circles already constructed in the packing; see [], [5], [6], and Figure. Apollonian packings can be completely described by the set of Descartes configurations they contain. The curvatures (a, b, c, d) of the circles in a Descartes configuration satisfy an algebraic relation called the Descartes circle theorem. Using the Descartes quadratic form Q D (a, b, c, d) := 2(a 2 + b 2 + c 2 + d 2 ) (a + b + c + d) 2, (.)

3 2 23 46 9 9 46 23 2 3 4 4 26 26 9 6 6 9 3 3 6 6 55 55 2 3 3 95 95 9 95 94 94 95 9 4 9 9 3 3 9 3 43 3 43 5 5 94 9 9 9 9 4 4 62 62 3 3 9 9 5 9 6 94 9 9 94 6 9 5 4 4 22 6 6 5 5 2 34 9 9 3 3 43 43 6 6 2 2 99 43 95 95 43 99 2 2 2 46 4 46 4 2 6 6 6 6 43 43 3 3 9 9 2 34 5 5 22 4 22 4 5 9 6 94 9 9 94 6 9 5 9 9 3 3 62 4 9 9 9 94 5 5 43 43 3 3 9 4 9 3 3 9 9 4 9 95 94 94 95 95 34 34 95 3 55 55 2 6 6 95 95 3 3 9 6 35 35 6 9 3 3 26 26 4 4 3 2 3 23 46 23 2 9 9 46 66 66 2 95 3 35 5 3 5 3 3 35 2 95 54 6 6 54 4 39 2 34 63 63 34 3 59 39 4 3 9 59 94 66 35 6 59 2 4 4 22 62 23 5 5 26 34 42 62 46 4 2 6 4 4 3 3 3 5 35 63 9 9 5 3 4 62 42 26 34 5 6 5 4 4 62 23 4 59 9 62 35 94 66 6 39 2 6 3 6 4 66 35 59 23 62 4 4 5 5 2 26 42 62 6 4 46 2 63 9 9 35 3 4 62 42 2 26 5 5 6 23 62 4 4 59 35 66 39 59 9 59 3-4 2 63 3 63 4 3 54 6 6 54 2 2 3 3 5 5 66 66 Figure : The Euclidean Apollonian circle packing (,2,2,3) the Descartes circle theorem states that Q D (a, b, c, d) =. (.2) Descartes originally stated this relation in another algebraic form; see []. In order to have this formula work in all cases, the curvatures of the circles in a Descartes configuration must be given proper signs, as specified in [] and [5]. The form Q D is an integral quadratic form in four variables, and the equation (.2) has many integer solutions. If the initial Descartes configuration generating a (Euclidean) Apollonian packing has all four circles with integral curvatures, then it turns out that all the circles in the packing have integer curvatures. This integer structure was studied in the first paper in this series [] using the action of a particular discrete subgroup of automorphisms of the Descartes quadratic form, which was there termed the Apollonian group A. It is a group of integer matrices, with generators explicitly given in 3. The Descartes configurations in a (Euclidean) Apollonian packing are described by an orbit of the Apollonian group. That is, the Apollonian group acts on the column vector of curvatures of the initial Descartes configuration, and generates the curvature vectors of all Descartes configurations in the packing. This fact explains the preservation of integrality of the curvatures. The Apollonian group and its relevance for Apollonian packings was already noted in 992 by Söderberg [9]. The first paper in this series [] studied Diophantine properties of the curvatures in Euclidean integer Apollonian circle packings, based on the Apollonian group action. In [] it was observed that there exist notions of integer Apollonian packings in spherical and hyperbolic geometry. These are based on analogues of the Descartes equation valid in these geometries, as 2

follows. In hyperbolic space, if the curvature of a circle with hyperbolic radius r is taken to be coth(r), then the modified Descartes equation for the curvatures of circles in a Descartes configuration is Q D (a, b, c, d) = 4. (.3) Similarly, in spherical space, if the curvature of a circle with spherical radius r is defined to be cot(r), then the modified Descartes equation is Q D (a, b, c, d) = 4. (.4) There exist integral Apollonian packings in both these geometries, in the sense that the (spherical or hyperbolic) curvatures of all circles in the packing are integral; see the examples in Figures 2 and 3 below. Again, the vectors of curvatures of all Descartes configurations in such a packing form an orbit under the action of the Apollonian group. The purpose of this paper is to study Diophantine properties of the orbits of the Apollonian group A acting on the integer solutions to the Diophantine equation Q D (a, b, c, d) = k, (.5) where k is a fixed integer. Integer solutions exist for k or 3 (mod 4), and our results on reduction theory in 3 are proved in this generality. Our other results are established under the more restrictive condition k (mod 4), where we will always write k = 4m. These results cover the motivating cases k = ±4 corresponding to spherical and hyperbolic Apollonian packings, as well as the Euclidean case k =. We note that the Apollonian group A is a subgroup of infinite index in the group Aut(Q D, Z) of all integer automorphs of the Descartes quadratic form Q D. As a consequence, the integral solutions of Q D (a, b, c, d) = k (for k or 3 (mod 4)) fall in an infinite number of orbits under the action of A. In contrast, these same integral points fall in a finite number of orbits under the full Aut(Q D, Z)-action. In 2, we study the distribution of integer solutions to the equation Q D (a, b, c, d) = 4m, determining asymptotics for the number of such solutions to these equations of size below a given bound. These asymptotics are obtained via a bijective correspondence between integral representations of integers 4m by the Descartes form and representations of integers 2m by the Lorentzian form Q L (W, X, Y, Z) = W 2 + X 2 + Y 2 + Z 2, and then applying results of Ratcliffe and Tschantz [] on integer solutions to the Lorentzian form. In 3, we describe the Apollonian group, and apply it to give a reduction algorithm for quadruples v = (a, b, c, d) satisfying Q D (v) = k in a fixed orbit of the Apollonian group, starting from an initial integer quadruple satisfying Q D (v) = k. This reduction algorithm differs in appearance from that given in part I [, Sect. 3], which treated the case k = ; however we show its steps coincide with those of the earlier algorithm when k =. A quadruple obtained at the end of this algorithm is called a reduced quadruple. We classify reduced quadruples as two types, root quadruples and exceptional quadruples. We show that for each orbit containing a root quadruple, the root quadruple is the unique reduced quadruple in that orbit. For each fixed k we show that there are at most a finite number of orbits not containing a root quadruple. Each of these orbits contain at least one and at most finitely many reduced quadruples, each of which is by definition an exceptional quadruple. We show that such orbits can only occur when k >, and we call them exceptional orbits. Their existence is an interesting new phenomenon 3

29 29 29 29 293 293 293 293 29 29 29 29 29 29 29 29 2 2 2 2 2 2 2 2 23 23 23 23 23 23 23 23 22 22 22 22 269 269 269 269 265 265 265 265 26 26 26 26 256 256 256 256 256 256 256 256 25 25 25 25 25 25 25 25 25 25 25 25 2 2 2 2 5 5 5 5 5 5 5 5 234 234 234 234 234 234 234 234 233 233 233 233 232 232 232 232 229 229 229 229 2 2 2 2 2 2 2 2 2 2 2 2 22 22 22 22 22 22 2 2 2 2 2 2 2 2 26 26 26 26 23 23 23 23 2 2 2 2 2 2 2 2 2 2 2 2 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 22 22 22 22 2 2 2 2 2 2 2 2 2 2 2 2 9 9 9 9 94 94 94 94 93 93 93 93 93 93 93 93 92 92 92 92 6 6 6 6 5 5 5 5 5 5 5 5 4 4 4 4 4 4 4 4 6 6 6 6 3 3 3 3 69 69 69 69 65 65 65 65 65 65 65 65 6 6 6 6 6 6 6 6 6 6 6 6 5 5 5 5 52 52 52 52 52 52 52 52 46 46 46 46 45 45 45 45 45 45 45 45 3 3 3 3 3 3 3 3 36 36 36 36 36 36 36 36 36 36 36 36 33 33 33 33 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 2 2 2 2 2 2 25 25 25 25 25 25 25 25 25 25 25 25 22 22 22 22 22 22 2 2 2 2 2 2 2 2 2 2 2 2 4 4 4 4 3 3 3 3 3 3 3 3 3 3 3 3 2 2 2 2 9 9 9 9 6 6 6 6 6 6 6 6 5 5 5 5 4 4 4 4 9 9 9 9 9 9 9 9 9 9 96 96 96 96 93 93 93 93 9 9 9 9 5 5 5 5 5 5 5 5 5 5 5 5 2 2 2 2 4 4 4 4 3 3 3 3 2 2 66 66 66 66 65 65 65 65 65 65 65 65 65 65 65 65 6 6 6 6 6 6 6 6 5 5 5 5 5 5 5 5 56 56 56 56 56 56 56 56 53 53 53 53 53 53 53 53 5 5 5 5 5 5 45 45 45 45 42 42 42 42 4 4 4 4 4 4 4 4 4 4 4 4 3 3 3 3 34 34 34 34 33 33 33 33 32 32 32 32 32 32 29 29 29 29 26 26 26 26 25 25 25 25 2 2 2 2 6 6 6 6 3 3 3 3 5 5 5 5 2 2 Figure 2: The spherical Apollonian circle packing (,,,2) - 45 2 9 6 45 2 9 6 3 9 99 9 99 6 6 9 2 6 99 45 2 9 6 45 2 9 6 3 9 99 9 99 6 6 9 2 6 99 45 2 9 6 45 2 9 6 3 9 99 9 99 6 6 9 2 6 99 2 9 2 9 3 9 9 9 2 9 45 2 9 3 9 9 9 2 45 2 9 45 2 9 6 3 9 9 6 6 9 2 6 3 3 3 9 3 3 3 3 3 3 9 3 9 9 9 3 3 3 3 3 3 3 2 9 2 9 3 9 9 9 2 9 45 2 9 3 9 9 9 2 45 2 9 45 2 9 6 3 9 9 6 6 9 2 6 3 3 3 9 3 3 3 3 3 3 9 3 9 9 9 3 3 3 3 3 3 3 2 9 2 9 3 9 9 9 2 9 45 2 9 3 9 9 9 2 45 2 9 45 2 9 6 3 9 9 6 6 9 2 6 3 3 3 9 3 3 3 3 3 3 9 3 9 9 9 3 3 3 3 3 3 3 2 9 2 9 3 9 9 9 2 9 45 2 9 3 9 9 9 2 45 2 9 45 2 9 6 3 9 9 6 6 9 2 6 3 3 3 9 3 3 3 3 3 3 9 3 9 9 9 3 3 3 3 3 3 3 45 2 9 6 45 2 9 6 3 9 99 9 99 6 6 9 2 6 99 45 2 9 6 45 2 9 6 3 9 99 9 99 6 6 9 2 6 99 45 2 9 6 45 2 9 6 3 9 99 9 99 6 6 9 2 6 99 Figure 3: The hyperbolic Apollonian circle packing (,,,) 4

uncovered in this work. They do occur in the hyperbolic Apollonian packing case k = 4, where we show there are exactly two exceptional orbits, labeled by the hyperbolic Descartes quadruples (,,, 2) and (,,, ), respectively. We give a geometric interpretation of these exceptional hyperbolic Apollonian packings. As examples, Figure 2 shows the spherical (k = 4) Apollonian packing with root quadruple (,,, 2), after stereographic projection. Figure 3 shows the hyperbolic (k = 4) Apollonian packing with root quadruple (,,, ), using the unit disc model of the hyperbolic plane. For more on the geometry of Apollonian packings in spherical and hyperbolic space consult []. In 4, we count the number N root (4m, n) of root quadruples a = (a, b, c, d) with Q D (a) = 4m having smallest member a = n. We give a formula for this number in terms of the class number of (not necessarily primitive) integral binary quadratic forms of discriminant 4(n 2 m) under GL(2, Z)-equivalence. The class number interpretation applies only when n 2 > m. For certain m > there may exist root quadruples with parameters n 2 m, and information on them is given in Theorem 3.3 in 3. For the hyperbolic case the only value not covered is n =. Associated to it is an infinite family of distinct root quadruples {(,, c, c) c }. Figure 3 pictures the Apollonian packing with root quadruple (,,, ). The class number equivalence allows us to derive good upper bounds for the number of such root quadruples with smallest value a = n as n, namely N root (4m, n) = O ( n(log n)(log log n) 2). If m = ±, then these bounds are interpretable as bounds on the integral spherical and hyperbolic packings with boundary an enclosing circle of (spherical or hyperbolic) curvature n. In 5 we investigate congruence restrictions on the integer curvatures which occur in a packing, for the case of spherical and hyperbolic packings, i.e., k = ±4. We show that there are always non-trivial congruence conditions modulo 2 on the set of integers that can occur in a given packing. It seems reasonable to expect that such congruence conditions can only involve powers of the primes 2 and 3 and that all sufficiently large integers which are not excluded by these congruence conditions actually occur. Various open problems are raised at the end of 4 and in 5. In addition, in the case of Euclidean Apollonian packings, it is known that there are Apollonian packings which have stronger integer properties, involving the centers of the circles as well as the curvatures. These were studied in Graham et al. [5], [6], and []. It remains to be seen if there are analogues of such properties (for circle centers) in the spherical and hyperbolic cases. Acknowledgments. Much of this work was done while the authors were at AT&T Labs- Research, whom the authors thank for support. N. Eriksson was also supported by an NDSEG fellowship. The authors thank the reviewer for helpful comments. 2. Integral Descartes Quadruples The Descartes quadratic form Q D is the quaternary quadratic form Q D (w, x, y, z) = 2(w 2 + x 2 + y 2 + z 2 ) (w + x + y + z) 2. (2.) 5

Its matrix representation, for v = [w, x, y, z] T, is Q D (v) = v T Q D v = v T v. This form is indefinite with signature (+, +, +, ). We consider integral representations of an integer k by this quaternary quadratic form. For an integer quadruple v = (w, x, y, z) Z 4, Q D (w, x, y, z) or 3 (mod 4), according to the parity of w + x + y + z. We define the Euclidean height H(v) of a (real) quadruple v = (w, x, y, z) to be H(v) := (w 2 + x 2 + y 2 + z 2 ) /2. Notice that we reserve the usual notation, v, for another meaning in 3. We relate integer representations of even k of the Descartes form to integer representations of k 2 of the Lorentz form Q L (W, X, Y, Z) = W 2 + X 2 + Y 2 + Z 2. in Lemma 2. below. The relation only works for even k, so in this section we consider only the case k (mod 4), so that Q D (w, x, y, z) = k = 4m. (2.2) The Lorentz form has the matrix representation, for v = [W, X, Y, Z] T, Q L (v) = v T v. The Descartes form and Lorentz form are related by where J = 2 2Q L = J Q D J T, (2.3) Notice that J 2 = I. Let N L (k, T) count the number of integer representations of k by the Lorentz form of Euclidean height at most T and let N D (k, T) denote the number of solutions of (2.2) of Euclidean height at most T. Lemma 2.. The mapping (W, X, Y, Z) T = J (w, x, y, z) T gives a bijection between real solutions of Q D (w, x, y, z) = 4r and real solutions of Q L (W, X, Y, Z) = 2r for each r R, and this bijection preserves the Euclidean height of solutions. In the case where r = m Z this bijection restricts to a bijection between integer representations of 4m by the Descartes form and integer representations of 2m by the Lorentzian form. In particular, for all integers m, N D (4m, T) = N L (2m, T).. 6

Proof. There is a bijection on the level of real numbers, by (2.3), since J is invertible, and Q D (w, x, y, z) = 4r if and only if Q L (W, X, Y, Z) = 2r. A calculation using J 2 = I shows that H(w, x, y, z) = w 2 + x 2 + y 2 + x 2 = W 2 + X 2 + Y 2 + Z 2 = H(W, X, Y, Z). Now suppose that r = m Z. The mapping takes integral solutions (w, x, y, z) to integral solutions (W, X, Y, Z) because all integral solutions of Q D (w, x, y, z) = 4m satisfy w + x + y + z (mod 2), as can be seen by reducing the Descartes equation (2.2) modulo 2. In the reverse direction integral solutions go to integral solutions because all solutions of Q L (w, x, y, z) = 2m have W + X + Y + Z (mod 2), similarly. Representation of integers by the Lorentz form has been much studied; see Radcliffe and Tschantz []. Their results immediately yield the following result. Theorem 2.2. For each nonzero integer m, there is an explicitly computable rational number c(2m) such that π N D (4m, T) = c(2m) L(2, χ 4 ) T 2 + o(t 2 ), (2.4) in which L(2, χ 4 ) = n= ( ) n (2n + ) 2.959. We have c( 2) = 3 4 and c(2) = 5 4. Proof. From Lemma 2. the problem of counting integral solutions to Q D (w, x, y, z) = 4m of height at most T is equivalent to counting the number of integral solutions to Q L (W, X, Y, Z) = 2m of Euclidean height at most T. We use asymptotic formulae of Radcliffe and Tschantz for the number r(n, k, T) of solutions to the Lorentz form X 2 +X2 + +X2 n = k with X T, for any n 2 for any fixed nonzero k. We take n = 3, and their formula for k < in [, Theorem 3, p. 55] is r(3, k, T) = Vol(S2 ) δ(3, k)t 2 + O(T 3/2 ), (2.5) 2 in which Vol(S 2 ) = π and δ(3, k) is a density constant for the representation in the sense of Siegel []. We need asymptotics for the number of solutions s(n, k, T) to the Lorentz form Q L (W, X, Y, Z) = k of Euclidean height below T, which is given by ( ) s(n, k, T) := r n, k, 2 (T 2 k). The asymptotic formula (2.5) yields s(3, k, T) = Vol(S2 ) δ(3, 2m)T 2 + O(T 3/2 ). (2.6) 4

Their result [, Theorem 2, p. 5] evaluates the constant δ(3, k) in terms of the value of an L-function, as δ(3, k) = ( ) δ p (3, k) ( ( 4 p )p 2 ) L(2, χ 4 ), p k in which each δ p (3, k) is an effectively computable local density which is a rational number. We now set k = 2m, and obtain a formula of the desired shape (2.4), with ( ) c(2m) = δ p (3, 2m) 4 ( ( 4. p )p 2 ) Radcliffe and Tschantz [, Theorem 4, p. 5] also obtained an asymptotic formula for solutions to the Lorentz form with k >, which gives r(3, k, T) = Vol(S2 ) δ(3, k)t 2 + o(t 2 ). 2 We derive a similar asymptotic formula for s(n, k, T) (without explicit error term), by setting k = 2m, and proceeding as above. The particular values c( 2) = 3 4 and c(2) = 5 4 are derived from Table II in Radcliffe and Tschantz [, p. 52], using k = ±2. Remarks. () The case k = exhibits a significant difference from the pattern of Theorem 2.2. In [, Theorem 2.] it was shown that π 2 N D (, T) = 4 L(2, χ 4 ) T 2 + O(T(log T) 2 ). That is, the coefficient c() = π 4 is transcendental. (2) Theorem 2.2 implies that the number of hyperbolic Descartes quadruples of Euclidean height below T is asymptotically 5 3 the number of spherical Descartes quadruples of height below T, as T. That is, lim T 3. Reduction Theory and Root Quadruples The results of this section apply to the general case N D (4, T) N D ( 4, T) = 5 3. (2.) Q D (w, x, y, z) = k, (3.) with k or 3 (mod 4) an integer. We introduce the Apollonian group, and present a reduction procedure which, given an integral Descartes quadruple, uses the action of the Apollonian group to transform it to a reduced quadruple, which is minimal according to a certain measure. The reduced quadruples then classify integral Apollonian circle packings, generally uniquely, but up to a finite ambiguity in some exceptional cases.

3.. Apollonian Group In [] and [] Apollonian circle packings were specified in terms of the set of Descartes configurations they contain. This set of configurations completely describes the packing, and it was observed there that, in a suitable coordinate system, they form as the orbit of any single Descartes configuration in the packing under the motion of a discrete group, the Apollonian group. Definition 3.. The Apollonian group A = S,S 2,S 3,S 4 is the subgroup of GL(4, Z) generated by the four integer 4 4 matrices 2 2 2 S =, S 2 = 2 2 2, S 3 = 2 2 2, S 4 =. 2 2 2 The Apollonian group is a subgroup of the integer automorphism group Aut(Q D, Z) of the Descartes form under congruence, which is the largest subgroup of GL(4, Z) which leaves Q D invariant; that is, U T Q D U = Q D, for all U A, (3.2) a relation which needs only be checked on the four generators S i. In particular it preserves the level sets Q D (v) = k. It acts on all (real) Descartes quadruples v = (a, b, c, d) T (viewed as column vectors) via matrix multiplication, sending v to Uv. The group Aut(Q D, Z) is very large, and can be put in one-to-one correspondence with a finite index subgroup of the integer Lorentzian group O(3,, Z) (using the correspondence (2.3) in 2). The Apollonian group A is of infinite index in Aut(Q D, Z), and it has infinitely many distinct integral orbits for each integer k or 3 (mod 4), the values for which integral solutions exist. Geometrically, the generators S i in A correspond to inversions with respect to a circle passing through three intersection points in a Descartes configuration. This inversion gives a new Descartes configuration in the same packing, leaving three of the circles fixed; see [5, Section 2]. In particular the group can be viewed as acting on column vectors v = [a, b, c, d] T giving the curvatures in a Descartes configuration, converting it to the curvatures of another Descartes configuration in the packing. The generators S i allow us to move around inside the packing, from one Descartes configuration to a neighboring configuration. From (2.) and (3.) we see that if the curvatures a, b, c of three touching circles are given, then the curvatures of the two possible circles which are tangent to these three satisfy d, d = a + b + c ± 4(ab + bc + ac) + k. 9

Therefore d+d = 2(a+b+c). If we begin with circles with curvatures a, b, c, d, the curvature d of the other circle which touches the first three is d = 2(a + b + c) d. The Apollonian group action corresponding to this sends (a, b, c, d) to (a, b, c, d ), which is the action of S 4. In particular, if we start with an integer quadruple, this procedure will only create other integer quadruples. This group is studied in Aharonov [], Graham et al. [5], [6] and Söderberg [9]. Definition 3.2. An integral Descartes ensemble A[v] is an orbit of the Apollonian group A acting on an integral quadruple v = (w, x, y, z) T Z 4. That is, A[v] := {Uv : U A}. All elements x A[v ] are integer quadruples satisfying Q D (x) = Q D (v ) = k. We are most interested in the case L(v) := w +x+y +z (mod 2), where k = 4m. For the cases m =, such ensembles give the set of Descartes quadruples in an integral spherical (resp. hyperbolic) Apollonian circle packing. This section addresses the problem of classifying the orbits of the Apollonian group acting on the set of all integral solutions Q D (v) = k for a fixed value of k. 3.2. General Reduction Algorithm We present a reduction procedure which, given an integral quadruple v, finds an element of (locally) minimal size in the orbit A[v ]. We will show that every orbit contains at least one and at most finitely many reduced elements. In most cases the minimal quadruple is unique and is independent of the starting point v of the reduction procedure, and this is the case for root quadruples defined below. However when k > there sometimes exist exceptional integral Descartes ensembles containing more than one reduced element, and the outcome of the reduction procedure depends on its starting point in the orbit. We show that for each fixed k there are in total at most finitely many such exceptional orbits. The general reduction procedure given below greedily attempts to reduce the size of the elements in a Descartes quadruple v := (a, b, c, d) T by applying the generators S i to decrease the quantity v := a + b + c + d. General reduction algorithm. Input: An integer quadruple (a, b, c, d). () Order the quadruple so that a b c d. Then test in order i 4 whether some S i decreases v := a + b + c + d. For the first S i that does, apply it to produce a new quadruple, and continue. (2) If no S i strictly decreases v, halt. Declare the result a reduced quadruple.

This reduction procedure is slightly different from the reduction algorithm used in part I [] for the case k =. The part I reduction procedure applied only to quadruples with L(a) = a + b + c + d >, and tried to decrease the invariant L(a) = a + b + c + d at each step, halting if this could not be done. Although the general reduction algorithm uses a different reduction rule, one can show in this case that it takes the identical sequence of steps as the reduction algorithm in part I; see the remark at the end of 3.3. Thus the general reduction algorithm can be viewed as a strict generalization of the algorithm of []. We will classify reduced quadruples as either root quadruples or exceptional quadruples, as defined in the following theorem. Theorem 3.. The general reduction algorithm starting from any nonzero integer quadruple a = (a, b, c, d) always halts in a finite number of steps. Let the reduced quadruple at termination be ordered as a = (a, b, c, d) with a b c d. Suppose L(a) = a + b + c + d. Then exactly one of the following holds: (i) The quadruple a satisfies In this case we call a a root quadruple. (ii) The quadruple a satisfies a + b + c d >. (3.3) a + b + c < d. (3.4) In this case we call a an exceptional quadruple. If a is a reduced quadruple such that L(a) <, then a := ( d, c, b, a) is a reduced quadruple with L(a ) >. We call such a a root quadruple (resp. exceptional quadruple) if and only if a is a root quadruple (resp. exceptional quadruple). Proof. The integer-valued invariant a := a + b + c + d strictly decreases at each step of the reduction algorithm. It is nonnegative, so the process stops after finitely many iterations. Now suppose that a is reduced and L(a) = a + b + c + d. We must show that (i) or (ii) holds. Now d > because a is nonzero. The condition that a be reduced requires S 4 a a, and since S 4 a = (a, b, c, d ) with d = 2(a + b + c) d, this condition is d d = d. Now d d gives a + b + c d which is (i), while d d gives a + b + c which is (ii). The definition of root quadruple formulated in Theorem 3. is not identical in form to the definition of root quadruple used in part I [] for the case k = 4m =. However they are equivalent definitions, since the reduction algorithms take identical steps, as remarked above. 3.3. Root Quadruples We first show that the reduction algorithm is well behaved for all orbits A[v] containing a root quadruple. Theorem 3.2. Let A[v] be a nonzero integer orbit of the Apollonian group, and suppose that A[v] contains a root quadruple a. Then:

() The quadruple a is the unique reduced quadruple in A[v]. (2) All values L(x) for x A[v] are nonzero and have the same sign. If this sign is positive, then the general reduction algorithm starting from any x A[v] applies only S 4 until the root quadruple is reached. Proof. It suffices to prove the result in the case when the root quadruple has L(a) = a+b+c+d, because the case L(a) < can be treated using a. Without loss of generality we may reorder the quadruple a b c d (since A is invariant under conjugation by elements of the symmetric group on 4 letters, represented as permutation matrices). Now the root quadruple condition (3.3) yields This implies that where the last inequality follows from the ordering. L(a) = a + b + c + d > a + b + c d >. (3.5) a + b d c, (3.6) Claim. Let b A[v] be a Descartes quadruple and let P σ b = (w, x, y, z) be its coordinates permuted into increasing order w x y z. Then these coordinates satisfy: Property (P): w + x. If b does not equal the given root quadruple a then these coordinates satisfy: Property (P2): < w + x + y < z. To prove the claim, we observe that every quadruple b a in A[v] can be written as b = S ik S ik S i a with each S ij {S,S 2,S 3,S 4 }, for some k, and with S ij S ij for 2 j k, since all S 2 i = I. We proceed by induction on the number of multiplications k. The case k = is the root quadruple a, which satisfies property (P) by (3.6). For the base case k = we must verify that properties (P) and (P2) hold for S j a for j 4, where a is the given root quadruple. Without loss of generality we may assume a = (a, b, c, d) has the ordering a b c d; a permutation of a merely permutes the four values S j a. Consider first S a = (a, b, c, d). We assert that the ordering of the elements of S a is To establish this we first show b c d < a. (3.) a := 2(b + c + d) a = (b + c + d) + (b + c + d a) > b + c + d. (3.) This inequality holds since b a from the ordering while d > and c from (3.5). This yields a > b + c + d (a + b) + d d, which establishes (3.). Property (P) for S a asserts that b + c, and this holds by (3.6). Property (P2) for S a asserts that < b + c + d < a, and the left inequality follows from b + c + d (a + b) + d >, using both (3.5) and (3.6), while the right inequality follows from (3.). This proves the base case for S a. The proofs 2

of the base cases S j a for j = 2, 3 are essentially the same as for S a. In these cases the one curvature that changes becomes strictly larger than d. Finally we treat S 4 a = (a, b, c, d ). The ordering that holds here is Indeed we have a b c d. d = 2(a + b + c) d = (a + b + c) + (a + b + c d) a + b + c d, (3.9) by (3.5). If d = d we stay at the root quadruple, so we may assume d > d in what follows. Property (P) for S 4 a asserts a+b, and this holds by (3.6). Property (P2) for S 4 a asserts < a + b + c < d. Now if a + b + c = d then d = d, so assuming d > d we must have a + b + c > d. Using this fact, we see that the inequalities in (3.9) are both strict, which gives the right inequality a + b + c < d. The left inequality a + b + c > holds by (3.5). Thus properties (P) and (P2) hold for S 4 a as well, or else we stay at the root quadruple. This verifies (P) and (P2) in all cases, and shows that if b = S j a a, then the largest coordinate in b is unique and is the coordinate in the j-th position. For the induction step, for k + given k, we suppose that b = S ik S ik S i a with b a, k, and we include in the induction hypothesis the assertion that the largest coordinate of b is unique and occurs in the i k -th coordinate position. Let b = (w, x, y, z) = P σ b denote its rearrangement in increasing order w x y z, where P σ is a 4 4 permutation matrix. The induction hypothesis asserts that (P) and (P2) hold for b, together with the strict inequality y < z. The induction step requires showing that properties (P) and (P2) hold for S j b for j 3, corresponding to a product of length k +, and that the new coordinate formed in S j b is its strictly largest coordinate. The case of multiplication by S 4 is excluded because it corresponds to choosing S ik+ = S ik. Indeed S 4 changes the largest coordinate, which S ik did at the previous step by the induction hypothesis, so that S ik+ := P σ S 4 P σ = S ik. The first case is S b = (w, x, y, z). We assert that Indeed x, y, z by property (P) for b and x y z < w. (3.) w = 2(x + y + z) w = (x + y + z) + (x + y + z w) > x + y + z, since property (P2) for b gives x + y + z > w + 2x + 2y w. Next property (P) for b gives x + y + z (w + x) + z z > y, whence w > x + y + z z and (3.) follows. Property (P) for S b asserts x + y, which holds since x + y w + x, using Property (P) for b. Property (P2) for S b asserts < x + y + z < w, both inequalities of which were shown above. The second case is S 2 b = (w, x, y, z). We assert that w y z < x, (3.) where we must show x > z. Now x = 2(w+y+z) x = (w+y+z)+(w+y+z x) > w+y+z since property (P2) for b gives w + y + z > 2w + x + 2y x. Next w + y w + x holds 3

by property (P) of b, so w + y + z z > whence x > z, and (3.) follows. Property (P) for S 2 b now asserts w + y, which holds since w + y + z z. Property (P2) for S 2 b now asserts < w + y + z < x, and both of these inequalities were verified above. Finally, the proof for S 3 b = (w, x, y, z) is similar, where one shows w x z < y. This completes the induction step, and the claim follows. To continue the proof, we observe that for any non-root quadruple b property (P2) implies that L(b) = (w + x + y) + z >. Thus all quadruples in the packing have L(b) >. We next show b is not reduced. Indeed property (P2) gives S 4 b = (w, x, y, z ) with < z = 2(w + x + y) z < z so that S 4 b < b. We conclude that the root quadruple is the unique reduced quadruple, which proves assertion (). To verify assertion (2), we must show that S j b b for j 3, while S 4 b < b. The last inequality is already done. Now S 3 b = (w, x, y, z) with y = 2(w + x + z) y 2(w + x) + 2(w + x + y) y y has S 3 b b. The argument showing S j b b if j =, 2 is similar. This proves (2). For Q D (a) = k with k fixed there are infinitely many distinct root quadruples. The next result determines various of their properties. Theorem 3.3. () Any root quadruple a = (a, b, c, d) with Q D (a) = k and a b c d and L(a) > satisfies In addition, if k >, then and if k then b c d. (3.2) a <, (3.3) a k. (3.4) (2) For each pair of integers (k, n) there are only finitely many root quadruples a with Q D (a) = k and a = n, with the exception of those pairs (k, n) = (4l 2, l) with l. In each latter case there is an infinite family of root quadruples {( l, l, c, c) : c max(l, )}. Proof. () The condition (3.3) implies a + b d c, so that b, and the ordering gives (3.2). We view the Descartes equation Q D (a) = k as a quadratic equation in a, and solving it gives a = b + c + d ± 4(bc + bd + cd) + k The ordering and (3.2) give a b b+c+d, which shows that the minus sign must be taken in the square root, and a = b + c + d 4(bc + bd + cd) + k (3.5) 4

Using (3.3) we have 2(bc + bd + cd) = (bc + d(b + c)) + (bc + bd + cd) (b 2 + d(d a) + (bc + bd + c 2 ) = b 2 + c 2 + d 2 + [bc + d(b a)], which gives As a consequence (3.5) yields For k > this immediately gives 4(bc + bd + cd) (b + c + d) 2 + [bc + d(b a)]. a (b + c + d) (b + c + d) 2 + k. (3.6) a b + c + d (b + c + d) 2 + <, which is (3.3). For k we must have w := b+c+d k so that the square root above is real, whence (3.6) gives a max [w w 2 + k] = k, w k which is (3.4). Indeed the function f(w) = w w 2 + k on this domain is maximized at its left endpoint w = k, since f (w) = w w 2 + k < for w > k. Root quadruples with a > do occur for some negative k. For example v = (2, 3, 4, ) is a root quadruple for k = Q D (v) = 96. (2) We take the values Q D (a) = k and a = n as fixed. To show finiteness, it suffices to bound c above, in terms of k and n. The conditions a + b + c d and b c d yield d 3c, b c and 2c a c. We have d = a + b + c x for some x, and substituting this in (3.5) gives This simplifies to so we must have a = a + 2b + 2c x 4(b + c)(a + b + c x) + 4bc + k. = 2b + 2c + x (2b + 2c x) 2 + ( x 2 + 4ab + 4ac + 4bc + k), Now d c + (a + b x) c gives x 2 = 4ab + 4ac + 4bc + k. (3.) a + b x. 5

Squaring the left inequality and rearranging gives a 2 + 2ab + b 2 x 2 = 4ab + 4ac + 4bc + k, which yields (a b) 2 4(a + b)c + k (3.) We have c b, and holding a and k fixed and letting b grow, one sees that the right side grows at least as fast as 4b 2 while the left side grows like b 2, so one concludes that b is bounded above. One can now check that (3.) implies b 3 a + k. This bound shows that the left side of (3.) is bounded above, yielding 4(a + b)c (4 a ) 2 + k. We have a + b x, and whenever a + b > then this inequality bounds c above, with c ( a ) 2 + k, as was required. There remains the case a+b = x =. Letting a = l, we have b = l and d = a+b+c x = c. Thus we have the quadruple a = ( l, l, c, c) with the requirement c l. All of these are root quadruples except for l = c = which gives the excluded value (,,, ). Here Q(a) = 4l 2, and for each l we obtain the given infinite family of root quadruples. Remark. For k the upper bound a k in Theorem 3.3() is not sharp in general. For the case k = 4 of spherical root quadruples, this upper bound gives a 2, but all spherical root quadruples satisfy the stronger bound a. To see this, observe that a = 2 can only hold with b + c + d = 2 in (3.6), and since b c d are nonnegative integers we must have b so a, a contradiction. Similarly a = gives b + c + d 5 2 in (3.6), with the same contradiction. The case k = does occur with the spherical root quadruple (,,, 2) pictured in Figure 2. Remark. We conclude this subsection by showing that the notions of reduction algorithm and root quadruple used here agree for k = with those used in part I []. The part I reduction procedure applied only to quadruples with L(a) = a + b + c + d >, and tried to greedily decrease the invariant L(a) = a + b + c + d at each step, halting if this could not be done. Although the general reduction algorithm uses a different reduction rule, in this special case it takes the identical series of steps as the reduction algorithm in part I, so defines the identical notion of root quadruple. Indeed, suppose k = and L(a) >. We will need a result from Theorem 3.4(3) below, which shows that there are no exceptional quadruples for k =. so the general reduction algorithm always halts at a root quadruple. Comparing Theorem 3.2(2) with Lemma 3. (iii) of [5] shows all the steps are identical. Namely, after reordering the curvatures in increasing order, both algorithms always apply S 4. Finally we check that the halting rules coincide, i.e., that a is minimized where L(a) is minimized. For both algorithms the minimal element in a root quadruple is non-positive, with the other three elements nonnegative (see Theorem 3.3() and [5, Lemma 3.(3)]). Furthermore the first nonpositive element encountered in either algorithm is never changed subsequently. Since the two algorithms coincide up to this point, and afterwards the two invariants remain in the fixed relation a = L(a) + 2 a, for fixed a, their halting criteria coincide. 6

3.4. Exceptional Quadruples We next consider orbits A[v] that contain exceptional quadruples. Theorem 3.4. Let A[v] be a nonzero integer orbit of the Apollonian group. () If A[v] contains an exceptional quadruple, then it contains elements v,v 2 with L(v ) > and L(v 2 ) <. (2) There can be more than one exceptional quadruple in A[v]. (3) Exceptional quadruples can exist only for k. For each k there are only finitely many exceptional quadruples with Q D (a) = k, all with H(a) 2 2k 2. Proof. () Let a = (a, b, c, d) be an exceptional quadruple in A[v], with a b c d. It suffices to treat the case L(a) = a + b + c + d, since we can otherwise apply the argument to a. Now Theorem 3. gives a + b + c and d >. Take v = S a = (a, b, c, d) T and L(v ) = 3(a + b + c + d) 4a > if a <, while if a = then a = b = c = and so d > and L(v ) > in this case. Next, take v 2 = S 4 a = (a, b, c, d ). Then L(v 2 ) = 3(a + b + c) d < if d >, while if d = then a = b = c = d =, a contradiction. (2) The quadruple a = ( 2, 3, 5, 2) with a = 22 and Q D (a) = k = 36 is an exceptional quadruple. Its neighbors are ( 2, 3, 5, 32), ( 2, 3, 9, 2), ( 2,, 5, 2), and (6, 3, 5, 2). Now ( 2, 3, 9, 2) has a neighbor b = ( 2, 3, 9, 4) which is also an exceptional quadruple. (3) Let k be fixed. Let a = (a, b, c, d) be an exceptional quadruple ordered with a b c d. By hypothesis We will show that necessarily k and that S j (a) 2 a 2 for j 4. (3.9) H(a) 2 = a 2 + b 2 + c 2 + d 2 2k 2. (3.2) The minimality property (3.9) and the bound (3.2) are both invariant under reversing all signs, so by multiplying by if necessary we may suppose that L(a) = a+b+c+d without loss of generality. Since (a, b, c, d) (,,, ) we have d >. The condition S 4 a 2 a 2 requires that either (i) a+b+c d or (ii) a+b+c. By Theorem 3. exceptional quadruples correspond to case (ii), and those with L(a) > are characterized by the condition d > a + b + c. This condition necessarily implies a. We consider three exhaustive cases. In each case, we change notation so that a, b, c are nonnegative; for example, if a b c d, then we multiply a by so that a = ( a, b, c, d). Case. a b c < d. We have k = Q D (a) = a 2 + b 2 + c 2 + d 2 2ab 2ac 2bc + 2ad + 2bd + 2cd = a 2 + b 2 + c 2 + d 2 + 2b(d a) + 2a(d c) + 2c(d b) a 2 + b 2 + c 2 + d 2 = H(a) 2.

Since a (,,, ) we infer k, and also (3.2) holds in this case. Case 2. a b c d. We have k = Q D (a) = a 2 + b 2 + c 2 + d 2 2ab + 2ac + 2bc + 2ad + 2bd 2cd = (a b) 2 + (c d) 2 + 2ac + 2bc + 2ad + 2bd. Every term on the right is nonnegative, which implies k. This gives the additional information (since a b and d c) that b a b + k and c d c + k. as well as ac, bc, ad, bd k 2. If either of a, b is nonzero then each of c, d is at most k 2. Similarly if either of c, d are nonzero then a, b are at most k 2. Now suppose both a = and b =. Then k = (c d) 2, and there is a reduction step that takes (,, c, d) (,, c,2c d), whence 2c d d, so that either c = d, or c =. The case c = d gives a root quadruple, which is excluded, and in the remaining case (,,, d) we have k = d 2 >, and then c, d k, and in all these subcases H(a) 2 = a 2 + b 2 + c 2 + d 2 k 2 holds. The argument if c = d = is similar. In all these cases we infer that k >, and that (3.2) holds. Case 3. a b c d. We have k = Q D (a) = a 2 + b 2 + c 2 + d 2 + 2ab + 2ac 2bc + 2ad 2bd 2cd = (a + b) 2 + (c d) 2 + 2(a b)(c + d) (3.2) In the exceptional case we must have a + b + c, so that a b + c. This gives a b, whence all terms on the right side of (3.2) are nonnegative, and one is strictly positive so k >. Also (3.2) gives a, b k, and using a b + c it also gives It follows that k (c d) 2 + 2c(c + d) 3c 2 + d 2. H(a) 2 = a 2 + b 2 + c 2 + d 2 2k 2k 2, and (3.2) holds. On comparing Theorem 3.3 and Theorem 3.4 we see that: An integer Apollonian group orbit A[v] contains an exceptional quadruple if and only if it contains quadruples with L(x ) > and L(x 2 ) <. We conclude this section by determining the exceptional quadruples for spherical and hyperbolic Apollonian packings, i.e., for k = ±4. There are no exceptional quadruples for spherical packings (k = 4) by Theorem 3.4 (3), so we need only treat the hyperbolic case.

Theorem 3.5. For k = 4 the exceptional orbits A[v] are exactly those containing an element that has a zero coordinate. There are exactly two such orbits, one containing two exceptional quadruples (,,, ±2), and the other containing the exceptional quadruple (,,, ). Proof. By Theorem 3.2(3), there are finitely many exceptional quadruples for k = 4. From (3.2), we see that if (a, b, c, d) is an exceptional quadruple, then a 2 + b 2 + c 2 + d 2 32. A computer search shows that there are exactly quadruples with a b c d satisfying this bound along with a + b + c + d. They are {(,,, ), (,,, 2), (,,, ), (,, 2, 2), (,, 3, 3), (,,, 3), (,, 2, 4)}. It is easy to check that the first five are all reduced while the last two are not. Furthermore, the third, fourth and fifth quadruples are root quadruples, so may be discarded. Thus only (,,, ), (,,, 2) remain, and these are exceptional. The orbit of (,,, 2) also contains the reduced quadruple ( 2,,, ); see Figure 4. The packing with exceptional quadruple (,,, ) is shown in Figure 5. If fact, if A[v] does contain a circle of curvature, then it necessarily contains an exceptional quadruple. Setting a =, the orbit contains a integer quadruple (, b, c, d) with F(b, c, d) := b 2 + c 2 + d 2 2(bc + bd + cd) = 4. (3.22) Without loss of generality, assume that the elements are ordered b c d and that b. We claim that necessarily b =. Case. b, c >, d >. Now f(b, c, d) = b 2 + c 2 + d 2 + 2 bc + 2 bd 2 cd = b 2 + (c d) 2 + 2 bc + 2 bd If b, then c, d also and F(b, c, d) 2 + 2 +2+2 = 5 which gives us a contradiction. So we must have b =. Case 2. b, c, d >. Here b c d gives bd > bc, so F(b, c, d) = b 2 + c 2 + d 2 + 2 bd + 2 cd 2 bc b 2 + c 2 + d 2 + 2 cd If b, then so are c and d, so F(b, c, d) 5, a contradiction. Thus b =. Case 3. b, c, d. First, apply the reduction algorithm to (, b, c, d). Notice that the first coordinate always stays because S can never make it any smaller. The algorithm halts when S 4 can no longer reduce b + c + d, that is, when d d. Combining this with d+d = 2(b+c), we get d > b+c. Therefore b 2 + c 2 + d 2 b 2 + c 2 + (b + c) 2 = 2b 2 + 2bc + 2c 2. Since bc, bd, cd, we have bc + bd + cd b 2 + bc + c 2. Thus, F(b, c, d) = b 2 + c 2 + d 2 2(bc + bd + bd) 9

and hence cannot satisfy (3.22), a contradiction. So there are no solutions in this case. The claim b = is proved, so any quadruple with one element zero is contained in the same packing as some (,, c, d). Now solve 2(c 2 + d 2 ) = (c + d) 2 + 4 and we see that we must have (,, c, d) = (,, n, n + 2) for some n Z. Reduction by the Apollonian group changes (,, n, n + 2) (,, n, n 2), and therefore there are only two packings containing a curvature zero circle, those are the packing containing (,,, 2) and the packing containing (,,, ). To understand the geometric nature of the exceptional hyperbolic packings, we identify the real hyperbolic plane H with the interior of the unit disk, with ideal boundary the circle of radius centered at the origin. Recall that the curvature of a hyperbolic circle is given by coth r, where r is the hyperbolic radius of the circle. For circles contained in the real hyperbolic plane, r is positive and cothr = er + e r e r e r with equality if and only if r =. However we will allow hyperbolic Apollonian circle packings which lie in the entire plane. We have a second copy of the hyperbolic plane which is the exterior of the closed unit disk, and we use the convention that (positively oriented) circles entirely contained in the exterior region have the sign of their curvature reversed, in which case cothr ranges from to. Euclidean circles that intersect the ideal boundary (unit circle) are treated as hyperbolic circles of pure imaginary radius, and these cover the remaining range coth r. A hyperbolic circle of curvature is a hyperbolic geodesic, which corresponds to a Euclidean circle which intersects the ideal boundary (unit circle) at right angles, and a hyperbolic circle of curvature is a horocycle, i.e., a circle tangent to the ideal boundary. The two exceptional integral hyperbolic packings are pictured in Figures 4 and 5, respectively. The pictures are not drawn to the same scale; in each one the dotted circle represents the ideal boundary of hyperbolic space, and is not a circle belonging to the packing. The hyperbolic packing (,,, 2) contains exactly three circles assigned hyperbolic curvature zero, while the hyperbolic packing (,,, ) contains infinitely many circles assigned hyperbolic curvature zero. 4. Distribution of Integer Root Quadruples In this section we restrict to the case k = 4m. We enumerate root quadruples v = (w, x, y, z), and without essential loss of generality we only consider such quadruples with L(v) = w + x + y + z >. The root quadruples are classified according to the size of their minimal element, say w = n, where we suppose n >. In the spherical and hyperbolic cases k = ±4 this corresponds geometrically to characterizing the distinct integral Apollonian packings that have an outer enclosing circle of signed curvature n. Definition 4.. Let N root (k; n) count the number of integer root quadruples v = (w, x, y, z) to Q D (v) = k with L(v) = w + x + y + z > and w = n. In [, Sec. 4] the number N root (, n) of Euclidean root quadruples was interpreted as a class number for binary quadratic forms under a GL(2, Z) action. This interpretation was discovered starting from an exact formula for the number of (Euclidean) root quadruples having 2

-4-2 -552-4 -52-3 -444-66 -6-56 -92-52 -5-52 -6-56 -564-4 -264-32 -566-2 -42-26 -96-32 -39-6 -3-6 -44-432 -24-66 -2 3-2 -52-99 -35-44 -2-43 -52-43 -525-6 -95-2 -255-323 -399-44 3-52 -44-399 -323-255 -2-95 -6-43 -2-99 -35 - -25-6 -2-255 -6-292 -696-6 -6-5 -399-95 - -23-6 -436-32 -544-26-646-336 -252 - -6-66 -3-26 -4-46 -596-9 -46-6 -26-6 -5-56 -44-52 -646-652 - -9-4 -22-264 -32-65 -44-255 -364-42 -2-35 -6-232 -39 - -99-6 -255-3 -5-544 -62-352 -6-56 -656-222 -452-64 -6-4 -92-66 -54-432 -56-296 -426-564 -22-62 -442-26 -52-6 -95-59 -55-352 -2-53 -29-36 -2-95 -2-63 -9-6 -522-22 -54-46 -6-33 -532-6 -6-2 -33-2 -432-54 -66-92 -4-352 -234-444 -4-4 -6-44 -6 3-525 - -425-66-23-9 -53 - -43-64 -42-36 -99-69 -4 - -2-6 -252-336 -4-6 -64-62 -544-6 - -66-42 -364-96 -34-32 -264-436 -26-544 -646-4 -32-6 - -92-264 -32-2 -4-2 - -396-2 -54-252 -34-22 -9-4 - -646-652 -65-2-365-2 -36 - -52-2 -465-232 -6-56 -54 - -345-55 - -5-55 -6-29 -44-64 -6-6 -2 - - -43-6 -323-54 -23-6 -46-459 -9-4 -65-96 -2-63 -2-44 -5-36 -56-2 -55-99 -2-256 -2-4 -4-32 - -396-52 -6-34 -62-39 -4-4 -64-4 -39-63 -696-292 -6-29 -2-2 -465-3 -552-4 -52-52 -26-52 -6-66 -444-56 -6-22 -522-2 -6-33 -2-36 -3-32 -9-2- -696-3 -6 3-5 -56-33 -6-55 -5-9 -45-2 -96-65 -4 - - - -2-35 -66-2 -24-432 -23-36-363-34 -6-33 -56-63 - -99-39 -39-44 -264-52 -9-5 -3-3 -42-2 -32-56 -264 6-4 -564-56 -4-32 -6-32 -236-42 -2-2 - -56-2 -95-645 -399-52 -65-4 -54-53 -32-32 -9-23-325-435 - -3-5 - -63-35 - -6-5 -45-26 -442-62 -632-596-222-44 -3-2 -62-2 -2-6 -6-52 -52-5 -92-2 -99-63 - -32 - -3-4 -252-2-54-2-4 - -56-2 -396-34 -6-3 -9-32 -2-34 -62-2 -56-6 -6-2 -2-3 - -4-426 -22-6 -564 - -36-532 -46-33 -6-54 -2-42 - -2-2 -236-42 -2-32 -3-44 -632-222 -596-444 -4-4 -234-352 -4-336 -465-35-253--5-32 5 3-6 -564-22 -426 6-56 -32-264 -544-6-9-39 -633 9 - -6-5 -6 - -9-96 -26-3 -52-2 - -5 - -35-532 -33-54 -6-46 -3 - -4-4 -2-4 -6-66 -4-444 -4-234 -352-4 -4-564 -56-339 -44-6 39-6 -3-6 -3-44 -25 39 6-44 6 33-3 -3-5 -26-26 -442-62 -4-6 -2-66 -4 - -2-432-24-66 -36-65 -55-393 -4-99 -56-52 33-4 -23-99 - -4-423 -36-225 -336-469 -6-325 -26-29 -399-34 9-4 -3-6 -596-46 -9-46 -4-34-252-54 -2-52 -6-66-444-3-4-552 -32-43--9-29 4 2 63 55 45 5 35 55 2 64-65 -96-429 -59-56 -353 6 5 6 9 2 5-2 -5 65-4 35 5-2 - - -264-2 -35-32 - 69 63 - -5-3 -439-2 45-696 -292-26 -6-6 -36-5 - -34-53 -6 5-52 -4-62-256-2 -4-65 -32-39 -96-33 -6-225 -2 5-26 5 3-6 -52-255 -65 63 35-5 5 - -32-364-42-544-62-64-6-4 -4-264 -652-22 -56 --9-52-396-44-646-5 -3 - -39-34-6-6 -32-296 -56-4 -5-64 -26-544 5 3-32 -9-3 - -32-2 -33-2 -6-6 -5-22 -522-36 - -2-646 -32-436-26-544 -452-222-56-656 2 42-2 -2-236 - -56-2 -66 56 3 36 2-2 4 6-42 -32-4 - -3-6 -252-336-432-54-66-92 -44-52-6-2-4-96 -3-55 -96-2 -4-399 -6-9 -45-56 99-5 63 3 35-95 -9-2 -5-39 -2-5 3 - -3 - -3-3 9 45 55 65 4 2 64-29 6 4 - -5 56 33 4 6 2 36 3 56 42 2-36 - -66-2 -4-6 -4-96 -6 - -2-5 -4 2-69 -32-5 5 5 39 6 2 2 36 36 2 4 6-22 -2 - -6-4 -2-44 -44 - -4-4 -3-5 - -9-2 -23 2 9 5 3 4 4 9 32 32 36 42 2-36 - 6 4 2 3 56-66 -4-2 -6-4 -6-2-2-6 -62 3 56 2 36 6 4-4 - -3-29 -6-96 -35 - -5-2 - -5-69 -32-5 5 5-4 2 39 6 33 56 36 2 4 6-4-6-64-62-544 -42-364 -32-4 -264-652 -22 - -56-9 -646-44 -2 3-42 -32-2 -236-2 - -56-2 -66 - -336-252 -6-92-66-54-432 69 63-2 -5-39 -2-5 42 56-23 -4 2-95 -9 2 42 2 2 36 2 4 6 36-452 -222-56 -656-96-4-2-6-52 -44-3 -55-2 -9-6 65 4 2 64 55 99 9 45 3 35-3 -5 63 3-3 99-36 - -2-32 -9-3 -22-522 -5-646 -26-436-32-544 -45-56 - -32-96 -4-399 - -3-2 -33-2 -6-6 - -6-32 -4-39 -6-34 -296-56 -5-64 -26-544 3 5-396 -52-6 -26-6 -52-4 -256-62 -2-4 -6-52-99-255 -65-5 -36-696 -6-292 -32-65 -96-39 -33-6 -225-2 63 35-5 -3-5 - -5 - -34-53 -26 5 3-596 -46-9 -46-54-252-34 -2-4 -2-432-44-24 -66 - -52-4-3-444-66-6 -552-3 -439-6 5 5-264 -2-32 -35-2 45 63-65 -96-429 -59-56 -353 69 - - - -5-4-55-4 -6-32 -5-3 -3-26 -36 - -325-26 -29-399 -34-9- -43-29 -4-36 -423 55 2 64 63-26 -442-62 -4-6 -2-66 -4-4 3-2 -99-225 -336-469 -6 45 5 2 5 35 35 4 65 5-2 - - 2-56 9-3 -5 - -52-6 -3-6 -532-33 -6-54 -46-3 - -4-4 -2-6 -4-66 -4-352 -234-4 -4-444 -393-65 -4-564 -56-44 -339-44-3-25 33 9 6 39 6 39 33-96 -26-42 -2 - -2-2 -236-42 -2-32 -564-6 -22-426 -6-4 -444-4 -234-352 -4-2 -56-3 -44 6-56 -264-32 -3-52 -564-34 -426-252 -54-2 -62-6 -6-2 -2-46 -33-6 -532-54 -336-5 -32 - -4-2 -2-396 -34-9 -3-32 -2 - -36-544 -9-6 -39-633 -9 - -5-6 -2 - -5 - -35-52 -92-56 -632-222-596-44 -3-2 -2-6 -62-6 -236-4 - -42-3 -2-2 -2 - -56-2 --253-35-465 9-6 - 3 5-5-52-3 -4-4 -2-99 -2 - -63-264 -32 - -32-56 6-264 -4-564-56-6 -6-32-4-42 -2-95 -645-399-52-65 -4-435-325-23 -54-53 -63 - -35-45 - -5-5 -3 - -9-32 -32-6 -2-6 -33-2 -46-4-46-9 -596-66 -2-24 -432-44 -6-66 -444-3 -4-552 -52-56 -52-26 -52-36 - -2-32 -23-36 -363-34 -22-522 -6-6-26-3 -6 3-39 -6-33 -9-3 -344-292 -696-6 -62-299-2-29 -336-3 -56-63 - -99-256 -4-2 -4-255-4-6-52-5 -4-39 -63-29 -2-465 -696-96 -65-4 -6-34 -452-396 -52-39 -4-4 -9-45 -2-656 -222-56 -56-2 -55-99 -2-32 -436-26-544-646 -396-2 -2-4 - -36-365 -46-23 -2-54 -252-6 -323-54 -6-96 -34-34 -32-264 -459-9 -4-96 -65-2 -36-69 -63-2 -6-66- -4-32 -42-364 -252-336 -4-6 -64-62 -544-65 --2-52 -2-465 -56-54- -345-55 - -5-44 -55-6 -6-64 -29-6 -2 - - -43-432 -54-66 -92-6 -2-6 -33-352 -234-4 -444-4 -6-44 -64-23 -66-42 -36-69 -99-4 -522-22 -92-2-296-56 -54-46 -6-33 -532-6 3-525 -425 - - -43 - -2-6 -53-9 -66-54 -432-336 -252-56 -222-656 -452-564 -426-52 - -6-66 -62-442 -26-544 -646-26 -436-52-26-26 -3-3 -5-64 -6-4 -59-95 -55-53 -29-2 -45-36 -95-2 -9-63 -6-544 -62-52 -4-46 -9-596 -46-32 -222-44 -3-632 -6-26 -6-5 -56-44 -646-652 - -9-4 -22-264 -32-364 -42-65 -44-255 -2-35 -352-65 -6-39 - - -6-232 -99-6 -255-52 -4-2 -256-4 -62-596 -45-22 -52-2 - - -552-52 -4-3 -444-66 -6-56 -564-4 -264-32 -56 6-44 -432-66-24-2 -6-292 -696-6 -6-5 -399-95 -23 - -6-56 -52-92 -3-6 -5-52 -2-42 -26-96 3-2 -52-6 -35-99 -2-255 -44-43 -2-52 -525-43 - -25-6 -6-95 -2-2 -99-35 -255-323 -399-44 3-2 -95-6 -43-52 -44-399 -323-255 -36-2 -256-4 -62-96 -26-52 -52-596 -6-222-44-3 -632-2 -34-96 -39-2 -2-39 -656-2 -222-452 -56-2 -3 - - -4-6 -4-52 -39-396 -2-36 -4-56 -2-6 -56-2 -39-96 -6-4 -26-6 -296-2 -46-6 -9-46-4-596 -6-2 -264-92 - -52-5 -56-92 -52-3 -2 - -4-26 - - -6-39 -6-3 -32-96 -26-6 - -32-39 -6-4 - -6-2 -4-44 -36-44 - -44-2 -4-6 - -2-22 -396-2 - -4-2 -2-52-26-96 -3 - -264-92 -56-2 -36-2 6 4 2 36 2 36 56 3 6 2 42 2 4 2 36-39 -2-96-34 - -6-2 -6-2-2-62 2 4 6 - - -6-2 4-4 6-39 -2-34 -96-2 -2-4 -56-2 -3 - -92-264 -36-36 -44 - -2-44 -4-6 - -2-22 -396-2 - -4-2 -2-26-52-96 -6-4 - -32-39 - - -22-2 -6 - - -222-632 -596-6 -52-5 -92-56 -52-2 -3-92 -6-56 - -32-2 -6-3 -5-62 -442-26 -26-3 -4-6 -4-6 -39-3 -32-6 -26-96 -296-2 -96-36 - -32-56 -5-44 -39-2 -4-2 -39-2 -3-2 -6 - -92-264 -9-22 -4-646- -652-2 -34-39 -96-2 -36-2 -96-2 -4-6 - -22-6 - -6-39-32-4 -6-4 -52-39 -396-2 Figure 4: The exceptional hyperbolic Apollonian circle packing (,,,2) - -35 - -65-63 -22-45 -52 - -25-63 -22-2 -65-2 -35 - - - - -5-45 -2-2 -4 - - - -2 - -99-4-255-52-6-5 -5-45 -344-2-299-29 -336-3 -3-5 - -69 - -5-2 -323-4-44-6 -59-63 - -55-5 - - - - -2-4 -3-5 -69-64 -43-2 3 3-5 -3 - -4-99 -2 3-3 -26-2 -6-2 -5-56 -4-5 -33-4-23 5 99-6 -35 69 63-5 - -9 5 3-6 -33 5-26 -2-6 -2-5 -4-56 -5-2 3 - -4-43 - -69-99 -64-2 -5-3 3 4 2 55 6 3 5 6-6-44-55 -323-44-4-6 -59-63 -2 - -9-264 -52-45 5-3 - - -5 - - -5-33 -56-5 -39-6 -99-2 -5-6-232 - -3-2 -64-55 -5 - -5 - - - -35-2 - - -2 - - -352 - -2 - - -35-5 -2-2 -4 - -63-25 - -65-35 -63-22 -2 Figure 5: The exceptional hyperbolic Apollonian circle packing (-,,,) 2