- About this Journal ·
- Abstracting and Indexing ·
- Aims and Scope ·
- Article Processing Charges ·
- Articles in Press ·
- Author Guidelines ·
- Bibliographic Information ·
- Citations to this Journal ·
- Contact Information ·
- Editorial Board ·
- Editorial Workflow ·
- Free eTOC Alerts ·
- Publication Ethics ·
- Reviewers Acknowledgment ·
- Submit a Manuscript ·
- Subscription Information ·
- Table of Contents

ISRN Geometry

Volume 2012 (2012), Article ID 348618, 19 pages

http://dx.doi.org/10.5402/2012/348618

## On a Diophantine Equation That Generates All Integral Apollonian Gaskets

Department of Mathematics, Southern Illinois University Carbondale, Carbondale, IL 62901, USA

Received 1 December 2011; Accepted 20 December 2011

Academic Editors: L. V. Bogdanov and G. Martin

Copyright © 2012 Jerzy Kocik. This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.

#### Abstract

A remarkably simple Diophantine quadratic equation is known to generate all, Apollonian integral gaskets (disk packings). A new derivation of this formula is presented here based on inversive geometry. Also, occurrence of Pythagorean triples in such gaskets is discussed.

#### 1. Introduction

Apollonian disk packing (or Apollonian gasket) is a pattern obtained by starting with three mutually tangent circles of which one contains the other two and then recursively inscribing new circles (disks) in the curvilinear triangular regions (called “ideal triangles’’) formed between the circles. Figure 1 shows a few examples, including (a) a special case of the noncompact “Apollonian strip,” (b) the Apollonian window, which is the only case that has symmetry , (c) the regular threefold gasket, which has symmetry , and (d) a general gasket that may have no mirror symmetry.

It turns out that there exist an infinite number of *integral* Apollonian packings, where the curvature of every circle/disk is an integer.

Recall that four pairwise tangent circles are said to be in the *Descartes configuration*. Suppose , , , and are curvatures of four such circles. Then, the Descartes circle formula states
One may use this formula to obtain the curvature of the fourth circle , given the first three. Being a quadratic equation, it yields two solutions, say and , such that
Disks and will be called the *Boyd dual*. As observed by the Boyd [1], this “linearized’’ version of (1.1) provides a handy tool for determining the curvatures in a particular Apollonian gasket starting with the first four values. In particular, it follows that if the first four values are integers, so are all.

*Remark 1.1. *For consistency, the curvature of the circle that contains all of the remaining ones must be given a negative value for (1.1) and (1.2) to hold. It is customary to replace the term “curvature’’ by “bend’’ to account for this convention. Another way of looking at this is to think of disks rather than circles, where the greatest circle is the boundary of an exterior, unbounded, region. This way no two disks in an Apollonian gasket overlap.

In this note, Apollonian gaskets will be labeled by the bends of the five greatest circles, that is, by the five least bends. Why five will become clear when we consider symmetries, the appendix.

Examples of integral Apollonian gaskets include : Apollonian belt (Figure 1(a)),: Apollonian window (Figure 1(c)),: less regular gasket, but with symmetry,: quite irregular case.

Note that the regular gasket (see Figure 1) cannot have integer bends as its quintet of curvatures is, up to scale, , and hence its curvatures are populated by elements of . Due to (1.2), the integrality of the first four circles determines integrality of all disks in the packing. An integral Apollonian packing is *irreducible* if the bends have no common factor except 1.

The problem is to classify and determine all irreducible integral Apollonian gaskets.

#### 2. Integer Disk Packing: The Formula

All integral Apollonian disk packings may be determined using a simple Diophantine quadratic equation with constraints. The derivation of this formula is a much simpler alternative to that of “super-Apollonian packing’’ [2–4] and is based on inversive geometry.

Theorem 2.1. *There is a one-to-one correspondence between the irreducible integral Apollonian gaskets and the irreducible quadruples of nonnegative integers that are solutions to quadratic equation
**
with constrains
**
Every solution to (2.1) corresponds to an Apollonian gasket with the following quintet of the major bends (curvatures):
*

Corollary 2.2. *The Apollonian gasket is integral if and only if gcd .*

