MathematicsPreprintTheory16 min read

A SET OF SQUARES WITH NOT ONE TO SPARE

A caretaker’s key ring is usually forgiving. Lose one key and some other key, or a master key, still opens the same doors. Now picture a ring with no slack at all: every key on it is the one and only way into some rooms, so that whichever key goes missing, doors stay shut for good. A mathematician has just shown that a ring like this can be cut from a collection every schoolchild meets, the perfect squares.

Four squares are always enough

A square is a whole number multiplied by itself: 0, 1, 4, 9, 16, 25, 36 and so on. In 1770, Lagrange proved that every whole number from zero upward can be written as the sum of four squares. This is Lagrange’s four-square theorem. Two illustrations (ours, easy to check by hand): 7 = 4 + 1 + 1 + 1, and 23 = 9 + 9 + 4 + 1. Zero counts as a square, so a number that needs fewer than four, like 13 = 9 + 4, is padded with zeros.

Number theorists read this theorem as a statement about a set of numbers, the set of all squares, which the paper calls S. Their question is always the same: with this stock of building blocks, and a fixed number of blocks per sum, which numbers can be reached?

A basis that is forgiven its small failures

Take any set A of whole numbers and a number of terms h. The paper writes

hA = {a₁ + a₂ + … + aₕ, where each of a₁, …, aₕ is taken from A}

In words: hA is the collection of every total you can form by adding h members of A, with repeats allowed. The larger A is, the more totals hA contains. With A = S and h = 4, Lagrange’s theorem says that 4S is everything: no whole number is missed.

A set A is called an asymptotic basis of order h if every sufficiently large whole number belongs to hA. “Sufficiently large” means that a finite list of exceptions is tolerated: beyond some point, every number can be written, and what happens before that point is forgiven. The word “asymptotic” carries exactly this tolerance. The squares are therefore an asymptotic basis of order 4, with no exceptions at all.

This tolerance has a consequence that matters for everything below. If you damage a basis and only a hundred numbers, or a million, become impossible to write, it is still an asymptotic basis: you simply move the starting point further out. To stop being one, it must lose infinitely many numbers.

When no member can be spared

An asymptotic basis A of order h is called minimal when

A \ {a} is no longer an asymptotic basis of order h, for every a in A

The symbol \ means “with … taken out”, so A \ {a} is the set A with the single member a removed. The definition says: pick any member you like, delete it, and infinitely many numbers can no longer be written as a sum of h of the remaining members. That is the key ring with no slack. Deleting one key does not lock every door, but it locks endlessly many, and no other key makes up for it. A minimal basis sits on an edge: it does the job, and every one of its members is needed for that.

The paper recalls where the idea comes from. Stöhr introduced the concept of minimality in 1955. In 1956, Härtter proved that minimal asymptotic bases exist, by an argument that does not construct one. In 1974, Nathanson built explicit examples.

It would be natural to guess that any basis can be slimmed down to a minimal one: keep throwing out members you do not need until nothing more can go. Nathanson’s 1974 paper showed that this guess is wrong. It contains an asymptotic basis of order 2 that has no minimal asymptotic basis of order 2 inside it. However you thin that set, either it stops being a basis or it still has a member to spare. So a basis need not contain a minimal basis of the same order, and for any given basis the question has to be settled on its own. In 1979, Erdős and Nathanson gave conditions under which a basis of order 2 does contain a minimal one, and in 1995 Erdős, Nathanson and Tetali extended criteria of this kind to higher orders.

For the squares, Erdős and Nathanson put the question in 1980: is there a part A of the set of squares that is a minimal asymptotic basis of order 4? Counting from that date, the question is 46 years old.

The answer is yes, without a list

Shi-Qiang Chen, of the School of Mathematics and Statistics at Anhui Normal University in Wuhu, China, proves that such a set exists. The paper’s Theorem 1 reads: there exists a subset A of S which is a minimal asymptotic basis of order 4. The work is a 49-page preprint and has not yet been peer-reviewed.

