How many pairs can be one apart
Worth reading first: One number for every chord through a point · Two squares, and a lattice.
Place points anywhere in the plane and count the pairs that are exactly one unit apart. How large can that count be? Paul Erdős asked in 1946, and the question — the unit distance problem — looks as if it should be easy. It is not. The best constructions and the best upper bound differ by a power of , and neither has improved since 1984.
The obvious arrangements are poor. Points in a row, one apart, give pairs. A patch of the triangular lattice, every point with six neighbours one apart, gives close to . The square grid gives close to with its spacing as the unit. All three are linear in , and the first surprise is that a linear count is not the best possible: by choosing the unit cleverly, a grid can give more than any constant times .
One grid, a better unit
Take a square grid of 12 by 12 points and ask not which pairs are one spacing apart but which pairs are five apart. A step of or does it, and so do and , with any signs.
At distance 5 the grid has 456 pairs, against 264 at distance 1. The reason is directions. Distance 1 is realised in only two directions, horizontal and vertical. Distance 5 is realised in six: along the axes and along the four diagonals of the 3–4–5 triangle. Each direction contributes about pairs, less the ones that fall off the edge, and the extra directions more than pay for the longer steps losing more pairs at the edges.
Rescaling the grid so that 5 becomes the unit changes nothing about the count. So among 144 points the plane allows at least 456 pairs one unit apart, which already beats the triangular lattice’s roughly 3 per point. The whole construction consists of choosing the distance.
Every pair is a point on a circle
A pair of points at distance can be read another way: each point lies on the circle of radius drawn about the other. Counting pairs at one distance is counting incidences between the points and the circles of that radius centred on them.
That reformulation is what connects the problem to the geometry of circles through a point, and it is where both the constructions and the upper bound come from. A construction wants circles that each pass through many of the points. The upper bound needs a reason that circles cannot all pass through too many of points — and the basic reason is elementary: two different circles meet in at most two points. So two points cannot both lie on three of the circles, which would mean three circles sharing two points.
In graph terms, the unit-distance graph contains no complete bipartite graph : no two points have three common neighbours at unit distance. A graph with that restriction has at most about edges, by the same counting of pairs of neighbours that bounds the densest graph without a square. That was Erdős’s first upper bound, and it is already much less than the pairs there are in all.
Directions come from primes
The grid’s best distance at each size is decided by how many lattice vectors have that length, and that is a question about sums of two squares.
Most numbers are not sums of two squares at all, and those that are usually have only a few representations. The numbers with many are products of many primes of the form — 5, 13, 17, 29 and so on — because each such prime is a sum of two squares in essentially one way, and multiplying sums of two squares combines representations. The number has eight signed, ordered representations; has twelve; has sixteen; has twenty-four. Each representation is a direction in which the grid realises that length. Finding the directions for a given is itself a small computation: each prime factor of the form has to be split into its two squares, which a half-run of Euclid’s algorithm does quickly, and the splittings are then multiplied together in every combination of signs and conjugates. For 325 the representations are , and , each in both orders and with every choice of signs: twenty-four vectors, twelve directions.
The table was made by counting, for every grid size, the pairs at every possible distance and keeping the best. The smaller grids were also checked pair by pair. The winning squared distance is 1 for a 4-by-4 grid, 5 up to 8 by 8, 25 at 12 and 16, 65 from 20 to 40, and 325 at 48 and beyond — each one a product of primes of the form , and each switch happening when the grid is large enough that the extra directions outweigh the extra length. Pairs per point climb steadily, from 1.5 to 8.8 over grids of 16 to 6,400 points.
Erdős turned this into a general construction. Take a grid of points and choose a squared distance that is a product of many small primes of the form , small enough that the steps still fit inside the grid. The number of representations grows faster than any constant, and the count of pairs comes out as for a constant : more than any constant times , but less than for every fixed , once is large enough.
Why the unit changes as the grid grows
The switches in the table have a simple mechanism. A step inside an -by- grid can start from points and still land inside, so a long step wastes a band of starting points along two edges. For a small grid that waste is severe: in an 8-by-8 grid a step of length 5 along an axis can start from only points, a quarter of the grid. For a large grid the waste is a thin border and hardly matters, and what matters is only how many directions the length has.
So each candidate distance trades directions against waste, and the balance tips as the grid grows. Distance , with four directions, beats distance 1, with two, once the grid is 6 points on a side. Distance 5, with six, beats at 12. Distance , with eight, takes over at 20, and , with twelve, at 48. Every step up in directions needs a larger grid to pay for its longer steps, which is exactly why the count per point grows so slowly: to use a distance with directions the grid must be large compared with that distance, and numbers with many representations are large.
The same trade explains the shape of Erdős’s bound. The number of representations of as a sum of two squares can be as large as about , and no larger; to use such an the grid needs side a few times ; and putting those together gives the count . The exponent is small because numbers are rarely sums of two squares in many ways, and that is a fact about primes.
The triangular lattice’s own primes
The triangular lattice does even better than the square grid at the sizes drawn, and for the same reason with different primes. Its points can be written as with a cube root of unity, and the squared distance between two of them is . The numbers of that form with many representations are products of primes of the form — 7, 13, 19, 31 — for the same reason as before: each such prime splits in the arithmetic of , and multiplying combines the splittings.
The computation finds exactly those distances. For hexagonal patches of 37 to 331 points the best squared distance is 7, realised in six directions against the three of the unit; from 469 points on it is , realised in twelve. A patch of 1,261 points has 10,200 pairs at distance , about 8.1 per point, against the square grid’s 5.6 at a similar size. The triangular lattice starts with three directions for free where the square grid has two, and keeps the advantage.
Neither lattice changes the asymptotic answer. Both give with different constants, and no other construction is known that does better by more than a constant factor in the exponent’s constant.
The four-thirds bound
The best upper bound came in 1984 from Joel Spencer, Endre Szemerédi and William Trotter: the number of unit distances among points is at most a constant times . Their proof bounded the incidences between points and circles by cutting the plane into cells, each containing few points and crossed by few circles, and adding up the cells.
László Székely found a much shorter proof in 1997, and it is one of the best-known applications of the crossing lemma. Draw the unit circles about the points, discarding the ones through fewer than three points, and read the arrangement as a drawing of a graph: the points are vertices and the arcs of the circles between consecutive points are edges. Two circles cross at most twice, so the drawing has at most about crossings. The crossing lemma says a graph with many more edges than vertices must have many crossings — at least a constant times — and comparing the two gives at most a constant times edges, which is the bound.
So pairs per point can grow at most like , and the grid constructions grow like . Everything known lies between those two rates.
Small cases lie
At the sizes anyone can compute, the two rates are hard to tell apart.
The triangular lattice at unit spacing flattens out below three pairs per point, as it must: each point has only six neighbours at distance one. Choosing a distance lifts both lattices far above that, and the triangular lattice at its own best distance — lengths like and , realised in many directions of that lattice — does even better than the square grid. And over the range drawn, sixteen points to several thousand, both chosen-distance constructions rise at about the same rate as the curve.
That is not evidence that the upper bound is right. The function grows slower than every power of only eventually, and “eventually” here means sizes far beyond any drawing: at a few thousand points, is barely above two, and behaves like a power of about a third. The small cases say nothing about which rate is the true one. Erdős conjectured that the constructions are essentially best — that the answer is — and offered a prize for a proof.
A related question that was answered
A sister problem, also Erdős’s from 1946, asks the opposite: among points, how few distinct distances can there be? The square grid again gives the best constructions, with about distinct distances, and for sixty years the lower bounds crept upward by small exponents.
In 2010 Larry Guth and Nets Katz proved that points always determine at least a constant times distinct distances, matching the grid up to a factor of . Their proof used incidence bounds for lines in three-dimensional space and the polynomial method, a set of tools that did not exist when the problem was posed. The distinct distances problem is now essentially closed. The unit distance problem, which asks about the most common distance rather than the number of distances, has not yielded to the same methods: its difficulty is the circles, which in the distinct distances problem could be traded for lines.
The colouring question next door
A unit-distance graph — the points as vertices, the pairs one apart as edges — is also the object of the question of how many colours the plane needs, so that no two points one apart share a colour. The two questions pull in different directions. Colouring cares about small, tightly knotted configurations, like the Moser spindle and de Grey’s graph, that force many colours; the unit distance problem cares about large, evenly spread configurations with as many edges as possible.
They meet less than one might expect, because many edges do not force many colours. Every record grid in the table uses an odd squared distance — 1, 5, 25, 65, 325 — and a step with odd has odd, so it always joins a point with even to one with odd. Colour the grid like a chessboard and no two points one unit apart share a colour. The densest constructions known for the unit distance problem need only two colours, while the configurations that force five colours are sparse, irregular and small. The two problems study the same graphs and reward opposite features of them.
What the counting cannot show
The counts are exact: every pair of every grid is counted by direction and the smaller grids pair by pair, and the triangular patches are counted by brute force over all pairs. What the figures show is what these particular constructions achieve at these particular sizes, and nothing more. The best arrangement of points need not be a piece of a lattice at all; for small the known record configurations are irregular, found by computer search, and the lattices are not optimal there.
The reference curve is drawn through the first grid point to show a shape of growth, not the upper bound itself, which has a constant that is not tight. And the log-log picture over three orders of magnitude cannot separate from ; that separation is a theorem about the limit, and no computation reaches it.
Still open: the exponent
The number of unit distances among points is at least and at most a constant times . Whether the true exponent is 1, as Erdős believed, or , or something between, is unknown. The upper bound has resisted every attempt at improvement for four decades, and the reason is understood in outline: the Spencer–Szemerédi–Trotter bound is sharp for points and lines, and any improvement for circles must use something specific to circles of one fixed radius that lines do not have.
The problem is also sensitive to the space it lives in. In three dimensions the best bounds are different, and in four dimensions the question collapses: points on two orthogonal circles of radius give about unit distances, a positive fraction of all pairs. The plane sits between a trivial case and an impossible one, and the only tool that reached its version of the question, the crossing of circles, stops at four-thirds.
What a unit is for
The construction that beats the obvious arrangements does nothing to the points; it chooses the unit. A grid has one spacing and many distances, and the distance it realises most often is the one whose square has the most representations as a sum of two squares. So a geometric question about pairs of points at one distance turns, at every size, into an arithmetic question about which numbers are sums of two squares in many ways — and the answer to that is controlled by primes of the form . The upper bound, meanwhile, is pure geometry: two circles meet at most twice. The truth lies somewhere between an argument about primes and an argument about crossings, and no one knows which of the two is closer to it.
Shares its objects with
Essays that name at least two of the same things, and that neither author linked.
- A fraction on the circle forces a whole point — both name lattice, sums of two squares
- Nine points on one circle — both name circle, incidence
- One circle touching four — both name circle, incidence
- The orders a plane cannot have — both name incidence, sums of two squares
- The wait for the next sum of two squares — both name lattice, sums of two squares
- What two points can build — both name circle, incidence
Named objects
A dashed tag is an object no other essay names yet.
CircleIncidenceLatticePrimeSums of two squaresUnit distance graph