Figure 2 locates the curvatures of the theorem in the Apollonian gasket. Note that the triple of integers is also a good candidate for a label that uniquely identifies an Apollonian gasket (since is determined by .

Equation (2.1) leads to an algorithm producing all integral Apollonian gaskets, ordered by the curvatures, presented in Algorithm 1.

The appendix shows the first 183 entries for the main bend varying from 0 to 32.

*Example 2.3. *Figure 3 shows that there are only 3 Apollonian gaskets for .

*Proof of Theorem 2.1 (We denote a circle and its curvature by the same symbol). *Consider an Apollonian gasket of disks inscribed inside a circle of curvature (bend equal to ). Draw an axis through the center of this circle and the center of the next largest circle (the horizontal axis in Figure 4). Inverting the gasket through a circle of radius will produce an Apollonian belt, shown in the figure on the right side of the gasket. Denote its width by . Lines and are the images of and , respectively.

The next largest circle, , will show up in the strip as a circle . It will intersect the axis . Various Apollonian gaskets will result by varying the strip width (i.e., the parameter ) and the height of the center of the circle above the axis. Clearly, the range of is the interval , as going beyond would result in repetitions of the Apollonian arrangements.

Recall the basic formulas of inversive geometry: inversion through a circle of radius centered at carries a point at distance from to a point at distance according to
and a disk of radius with center distance from is mapped to a disk of radius with its center located at distance according to
We will analyze the Apollonian gasket as the inversive image of the Apollonian strip, disk by disk.*Step 1. *Recall that represents the curvature of the encompassing circle of the gasket.*Step 2. *To calculate the curvature of the greatest circle inside (the image of ), apply (2.5)(i) to the point of intersection of and axis to get:
Since is an integer, so is the last term; denote it by . Clearly, can be any nonnegative integer (to make ).*Step 3. *For , the image of , we use (2.5)(ii) to get
As before, we conclude that the last term must be an integer; denote it by . Clearly, (to make ).*Step 4. *Similarly, we get a formula for the next largest circle located below , the image of . Simply use the above formula with instead of to get
Quite pleasantly, the first three terms coincide with terms from previous steps. Since we have already established that they must be integers, so is the last one; denote it by . Thus we have three integers defined by the geometry of the construction:
Integers , and are not independent; take the definition for and eliminate and from it to get
from which it follows immediately that must be even, say . Reduce the common factor of 4 to get the “master equation’’ (2.1).As to the *constraints*, the order of the curvatures gives three inequalities:
The additional upper bound for comes from the fact that takes its greatest value at . Thus, the last inequality of (2.11), , implies:
and therefore (after squaring)
This ends the proof.

#### 3. Symbols of the Circles in an Apollonian Gasket

The *symbol of a circle* [5, 6] is a formal fraction
where denotes the bend (signed curvature) of the circle and the position of the center is
By *reduced coordinates* we mean the pair . In the case of the Apollonian window (packing with the major curvatures , the reduced coordinates and the bend of each circle are integers, see Figure 5.

The Boyd linearization (1.2) for bends in the Descartes configurations holds for the reduced coordinates since they satisfy a quadratic equation due to the extended the Descartes circle theorem [2–4]. Thus’

*Remark 3.1 (the geometric interpretation of the integrality of the labels). *Every circle in the Apollonian window is an integer multiple of its radius above the horizontal axis and from the vertical axis. This is a generalization of Pappus’ arbelos theorem [7] for a single chain in an arbelos-like figure, illustrated in Figure 6.

The question is whether the same may be expected for other integer Apollonian disk packings, that is, are the three numbers in the label all integers?

Proposition 3.2. *In the case of the coordinate system with the center located at the center of circle (see Figure 4), the labels for the Apollonian gasket generated from are as presented in Figure 7.*

*Proof. *Direct calculations.

One can check that the circles of curvatures are the Boyd dual with respect to the triple of mutually tangent circles of bends .

The above proposition implies that the reduced coordinates for circles are fractional unless (see the symbol for in the figure). Since we have also (constraints) and the need for (see the symbols for the reduced -coordinate), we conclude that we would need or .

This happens in two cases: Apollonian window and Apollonian strip , that is, for equal to or , respectively. However, if (which happens “often,’’ whenever ), all reduced -coordinates are integer. This is a special (integral) case of Pappus’ observation since corresponds to the pattern shown in Figure 6, (see the appendix).

#### 4. Pythagorean Triples in Apollonian Gaskets

Given two tangent circles and , we construct a triangle whose hypotenuse joins the centers and the other sides of which are horizontal or vertical with respect to some fixed axes.

We will associate with this triangle a triple of numbers, namely,
The actual size of the triangle sides is the above triple scaled down by the factor of . Hence, the *symbol* for such triangles is
Clearly, . If the reduced coordinates are integers, then the triples (4.1) are Pythagorean triples. The Apollonian window thus contains infinitely many Pythagorean triples [5, 6]. A few are displayed in Figure 8.

Now, for the arbitrary integer packing. Consider the four major circles , , , and in an Apollonian gasket (Figure 6). Pairwise, they determine six right triangles. Each of the thick segments in Figure 9 represents the hypotenuse of one of them. This sextet will be called the *principal frame* for the gasket.

We will prove later that if the corresponding triples , , are integers, so are all triples in the gasket, But first we have the following.

Proposition 4.1. *The labels of the six right triangles in an Apollonian gasket whose hypotenuses join the pairs of the first four greatest circles are, in notation as in Figures 7 and 9, as follows:*

*Proof. *Direct calculation from the data of Proposition 3.2.

The master equation is used to bring the triples to a form where the only fractional terms contain as a factor. Note that, in general, each of the entries for the reduced coordinates is a linear combination with integer coefficients of , and plus the only, possibly, noninteger term, a multiple of or . The fact that it can be done proves the following theorem.

Theorem 4.2. *If (or, equivalently ), then all triples (4.1) in the integer Apollonian gasket (B, , k) are integers (form Pythagorean triples).*

*Proof. *The following implication is direct:
Combining the premise with the result, . Every entry of (4.3) may be expressed as a linear integral combination of , , , and and an extra term of either or . This proves the claim.

Integer Pythagorean triples happen frequently. For instance, each of the conditions: , or , is sufficient.

#### 5. Linear Recurrence for Pythagorean Triples in an Apollonian Gasket

Consider four circles in the Descartes configuration, (see Figure 10). The four centers determine six segments that we view as hypotenuses of triangles. They give, after rescaling, six Pythagorean triangles with sides denoted as follows: with . Note that and but . They form the frame of the Descartes configuration.

Now, complement the picture with a circle , the Boyd dual to (see Figure 10). This leads to a new frame, the frame of the Descartes configuration . Quite interestingly, the elements of the new frame are linear combinations of the elements of the initial frame.

Theorem 5.1. *Following the notation of (5.1) and Figure 7, the transition of frames is given by*

*Proof. *Using the linear relations (1.2) and (3.3), we can express the position and the curvature of the new, fifth, circle in terms of the initial four:
We can calculate the Pythagorean vectors for each pair , . By some magic, due to the following regroupings and adding zeros, these can be expressed in terms of the initial four Pythagorean vectors only, as shown here for the pair :
The ’s follow the same argument. Only s are slightly different:
Thus, the transformation is linear in the entries of , , and, , with integer coefficients, as stated.

Actually, we have proved a little more.

Corollary 5.2. *If the (scaled) triangles formed by the initial Descartes configuration are integer, so are all of the triangles of the Apollonian window.*

*Matrix Description*

Now we may rephrase our findings on transitions between frames in terms of matrices. The data for the Pythagorean triangles in each frame may be expressed as three vectors (columns), for example, for the initial frame, and similarly for and . Similarly for the second frame, we have , , and .

Here are the three matrices of the transition from a frame to the corresponding subsequent frame: (vertical and horizontal lines in the matrices are drawn for easier inspection). Now acting with them on the initial vectors and , one may reconstruct all the interior triangles. Vectors and may be combined into a single matrix, : The vector is transformed to by matrices like , where all of the entries are to be replaced by their absolute values.

We conclude with two examples of Apollonian packings in which every triangle for adjacent circles determines a Pythagorean triple, see Figures 11 and 12. Only some of the triangles are displayed.

#### 6. Concluding Remarks

Integral Apollonian disk packings have a topic of much interest for a while [2–4, 8, 9] and their occurrence has been analyzed. Yet it is not clear whether the integral Apollonian disk packings admit coordinate systems in which the reduced coordinates are integral, except the known cases of Apollonian strip and Apollonian window. We have, however, a frequent occurrence of gaskets that admit integral Pythagorean triples, constructed in Sections 4 and 5.

Yet another intriguing remark concerns the master equation
If we see it as —one may identify the corresponding (scaled) triangle in Figure 4 as the one with legs being the diameter of the encompassing circle and altitude of the center of circle —the inversive image of circle . Each solution to the master equation may also be viewed as an integral isotropic vector in the Minkowski space *a la* Pedoe map from circles to vectors, see [6]. Such vectors represent points in this Minkowski space—degenerated circles of radius 0.

#### Appendix

#### List of Integral Packings

Here, we provide a list of the first 200 integer Apollonian packings. First, however, we give a few words on symmetry of these arrangements.

Only two integral Apollonian packings have rich symmetry: that of Apollonian Strip, and of Apollonian window . Otherwise, we have two cases, that of symmetry and , which will be labeled as follows:*Skew*: means no nontrivial symmetry (thus symmetry of type ).

For cases with single axis symmetry (), we will distinguish two cases:*odd*: mirror symmetry , with exactly three circles cut by the axis of symmetry,*even*: mirror symmetry with infinitely many circles on the axis,*even**: even symmetry that is obtained “accidentally” by Algorithm 1, where the two greatest congruent circles are not images of the congruent disks in the Apollonian strip.

Consult Figure 13 for visualization.

Yet another attribute of an Apollonian packing is a *shift*, which we define as the degree the disk on the horizontal axis in the Apollonian strip is raised above this axis in terms of the fraction of its radius:
See Figure 4. It has values in the interval [], and it measures the degree the gasket is off the axial symmetry: 0 for *odd* symmetry and 1 for *even* symmetry . The fractional value indicates lack of axial symmetry, except the cases of “accidental” even* symmetry, when (this gives ).

Table 1 displays first 24 integral Apollonian gaskets including symmetry type, principal disk quintet, the parameters , , , and , and the shift factor. The first even* case is also included.

Table 2 contains a longer list of integer Apollonian gaskets for the principal curvatures from 1 through 32. Curvature quintets (in brackets) are followed by shift factor.

#### References

- D. W. Boyd, “The osculatory packing of a three dimensional sphere,”
*Canadian Journal of Mathematics*, vol. 25, pp. 303–322, 1973. View at Publisher · View at Google Scholar · View at Zentralblatt MATH - R. L. Graham, J. C. Lagarias, C. L. Mallows, A. R. Wilks, and C. H. Yan, “Apollonian circle packings: geometry and group theory. I. The Apollonian group,”
*Discrete & Computational Geometry*, vol. 34, no. 4, pp. 547–585, 2005. View at Publisher · View at Google Scholar · View at Zentralblatt MATH · View at MathSciNet - R. L. Graham, J. C. Lagarias, C. L. Mallows, A. R. Wilks, and C. H. Yan, “Apollonian circle packings: geometry and group theory. II. Super-Apollonian group and integral packings,”
*Discrete & Computational Geometry*, vol. 35, no. 1, pp. 1–36, 2006. View at Publisher · View at Google Scholar · View at Zentralblatt MATH · View at MathSciNet - R. L. Graham, J. C. Lagarias, C. L. Mallows, A. R. Wilks, and C. H. Yan, “Apollonian circle packings: geometry and group theory. III. Higher dimensions,”
*Discrete & Computational Geometry*, vol. 35, no. 1, pp. 37–72, 2006. View at Publisher · View at Google Scholar · View at Zentralblatt MATH · View at MathSciNet - J. Kocik, “Clifford algebras and Euclid's parametrization of Pythagorean triples,”
*Advances in Applied Clifford Algebras*, vol. 17, no. 1, pp. 71–93, 2007. View at Publisher · View at Google Scholar · View at Zentralblatt MATH - J. Kocik, “A theorem on circle configurations,” In press, http://arxiv.org/abs/0706.0372.
- J. B. Wilker, “Inversive geometry,” in
*The Geometric Vein*, pp. 379–442, Springer, New York, NY, USA, 1981. View at Google Scholar · View at Zentralblatt MATH - P. Sarnak, “Letter to J. Lagarias about integral Apollonian packings,” In press, http://www.math.princeton.edu/sarnak/AppolonianPackings.pdf.
- P. Sarnak, “Integral apollonian packings,”
*The American Mathematical Monthly*, vol. 118, no. 4, pp. 291–306, 2011. View at Google Scholar