Two words in that statement deserve care. “Asymptotic”: the set A writes every sufficiently large number as four of its members, not necessarily every number. The proof shows that the exceptions all lie below some bound, without saying how large that bound is. “Exists”: the proof does not hand over the list of squares in A. One of its steps picks squares by a weighted lottery, and the argument shows that a good outcome of the lottery must exist without exhibiting one.

The rest of this article follows the three ideas that carry the proof: sorting numbers by their remainder when divided by 4, choosing odd squares with a loaded coin, and then pruning.

Remainders that count the odd squares

Divide a whole number by 4 and the remainder is 0, 1, 2 or 3. Mathematicians write n ≡ 3 (mod 4), read “n is congruent to 3 modulo 4”, to say that n leaves remainder 3. It is clock arithmetic on a dial with four positions.

Squares are very restricted on this dial. An even number is 2t for some whole number t, and its square is 4t², which lands on 0. An odd number is 2t + 1, and its square is 4t² + 4t + 1, which lands on 1. So

even square ≡ 0 (mod 4), odd square ≡ 1 (mod 4)

Now add four squares. Each even one contributes 0 to the remainder and each odd one contributes 1, so the remainder of the sum counts the odd squares in it. A number with remainder 3 is therefore always written with exactly three odd squares and one even square, as in 23 = 9 + 9 + 1 + 4. A number with remainder 2 always uses exactly two odd squares and two even ones. The paper states both facts and builds everything on them: knowing the remainder of n tells you what kind of squares any writing of n must contain.

Chen’s set has a shape designed for this:

A = (all the even squares) ∪ (a very sparse set of odd squares)

The symbol ∪ means “together with”. The even squares, called E in the paper, are 0, 4, 16, 36, …, the numbers 4t². All of them are kept. Of the odd squares 1, 9, 25, 49, …, called O, only a thin selection is kept. The paper calls the selection B first, and B∞ once it has been pruned.

The four remainders are then handled one at a time.

Remainder 0. If n is a multiple of 4, apply Lagrange’s theorem to n/4, then multiply everything by 4. Four squares for n/4 become four even squares for n. No odd square is needed.

Remainder 1. Here Chen uses a second classical result, the three-square theorem. Three squares are not always enough, and the theorem says exactly when they fail: the whole numbers that are not a sum of three squares are those of the form

4^ℓ × (8k + 7)

where ℓ and k are whole numbers, zero included (4^ℓ is 4 multiplied by itself ℓ times). With ℓ = 0 this gives 7, 15, 23, 31, …, with ℓ = 1 it gives 28, 60, …, and so on. Our example 23 is one of them, which is why it needed all four squares. These “forbidden” numbers all leave remainder 0 or 3 when divided by 4, so the difference between two of them never leaves remainder 2.

Chen fixes two odd squares u and v in the sparse set, chosen so that u leaves remainder 1 and v leaves remainder 9 when divided by 16. For a number n with remainder 1 modulo 4, the two numbers (n − u)/4 and (n − v)/4 are whole, and their difference leaves remainder 2 modulo 4. They cannot both be forbidden. So at least one of them is a sum of three squares, and multiplying back by 4 gives n as u or v plus three even squares. Two odd squares, always the same two, take care of every number with remainder 1 that is larger than both of them: a quarter of all large numbers.

Remainder 2. Such numbers are written as two members of B plus two even squares.

Remainder 3. Such numbers are written as three members of B plus one even square. This is the class the sparse set is tailored for, and it is where the proof plants the numbers that make each square indispensable.

Choosing the odd squares with a loaded coin

How do you pick B so that it is sparse and still serves every large number with remainder 2 or 3? Chen uses what mathematicians call the probabilistic method: instead of designing the set by hand, describe a random way of choosing it, show that the bad outcomes are rare, and conclude that a good outcome exists. It is like showing that some hand of cards has a certain property by proving that most hands do, without ever dealing one.

Go through the odd squares one by one and, for each odd square b, toss a coin that says “keep” with a chance p(b) defined by

