Section 14.2 More Sums of Squares and Beyond
There are many interesting questions one can ask about sums of squares we have not even touched upon. Each of these is very worthy of independent study by undergraduates, and also ideal for computer exploration.
Subsection 14.2.1 Summing more squares
Fact 14.2.1. Sums of three squares.
A positive integer may be written as a sum of three squares if and only if it does not have the form of a product of an even power of two times an odd number which is congruent to seven modulo eight.
Proof.
We will skip the proof, but see Exercise 14.4.4 and Exercise 14.4.6.
One might think at this point that even an arbitrary sum of squares might not represent every number, but we have this result (see also Exercise 14.4.7), first conjectured by our old friend Bachet.
Fact 14.2.2. Lagrange's four square theorem.
Any nonnegative integer may be written as a sum of four squares.
Proof.
There are algebraic proofs using facts similar to Fact 14.1.8, and also geometric proofs using (Minkowkskian, see Remark 13.4.1) ideas similar to those in Subsection 13.4.4. Both types of proof are interesting, because on the one hand an algebraic proof can use the extension of the complex numbers called the quaternions 2 , while on the other hand a geometric proof shows that geometric ideas can still work in more than two dimensions.
One can generalize in many ways.
Example 14.2.3.
For example, one can ask how many ways one can write a number as a sum of three, four, etc. squares. In Exercise 13.7.7 we defined \(r_2(n)\) as giving the number of ways to write \(n\) as a sum of two squares; the equivalent functions here would be \(r_k(n)\) for \(n\geq 1\text{.}\) In that case, Lagrange's four square theorem above could be more succinctly stated as
But in general one may want to be able to compute this, or to give bounds for it as a function of \(n\text{.}\) If you just can't wait to learn more about the sort of things known about \(r_k(n)\text{,}\) see Theorem 25.8.1.
Subsection 14.2.2 Beyond squares
There are other directions one can generalize our questions. For instance:
Question 14.2.4.
What numbers can be written as a sum of …
Two cubes?
Three cubes?
\(k\) cubes?
It turns out that any number can be written as a sum of at most nine cubes. In the first half of the twentieth century, American mathematician L. E. Dickson proved this, and with the assistance of very substantial tables generated by hand by some of his assistants (before the advent of the digital computer!) he showed that every number except \(23\) and \(239\) can be represented by eight or fewer cubes!
Alternately, one could keep the number of powers the same, but change the powers.
Question 14.2.5.
What numbers can be written as a sum of …
Two cubes?
Two fourth powers?
Two \(n\)th powers?
The reader should feel free to explore this in Exercise 14.4.8. Note that the answers for odd powers will be very different if one allows negative numbers! For a recent example of theory working with massive computation, see this article about writing \(33\) as a sum of three cubes 3 .
Now it is time to recall our discussions in Section 3.4, alluded to in Remark 13.1.4. In that situation, we essentially were looking for integer solutions to
In fact, we characterized such triples \(x,y,z\) in Theorem 3.4.6.
But we can reinterpret this as a question in this context – when is a perfect square a sum of two squares? In that case, the previous question can be further specialized:
Question 14.2.6.
What perfect …
Cubes can be written as a sum of two cubes?
Fourth powers can be written as a sum of two fourth powers?
-
What about \(n\)th powers? What (integer) solutions are there to this?
\begin{equation*} x^n+y^n=z^n \end{equation*}
Ordinarily, as author I would now send the reader to explore some of these questions in Exercise 14.4.9. However, as we saw in Exercise 3.6.17 (see the discussion at Corollary 3.4.13), Fermat already proved that other than trivial solutions (such as writing \(0^4+(-1)^4=1^4\)) there were no solutions in the case \(n=4\text{.}\) This is the simplest case of Fact 14.2.7. Euler nearly proved the same statement for \(n=3\text{,}\) but made a hidden assumption – the same one we will examine shortly in discussing Fact 15.3.5 (as there, see [E.4.14] for a correct proof).
There is a huge field (algebraic number theory) which developed from this, but we will not digress further upon it. If you recall the discussion in Subsection 11.6.4, it turns out Germain originally investigated \(n\) in the case where it is one of the numbers now known as Germain primes (recall Subsection 11.6.4), and much of the field of algebraic number theory developed from pursuing this question in the nineteenth and early twentieth centuries. Finally in 1995 Andrew Wiles, along with his former student Richard Taylor, proved the following result via a very deep investigation of (among other things) elliptic curves (recall the brief mention in Section 3.5).
Fact 14.2.7. Fermat's Last Theorem.
For \(n>2\text{,}\) there are no three positive integers \(x,y,z\) such that
Proof.
Hanc marginis exiguitas non caperet.
Subsection 14.2.3 Waring's problem
The English mathematician Edward Waring asked for an outrageous generalization of these questions of sums of powers, which is still an active area of research called Waring's Problem. The most important result is truly spectacular.
Fact 14.2.8. Hilbert-Waring Theorem.
For each positive integer power \(m\text{,}\) there is a number \(g(m)\) such that every nonnegative integer can be written as a sum of \(g(m)\) \(m\)th powers.
There is even a potential formula that
This has been verified for \(m\) out to many millions, and is conjectured to always be true. The aforementioned Dickson notes that this formula was first conjectured by Euler's son, Johann Albrecht.
On the other hand, the question of finding the smallest integer \(G(m)\) (for a given \(m\)) such that every sufficiently large number can be written as a sum of that many \(m\)th powers is still wide open. Perhaps you will explore it? (See e.g. Exercise 14.4.10 and Exercise 14.4.11.)