Two families of solutions, and a box that holds both
Worth reading first: One solution that makes all the others · Why the expansion has to repeat.
One solution that makes all the others showed that every solution of is a power of the smallest, , so that an equation with infinitely many answers is really one answer and a rule for multiplying. The obvious next question changes the right-hand side. What happens to , or to for any whole number ?
The answer has the same shape with one new ingredient. The solutions of are again infinite, and again generated by multiplying by — but one starting point is not enough. It takes two, and the solutions fall into two families that never meet. For other right-hand sides it takes one, three, four or none, and the number turns out to be decided by the prime factors of alone.
Multiplying by the unit keeps the right-hand side
The reason the families exist is the identity that makes Pell’s equation work in the first place. Write a solution of as the number , and call its norm. The norm is the product of the number and its conjugate, , and because conjugation respects multiplication, the norm of a product is the product of the norms. That is Brahmagupta’s composition, which the chakravala essay uses at every step.
So multiply a solution of norm 7 by , whose norm is 1, and the product has norm . Starting from , which has norm , the product is
and indeed . Multiplying again gives , then , and dividing by the unit instead runs the chain the other way. Every solution sits in a two-way infinite chain, and every link of the chain is a solution.
What is new is that one chain need not contain everything. Start instead from , which also has norm 7, and the chain runs , , , and so on. None of these is in the first chain. The two chains interleave along the hyperbola and never share a point, and together they hold every solution of with positive — a claim that needs an argument, since a third chain could be hiding further out.
Straightening the hyperbola with a logarithm
The figure at the top is the device that makes all of this visible, and it is worth seeing why it works. Along the branch of the hyperbola where is positive, the number determines the point completely: its conjugate is , and and are recovered as and . So the branch is a copy of the positive numbers, and multiplying by the unit is simply .
Take logarithms and multiplication becomes addition. On the line of , the unit acts as a translation by , the same distance wherever it is applied. A chain of solutions therefore becomes an arithmetic progression with that common difference, and the curved, exponentially spreading hyperbola becomes a straight line with evenly spaced dots on it.
That is why the figure can be read at a glance. In the row for the dots sit at 0, 1.76, 3.53, 5.29 and 7.05: the powers of the unit, one per step. In the row for there are two progressions, orange and blue, offset from one another by and each with the same step. In the row for there are four, and in the row for there is nothing at all.
The shaded windows are each one step wide. Any window of that width contains exactly one member of each chain — a chain advances by one full step at a time, so it cannot skip a window or land in one twice. Counting the dots in any single window therefore counts the chains, and that is how the right-hand column was read.
The same trick turned the continued fraction’s periodicity into something finite, and it is the idea behind Dirichlet’s unit theorem in general: the units of a number ring become a lattice once logarithms are taken, and a lattice has a fundamental domain. Here the lattice is one-dimensional, the fundamental domain is a window of width , and everything interesting about happens inside one window.
A box every family must visit
A window of the log line corresponds to an arc of the hyperbola, and an arc of a hyperbola is bounded. That turns “count the chains” into a finite search.
Centre the window on the vertex of the hyperbola, where . Every chain has a member with between and , because the window has width exactly . For such a member, lies in the same range, so
Now , where is the fundamental solution, since . Substituting and tidying with gives the bound Trygve Nagell published:
For that is , so every family has a member with equal to , 0 or 1. Trying those three values of finds twice and nothing for , since 7 is not a square. So there are at most two families, and there are exactly two if and are genuinely different.
They are, and the test is a divisibility. Two solutions and of the same norm lie in one chain exactly when their quotient is a unit, which after clearing the denominator comes to dividing both and . For and those are and , and 7 divides neither. Two families, then, and the search is finished: the argument has turned “infinitely many solutions” into three trial values of and one divisibility check.
The figure’s arrows show the two chains leaving the box. The orange member is carried by the unit to , the blue to , and both land on the same branch further up — where the hyperbola has already grown too steep for the lattice points to be any help to the eye.
When a solution and its conjugate are the same family
The two members of the box for were conjugates, and , and they turned out to be in different chains. That is not automatic.
For the unit is , and Nagell’s bound works out to . The box contains and , both of norm . But the divisibility test says they are one family: and are both even. And multiplying directly confirms it, since
The unit carries one conjugate onto the other. A solution and its conjugate lie in the same family exactly when their quotient is a unit, and here it is, on the nose.
What separates the two cases is the prime on the right. For , the prime 7 splits into two different factors, , that are not unit multiples of each other. For the prime 2 is essentially a square: with the two factors equal up to a unit, because 2 divides the discriminant of . Number theorists say 7 splits in and 2 ramifies in , and the vocabulary is the same one that decides which primes are sums of two squares, where 2 ramifies as and a prime that is 1 more than a multiple of 4 splits.
The count is written in the factors of N
Running the box search for every from 1 to 60 gives the grid above, and the pattern in it is sharper than it looks. The primes that have solutions are 2, 7, 17, 23, 31, 41 and 47, and each of the odd ones is 1 or 7 more than a multiple of 8. The primes 3, 5, 11, 13, 19, 29, 37, 43, 53 and 59 — 3 or 5 more than a multiple of 8 — have none. The squares of two of those, 9 and 25, reappear with one family each, and the square of the split prime 7, 49, has three.
The rule behind it has three clauses, one for each way a prime can behave:
- 2 contributes a factor of 1. It ramifies, , so its powers add no choice.
- A prime that is 1 or 7 more than a multiple of 8 contributes , where is its exact power in . It splits into two conjugate factors, and can be made from them in ways: all from one, all from the other, or any mixture.
- A prime that is 3 or 5 more than a multiple of 8 contributes 1 if is even and 0 if is odd. It does not split at all, so it can only appear as a whole power of itself, and an odd power is impossible.
Multiply the contributions and the result is the number of families. For it is 3, from , and — the last being itself, the solution . For it is , from . For it is 0, and the reason can be checked by hand: if modulo 3 with not a multiple of 3, then 2 would be a square modulo 3, which it is not; so 3 divides both and , and then 9 divides , which is absurd.
The figure’s counts were made by the box search and then compared, for every up to 200, with the product over prime factors — two computations that share nothing except the answer. And the bound is attained. At the only family’s representative sits exactly on the edge of Nagell’s box, at with the bound equal to , so the inequality has to be read as non-strict: a search that treats the edge as outside the box finds no family at all and contradicts the factorisation, which says there is one.
Which primes split, and why it is the same question as a square
The split primes are those for which 2 is a square modulo . That is the clause’s real content: if then modulo and 2 is a square; conversely, if 2 is a square modulo , a pigeonhole argument of the kind more things than boxes makes produces a small multiple of of the form , and the descent in brings it down to itself. And whether 2 is a square modulo an odd prime is settled by the second supplement to quadratic reciprocity: exactly when is 1 or 7 more than a multiple of 8, the rule whose eight the two supplements explains, and which sits beside the reciprocity law counting one rectangle twice proves by counting lattice points.
So a question about a hyperbola has an answer made of remainders, and the remainders come from reciprocity. It is the same arrangement as Fermat’s theorem on two squares, where the circle has lattice points exactly when leaves remainder 1 on division by 4, and the two squares actually produced are found by running a Euclidean algorithm half-way. Circle and hyperbola behave identically here because both are norms from a ring of integers with unique factorisation — for the circle, for the hyperbola — and in both the count of solutions is a count of ways to assemble from the ring’s primes.
The one real difference is the unit. The circle’s ring has four units, and , so each factorisation gives four points and the count of lattice points is finite. The hyperbola’s ring has infinitely many, the powers of , so each factorisation gives a whole chain, and the finite object is the number of chains. Jacobi’s formula for points on a circle and the product rule above are the same theorem, divided in the first case by a finite group and in the second by an infinite one.
Families multiply as right-hand sides do
The product rule suggests that families for 7 and families for 17 should combine into families for , and they do, explicitly.
The two families of 7 are represented by and the two of 17 by , since . Their four products are and , and each has norm 119: and . The divisibility test puts the four in four different families, and the box for 119 — with bound — contains representatives of exactly four. Every family of 119 is a product of a family of 7 and a family of 17, and none is left over.
This is Brahmagupta’s composition doing more than it was asked. It was introduced to combine near misses into better near misses; here it combines the solutions of two different equations into all the solutions of a third. The multiplication of norms that makes the chain for a single also assembles the families for composite out of the families for its prime factors, which is why the count is multiplicative.
It is also why the rule has to be stated prime by prime. The families of are not “two times two”, because the products and are the same number: combining a prime with itself produces three families, not four, which is the of the rule.
What the box and the grid cannot show
The count from factorisation is special to rings like . It depends on unique factorisation, and most rings do not have it. In the prime 3 splits — 10 is a square modulo 3 — but has no solution, because modulo 5 it would make a square, and the squares modulo 5 are 0, 1 and 4. The factors of 3 exist as ideals and not as numbers — the same failure the integers a field contains meets from the other side, where the right ring is larger than the obvious one. The box search still works there; only the shortcut through factorisation fails, and what replaces it is the class group, which the figures here never need.
The figures draw only positive and only one branch. For negative the hyperbola’s branches are the other pair, Nagell’s bound takes a slightly different form, and the unit of norm , when it exists, trades solutions of for solutions of — carries of norm 7 to of norm . The branch is the mirror image, for every , and adds nothing.
The log strip is exact but thin. It shows where each solution lies on the line and hides how large the numbers are: the solution is the fourth blue dot in the row for 7, at a coordinate of about 6.78, and nothing in the picture says how large its coordinates are.
Still open: whether the shortcut works infinitely often
The product rule for rests on unique factorisation in , and the same rule works for any whose ring of integers has class number 1: then every ideal is generated by a number, and every factorisation of into ideals is a factorisation into numbers, which the unit then spreads into a chain.
Computations find class number 1 for most prime . Among real quadratic fields with prime discriminant, Cohen and Lenstra’s heuristics predict about three quarters, and the tables bear that out as far as they go. But it is not known that infinitely many real quadratic fields have class number 1 at all. Gauss conjectured it in 1801. The imaginary side of the question — which have class number 1 — was settled in the 1960s with exactly nine fields, and the real side, where this essay’s chains live, remains open.
The difficulty is the unit itself. The class number formula ties the class number to the size of the fundamental solution — the class number times is about , up to a factor that grows no faster than a logarithm — and a large unit forces a small class number. Proving the class number is 1 infinitely often would mean proving the unit is large infinitely often in a precise sense, and nobody knows how to control the size of the fundamental solution that finely. How large that solution actually gets is a question with a great deal of data and very little theory.
A finite search where an infinite one was expected
has infinitely many solutions and they are all known after checking three values of . The unit spreads each family into an infinite chain, the logarithm turns the chains into evenly spaced rows, one window of the line holds one member of each, and a window of the line is a bounded arc of the hyperbola that fits in a box.
When a symmetry acts on an infinite set of solutions, count the orbits, not the solutions — and look for a region every orbit must enter. The orbits here are the families; the region is Nagell’s box; and the number of orbits, once found, turns out to be written in the prime factors of in the same language that decides which primes are sums of two squares.
The same move settles questions that look unrelated. The orbit that must come back counts the states a map can be in rather than the steps it takes, and which primes a form takes shows where the move stops being enough: for the representations of a prime are finite in number, but no congruence on the prime decides whether there are any. The count of families is always finite. Whether it can be read off remainders is the part that depends on the ring.
What links here
Computed from the collection, not written here: the essays that point at this one.
Shares its objects with
Essays that name at least two of the same things, and that neither author linked.
- The area that names the number — both name hyperbola, logarithm
Named objects
A dashed tag is an object no other essay names yet.
Equivalence classFactorisationFundamental solutionHyperbolaLogarithmNormPell equation