ℓ(b) = min{ b, ⌈b^(2/3) × log(3b)⌉ } and p(b) = ℓ(b) / b

(This ℓ(b) has nothing to do with the exponent ℓ of the three-square theorem.)

Here b^(2/3) is b raised to the power two thirds (the cube root of b, squared), log is the logarithm, a function that grows very slowly, the half-brackets ⌈ ⌉ round what they enclose up to the next whole number, and min picks the smaller of the two quantities so that the chance never exceeds 1. Picture drawing a ticket numbered from 1 to b and keeping the square b when the ticket shows ℓ(b) or less. Dividing through, the chance is essentially

p(b) ≈ b^(−1/3) × log(3b)

that is, the logarithm divided by the cube root of b. The larger the odd square, the smaller its chance: the coin is more and more loaded against keeping it, and the selection thins out as the numbers grow.

Why this particular rate? A rough reckoning (ours, not the paper’s wording) shows the balance. The paper proves that a large number n with remainder 3 has at least a fixed fraction of n different triples of odd squares that complete it with an even square. Each of the three squares is at most n, so each is kept with a chance of at least about the logarithm over the cube root of n, and a triple survives with a chance of at least about a power of the logarithm divided by n. Multiplying, the expected number of surviving triples is at least about a power of log n: a count that grows without limit, but can grow very slowly. The paper’s own guarantees sit on both sides of this balance: the number of writings tends to infinity, and it stays below n^(1/2000), the two-thousandth root of n. A less generous coin would risk leaving some large numbers with no writing at all, and the pruning step described below needs the writings to stay few.

To know how many writings there are to begin with, the paper uses Jacobi’s formula for R4(n), the number of ways to write n as four squares of integers (whole numbers, negative ones included) when order and signs are counted separately:

R4(n) = 8 × Σ d, the sum running over the divisors d of n that are not multiples of 4

Σ (sigma) is the summation sign: add up every d that divides n exactly, skipping those divisible by 4. For 23, the divisors are 1 and 23, so R4(23) = 8 × 24 = 192. That matches a direct count (ours): 9 + 9 + 4 + 1 is the only way to write 23 as four squares, and it can be ordered in 12 ways, and each of the four numbers being squared can carry a plus or a minus sign, 16 combinations, and 12 × 16 = 192. From the formula the paper derives that when n is not a multiple of 4, R4(n) is at least 8n. The full set of squares is lavish, and this abundance is the raw material the loaded coin thins down.

Chen never tosses a coin, and the paper does not use the language of chance. Each possible finite selection receives a weight, the product of the p(b) of the squares kept and the 1 − p(b) of the squares left out, which is what its probability would be. The proof then adds up the weights of the selections that go wrong. Two inequalities (the paper’s Lemmas 3 and 4; a lemma is an intermediate result proved on the way to the main theorem) show that the count of surviving writings is very unlikely to fall far below its average. Other estimates bound how many whole-number solutions certain equations in squares can have, among them equations of the form y² − dx² = v, where d is 2 or 3. In the end the weights of all the ways the selection can misbehave, from some point onward, add up to less than one half. A separate argument (Lemma 5) turns this into one infinite selection that avoids all of them.

After a finite number of offending squares are discarded, the outcome is the paper’s Lemma 12. It states that there is a set B of odd squares with all of the following properties.

  • It is very sparse. Writing B(x) for the number of members of B up to x,

    B(x) ≤ x^(1/5)

    for all sufficiently large x.

    The fifth root grows far more slowly than the count of odd squares, which is about √x / 2 (√x is the square root of x; there are about √x squares up to x, half of them odd). As a plain piece of arithmetic: up to ten billion there are about 50,000 odd squares, and the fifth root of ten billion is 100. The paper does not say from which x onward the bound holds, so this is an illustration of the two rates, not a count of B.

  • Numbers with remainder 3 are served, but barely. The number of ways to write such an n as three members of B plus an even square tends to infinity as n grows, yet stays below n^(1/2000) for large n.

  • No square carries too much. For a given n, any one member of B appears in at most C of its writings, where C is a fixed constant.

  • Different numbers hardly share. Two different numbers with remainder 3 have at most D members of B in common across all their writings, with D another fixed constant.

  • Numbers with remainder 2 are well served. Each large one has at least n^(3/10) pairs of members of B (n raised to the power three tenths) that can be completed by two even squares.

  • No disguised triple. For every member b of B, the number 3b is never the sum of three other members of B.

At this point A₀ = E ∪ B is an asymptotic basis of order 4 made of squares. It is thin, but nothing yet says it is minimal.

Pruning until every square is pinned

The last step makes every member necessary, by removing others. The danger is plain: remove too much and the set stops being a basis. Chen proceeds one member at a time, on a schedule in which every square comes up again and again. The paper lists the squares in the order

0; 0, 1; 0, 1, 4; 0, 1, 4, 9; 0, 1, 4, 9, 16; …

so that each square returns infinitely often. A square on the list that is not in the current set is skipped, and the turn goes to 0.

Suppose the turn falls on a member a. The paper’s Lemma 13 produces a number m, as large as desired and with remainder 3, that is deliberately built around a:

  • if a is an odd square, m = a + a + a + 4t² for a large t;
  • if a is an even square, m = a + b + b + b for a carefully chosen member b of B.

So m has at least one writing that uses a. Because of the properties above, m has few other writings, at most m^(1/2000). Chen then spoils every writing of m that does not use a, by removing from the set one odd square out of each. The proof shows that in each such writing there is an odd square available that is both very large, above m^(1/100), the hundredth root of m, and different from the squares in the writing built around a. For an odd a this is where the “no disguised triple” property is used: without it, three other small members of B could add up to 3a and give a writing of m that could not be spoiled this way. For an even a, the member b is picked from a stretch of B so as to avoid a small set of bad candidates, which the estimates on y² − dx² = v show to be rare.

After the removal, m can still be written as four members of the set, but every way of doing it uses a. One number now depends on a.

Why does everything else survive? The proof checks the four remainders again for every large number n.

  • Remainders 0 and 1 are untouched: only odd squares are ever removed, so the even squares stay, and u and v stay too, since removals only happen far above them.
  • Remainder 3. The squares removed at this step all come from writings of m. By the sharing bound, at most D of them appear in the writings of another number n, and each kills at most C writings. Chen waits, before each step, until the numbers are large enough for their count of writings to exceed C × (number of squares removed so far + D). At least one writing survives.
  • Remainder 2. At most m^(1/2000) squares are removed at this step and all are above m^(1/100). A number n below m^(1/100) loses nothing; a number n above it is larger than m^(1/100), so the squares removed number fewer than n^(1/20), because 100 × 1/2000 = 1/20. Each removed square can destroy at most B(n) ≤ n^(1/5) pairs. The loss from this step therefore stays below the n^(3/10) pairs available: in the exponents, 1/20 + 1/5 = 1/4, which is less than 3/10. The squares removed at earlier steps are a fixed finite number, and Chen waits until n is large enough to absorb them too.

Each step also starts far beyond the previous one, so the removed squares lie further and further out, and the set below any fixed height stops changing after finitely many steps. This is what allows infinitely many prunings to add up to a well-defined final set

A = E ∪ B∞

where B∞ is what is left of B after all the removals. Every number above a certain bound is still a sum of four members of A. And since each member a of A has its turn infinitely often, there are infinitely many numbers m, one per turn, that cannot be written without it. Take a away and all of them are lost: A \ {a} is not an asymptotic basis. That holds for every a, including 0, so A is minimal.

A ring nobody has seen

What Chen’s proof delivers is a certainty about a set that stays out of sight. The even squares are all in it. Which odd squares are in it depends on a selection the argument proves possible without making it, and then on an endless pruning whose steps are “large enough” at each turn without a figure attached. Ask whether 49 or 121 hangs on the ring, or from what number onward four members always suffice, and the 49 pages give no answer. They answer the 1980 question itself: among the squares, there is a set in which every member is needed.