Ramanujan's Papers
Download as PDF pdf icon
On the expression of a number in the form $ax^2+by^2+cz^2+du^2 $
Proceedings of the Cambridge Philosophical Society, XIX, 1917, 11 – 21

1. It is well known that all positive integers can be expressed as the sum of four squares. This naturally suggests the question: For what positive integral values of $a, b, c, d,$ can all positive integers be expressed in the form

$$ ax^2 + by^2 + cz^2 + du^2 ? \tag{1.1} $$
I prove in this paper that there are only 55 sets of values of $a,b,c,d$ for which this is true. The more general problem of finding all sets of values of $a,b,c,d$ for which all integers with a finite number of exceptions can be expressed in the form (1.1), is much more difficult and interesting. I have considered only very special cases of this problem, with two variables instead of four; namely, the cases in which (1.1) has one of the special forms
$$ a(x^2 + y^2+ z^2) + bu^2, \tag{1.2} $$
and
$$ a(x^2 + y^2) + b(z^2 + u^2). \tag{1.3} $$
These two cases are comparatively easy to discuss. In this paper I give the discussion of (1.2) only, reserving that of (1.3) for another paper.

2. Let us begin with the first problem. We can suppose, without loss of generality, that

$$ a \leq b \leq c \leq d. \tag{2.1)} $$
if $a > 1$, then 1 cannot be expressed in the form (1.1); and so
$$ a = 1 \tag{2.2} $$
If $b > 2$, then 2 is an exception; and so
$$ 1 \leq b \leq 2. \tag{2.3} $$
We have therefore only to consider the two cases in which (1.1) has one or other of the forms $$x^2 + y^2 + cz^2 + du^2, \: x^2 + 2y^2 + cz^2 + du^2.$$ In the first case, If $c > 3$, then 3 is an exception; and so
$$ 1 \leq c \leq 3. \tag{2.31} $$
In the second case, if $c > 5$, then 5 is an exception; and so
$$ 2 \leq c \leq 5. \tag{2.32} $$
We can now distinguish 7 possible cases.
$$ x^2 + y^2 + z^2 + du^2.\tag{2.41} $$
If $d > 7,7$ is an exception; and so
$$ 1 \leq d \leq 7. \tag{2.411} $$
$$ x^2 + y^2 + 2z^2 + du^2. \tag{2.42} $$
If $d > 14, 14$ is an exception; and so
$$ 2 \leq d \leq 14. \tag{2.421} $$
$$ x^2 + y^2 + 3z^2 + du^2.\tag{2.43} $$
If $d > 6, 6$ is an exception; and so
$$ 3 \leq d \leq 6. \tag{2.431} $$
$$ x^2 + 2y^2 + 2z^2 + du^2.\tag{2.44} $$
If $d > 7, 7$ is an exception; and so
$$ 2 \leq d \leq 7. \tag{2.441} $$
$$ x^2 + 2y^2 + 3z^2 + du^2.\tag{2.45} $$
If $d > 10, 10$ is an exception; and so
$$ 3 \leq d \leq 10. \tag{2.451} $$
$$ x^2 + 2y^2 + 4z^2 + du^2.\tag{2.46} $$
If $d > 14,14$ is an exception; and so
$$ 4 \leq d \leq 14. \tag{2.461} $$
$$ x^2 + 2y^2 + 5z^2 + du^2.\tag{2.47} $$
If $d > 10, 10$ is an exception; and so
$$ 5 \leq d \leq 10. \tag{2.471} $$
We have thus eliminated all possible sets of values of $a,b,c,d,$ except the following 551:

$$\begin{array}{lllll} 1,1,1,1 && 1,2,3,5 && 1,2,4,8 \\[5pt] 1,1,1,2 && 1,2,4,5 && 1,2,5,8 \\[5pt] 1,1,2,2 && 1,2,5,5 && 1,1,2,9 \\[5pt] 1,2,2,2 && 1,1,1,6 && 1,2,3,9 \\[5pt] 1,1,1,3 && 1,1,2,6 && 1,2,4,9 \\[5pt] 1,1,2,3 && 1,2,2,6 && 1,2,5,9 \\[5pt] 1,2,2,3 && 1,1,3,6 && 1,1,2,10 \\[5pt] 1,1,3,3 && 1,2,3,6 && 1,2,3,10 \\[5pt] 1,2,3,3 && 1,2,4,6 && 1,2,4,10 \\[5pt] 1,1,1,4 && 1,2,5,6 && 1,2,5,10 \\[5pt] 1,1,2,4 && 1,1,1,7 && 1,1,2,11 \\[5pt] 1,2,2,4 && 1,1,2,7 && 1,2,4,11 \\[5pt] 1,1,3,4 && 1,2,2,7 && 1,1,2,12 \\[5pt] 1,2,3,4 && 1,2,3,7 && 1,2,4,12 \\[5pt] 1,2,4,4 && 1,2,4,7 && 1,1,2,13 \\[5pt] 1,1,1,5 && 1,2,5,7 && 1,2,4,13 \\[5pt] 1,1,2,5 && 1,1,2,8 && 1,1,2,14 \\[5pt] 1,2,2,5 && 1,2,3,8 && 1,2,4,14 \\[5pt] 1,1,3,5 && && \end{array}$$

Of these 55 forms, the 12 forms

$$\begin{array}{lllll} 1,1,1,2 & & 1,1,2,4 && 1,2,4,8 \\[5pt] 1,1,2,2 && 1,2,2,4 && 1,1,3,3 \\[5pt] 1,2,2,2 && 1,2,4,4 && 1,2,3,6 \\[5pt] 1,1,1,4 && 1,1,2,8 && 1,2,5,10 \end{array}$$ have been already considered by Liouville and Pepin2.

3. I shall now prove that all integers can be expressed in each of the 55 forms. In order to prove this we shall consider the seven cases (2.41)(2.47) of the previous section separately. We shall require the following results concerning ternary quadratic arithmetical forms. The necessary and sufficient condition that a number cannot be expressed in the form

$$ x^2 + y^2 + z^2 \tag{3.1} $$
is that it should be of the form
$$ 4^\lambda ( 8 \mu + 7), \:\:\:(\lambda = 0,1,2, \cdots, \mu = 0,1,2, \cdots). \tag{3.11} $$
Similarly the necessary and sufficient conditions that a number cannot be expressed in the forms
$$ x^2 + y^2 + 2z^2, \tag{3.2} $$
$$ x^2 + y^2 + 3z^2, \tag{3.3} $$
$$ x^2 + 2y^2 + 2z^2, \tag{3.4} $$
$$ x^2 + 2y^2 + 3z^2, \tag{3.5} $$
$$ x^2 + 2y^2 + 4z^2, \tag{3.6} $$
$$ x^2 + 2y^2 + 5z^2, \tag{3.7} $$
are that it should be of the forms
$$ 4^\lambda (16 \mu + 14), \tag{3.21} $$
$$ 9^\lambda (9 \mu + 6), \tag{3.31} $$
$$ 4^\lambda (8 \mu + 7), \tag{3.41} $$
$$ 4^\lambda (16 \mu + 10), \tag{3.51} $$
$$ 4^\lambda (16 \mu + 14), \tag{3.61} $$
$$ 25^\lambda (25 \mu + 10) \:\:{\rm or}\:\:25^\lambda (25\mu + 15). \href{#p20_en3}{^3} \tag{3.71} $$
The result concerning $x^2 + y^2 + z^2$ is due to Cauchy: for a proof see. Landau, Handbuch der Lehre von der Verteilung der Primzahlen, p.550. The other results can be proved in an analogous manner. The form $x^2 + y^2 + 2z^2$ has been considered by Lebesgue, and the form $x^2+y^2+3z^2$ by Dirichlet. For references see Bachmann, Zahlentheorie, Vol,IV, p.149.

4. We proceed to consider the seven cases (2.41)(2.47). In the first case we have to shew that any number $N$ can be expressed in the form

$$ N = x^2 + y^2 + z^2 + du^2, \tag{4.1} $$
$d$ being any integer between 1 and 7 inclusive.

If $N$ is not of the form $4^\lambda (8 \mu + 7)$, we can satisfy (4.1) with $u=0$. We may therefore suppose that $N = 4^\lambda(8 \mu+7)$. First, suppose that $d$ has one of the values 1,2,4,5,6. Take $u=2^\lambda$. Then the number $$N - du^2 = 4^\lambda (8\mu + 7 -d)$$ is plainly not of the form $4^\lambda(8 \mu +7)$, and is therefore expressible in the form $x^2 + y^2 + z^2$.

Next, let $d = 3$. If $\mu = 0$, take $u=2^\lambda$. Then $$N-du^2=4^{\lambda +1}.$$ If $\mu \geq 1,$ take $u = 2^{\lambda+1}$. Then $$N - du^2 = 4^{\lambda} (8 \mu - 5).$$ In neither of these cases is $N - du^2$ of the form $4^\lambda(8\mu+7)$, and therefore in either case it can be expressed in the form $x^2+y^2+z^2.$

Finally, let $d=7$. If $\mu$ is equal to 0,1, or 2, take $u=2^\lambda$. Then $N - du^2$ is equal to $0,2\cdot 4^{\lambda +1}$, or $4^{\lambda +2}$. If $\mu \geq 3$, take $u = 2^{\lambda+1}$. Then $$N - du^2 = 4^\lambda(8\mu-21).$$ Therefore in either case $N-du^2$ can be expressed in the form $x^2+y^2+z^2$. Thus in all cases $N$ is expressible in the form (4.1). Similarly we can dispose of the remaining cases, with the help of the results stated in $\S$ 3. Thus in discussing (2.42) we use the theorem that every number not of the form (3.21) can be expressed in the form (3.2). The proofs differ only in detail, and it is not worth while to state them at length.

5. We have seen that all integers without any exception can be expressed in the form

$$ m(x^2 + y^2 + z^2) + nu^2, \tag{5.1} $$
when $$m =1, \:\: 1 \leq n \leq 7,$$ and $$m = 2, \:\: n=1.$$ We shall now consider the values of $m$ and $n$ for which all integers with a finite number of exceptions can be expressed in the form (5.1). In the first place $m$ must be 1 or 2. For, if $m > 2$, we can choose an integer $\nu$ so that $$ nu^2 \not\equiv \nu (\mbox{mod }\: m)$$ for all values of $u$. Then $$ \frac{(m \mu+\nu)-nu^2}{m},$$ where $\mu$ is any positive integer, is not an integer; and so $m\mu + \nu$ can certainly not be expressed in the form (5.1).

We have therefore only to consider the two cases in which $m$ is 1 or 2. First let us consider the form

$$ x^2 + y^2 + z^2 + nu^2.\tag{5.2} $$
I shall shew that, when $n$ has any of the values
$$ 1,4,9,17,25,36,68,100, \tag{5.21} $$
or is of any of the forms
$$ 4k + 2, \: 4k+3, \: 8k+5, \: 16k + 12, \: 32k + 20, \tag{5.22} $$
then all integers save a finite number, and in fact all integers from $4n$ onwards at any rate, can be expressed in the form (5.2); but that for the remaining values of $n$ there is an infinity of integers which cannot be expressed in the form required.

In proving the first result we need obviously only consider numbers of the form $4^\lambda(8\mu+7)$ greater than $n$, since otherwise we may take $u=0$. The numbers of this form less than $n$ are plainly among the exceptions.

6. I shall consider the various cases which may arise in order of simplicity.

$$ n \equiv 0 (\mbox{mod }\: 8).\tag{6.1} $$
There are an infinity of exceptions. For suppose that $$ N = 8\mu + 7.$$ Then the number $$N - nu^2 \equiv 7 (\mbox{mod }\: 8)$$ cannot be expressed in the form $x^2 + y^2 + z^2$.
$$ n \equiv 2 (\mbox{mod }\: 4).\tag{6.2} $$
There is only a finite number of exceptions. In proving this we may suppose that $N = 4^\lambda(8\mu+7)$. Take $u=1$. Then the number $$N - nu^2 = 4^\lambda (8\mu+7)-n$$ is congruent to $1,2,5$ or 6 to modulus 8, and so can be expressed in the form $x^2+y^2+z^2$. Hence the only numbers which cannot be expressed in the form (5.2) in this case are the numbers of the form $4^\lambda(8\mu+7)$ not exceeding $n$.
$$ n \equiv 5 (\mbox{mod }\: 8).\tag{6.3} $$
There is only a finite number of exceptions. We may suppose again that $N = 4^\lambda(8\mu+7)$. First, let $\lambda \neq 1$. Take $u=1$. Then $$N - nu^2 = 4^\lambda (8\mu + 7) - n \equiv 2 \:\:\mbox{or }\:\: 3 (\mbox{mod }\: 8).$$ If $\lambda=1$ we cannot take $u=1$, since $$N - n \equiv 7 (\mbox{mod }\: 8);$$ so we take $u=2$. Then $$N- nu^2 = 4^\lambda (8\mu + 7) - 4n \equiv 8 (\mbox{mod }\:32).$$ In either of these cases $N - nu^2$ is of the form $x^2 + y^2 + z^2$.

Hence the only numbers which cannot be expressed in the form (5.2) are those of the form $4^\lambda (8\mu+7)$ not exceeding $n$, and those of the form $4(8\mu + 7)$ lying between $n$ and $4n$.

$$ n \equiv 3 (\mbox{mod }\: 4).\tag{6.4} $$
There is only a finite number of exceptions. Take $$N = 4^\lambda (8\mu+7).$$ if $\lambda \geq 1,$ take $u=1$. Then $$N - nu^2 \equiv 1\:\:\mbox{or }\:\: 5(\mbox{mod }\: 8).$$ if $\lambda=0$, take $u=2$. Then $$N - nu^2 \equiv 3(\mbox{mod }\: 8).$$ In either case the proof is completed as before.

In order to determine precisely which are the exceptional numbers, we must consider more particularly the numbers between $n$ and $4n$ for which $\lambda=0$. For these $u$ must be 1, and $$N - nu^2 \equiv 0 (\mbox{mod }\: 4).$$ But the numbers which are multiples of 4 and which cannot be expressed in the form $x^2 + y^2 + z^2$ are the numbers $$4^\kappa (8\nu+7), \:\:(\kappa = 1,2,3, \ldots, \nu = 0,1,2,3, \ldots).$$ The exceptions required are therefore those of the numbers

$$ n + 4^\kappa (8\nu+7)\tag{6.41} $$
which lie between $n$ and $4n$ and are of the form
$$ 8 \mu + 7 \tag{6.42}. $$

Now in order that (6.41) may be of the form (6.42), $\kappa$ must be 1 if $n$ is of the form $8k+3$, and $\kappa$ may have any of the values 2, 3, 4, $\ldots$ if $n$ is of the form $8k+7$. Thus the only numbers which cannot be expressed in the form (5.2), in this case, are those of the form $4^\lambda(8\mu+7)$ less than $n$ and those of the form $$n + 4^\kappa(8\nu+7), \:\:\:\: (\nu = 0,1,2,3,\cdots),$$ lying between $n$ and $4n$, where $\kappa=1$ if $n$ is of the form $8k + 3$, and $\kappa >1$ if $n$ is of the form $8k + 7$.

$$ n \equiv 1 (\mbox{mod }\: 8).\tag{6.5} $$
In this case we have to prove that

(i) if $n \geq 33,$ there is an infinity of integers which cannot be expressed in the form (5.2); (ii) if $n$ is $1,9,17,$ or 25, there is only a finite number of exceptions.

In order to prove (i) suppose that $N = 7.4^\lambda$. Then obviously $u$ cannot be zero. But if $u$ is not zero $u^2$ is always of the form $4^\kappa (8\nu+1)$. Hence $$N - nu^2 = 7\cdot 4^\lambda - n \cdot 4^\kappa (8\nu + 1).$$ Since $n \geq 33, \lambda $ must be greater than or equal to $\kappa +2,$ to ensure that the right-hand side shall not be negative. Hence $$N - nu^2 = 4^\kappa (8k + 7),$$ where $$k = 14\cdot 4^{\lambda-\kappa-2} - n\nu - \frac{1}{8} (n+7)$$ is an integer; and so $N - nu^2$ is not of the form $x^2 + y^2 + z^2$.

In order to prove (ii) we may suppose, as usual, that $$N = 4^\lambda (8\mu+7).$$ If $\lambda=0$, take $u=1$. Then $$N-nu^2=8\mu +7-n\equiv 6\pmod{8}.$$ If $\lambda\geq 1$, take $u=2^{\lambda -1}$. Then $$ N - nu^2 = 4^{\lambda-1} (8k + 3),$$ where $$ k = 4 (\mu+1) - \frac{1}{8} (n+7).$$ In either case the proof may be completed as before. Thus the only numbers which cannot be expressed in the form (5.2), in this case, are those of the form $8 \mu + 7$ not exceeding $n$. In other words, there is no exception when $n =1$; 7 is the only exception when $n=9$; 7 and 15 are the only exceptions when $n = 17$; 7, 15 and 23 are the only exceptions when $ n=25.$

$$ n \equiv 4 (\mbox{mod} \: 32).\tag{6.6} $$
By arguments similar to those used in (6.5), we can shew that

(i) if $n \geq 132$, there is an infinity of integers which cannot be expressed in the form (5.2); (ii) if $n$ is equal to 4, 36, 68, or 100, there is only a finite number of exceptions, namely the numbers of the form $4^\lambda (8\mu + 7)$ not exceeding $n$.

$$ n \equiv 20 (\mbox{mod }\: 32).\tag{6.7} $$
By arguments similar to those used in (6.3), we can shew that the only numbers which cannot be expressed in the form (5.2) are those of the form $4^\lambda(8\mu+7)$ not exceeding $n$, and those of the form $4^2 (8\mu+7)$ lying between $n$ and $4n$.
$$ n \equiv 12 (\mbox{mod }\: 16).\tag{6.8} $$
By arguments similar to those used in (6.4), we can shew that the only numbers which cannot be expressed in the form (5.2) are those of the form $4^\lambda (8\mu + 7)$ less than $n$, and those of the form $$n + 4^\kappa (8 \nu + 7), \:\:\:\:(\nu = 0,1,2,3,\ldots),$$ lying between $n$ and $4n$ where $\kappa = 2$ if $n$ is of the form $4(8k + 3)$ and $\kappa > 2$ if $n$ is of the form $4(8k+7).$ We have thus completed the discussion of the form (5.2), and determined the exceptional values of $N$ precisely whenever they are finite in number.

7. We shall proceed to consider the form

$$ 2(x^2 + y^2 + z^2) + nu^2. \tag{7.1} $$
In the first place $n$ must be odd; otherwise the odd numbers cannot be expressed in this form. Suppose then that $n$ is odd. I shall shew that all integers save a finite number can be expressed in the form (7.1); and that the numbers which cannot be so expressed are

(i) the odd numbers less than $n$, (ii) the numbers of the form $4^\lambda(16\mu + 14)$ less that $4n$, (iii) the numbers of the form $n + 4^\lambda(16\mu + 14)$ greater than $n$ less than $9n$, (iv) the numbers of the form $$cn + 4^\kappa (16\nu + 14), \:\:\:\:\:\: (\nu = 0,1,2,3,\ldots),$$

greater than $9n$ and less than $25n$, where $c=1$ if $n \equiv 1 (\mbox{mod } 4), c = 9$ if $ n \equiv 3 (\mbox{mod } 4)$, $\kappa = 2$ if $n^2 \equiv 1 (\mbox{mod } 16)$, and $\kappa > 2$ if $n^2 \equiv 9 (\mbox{mod } 16)$. First, let us suppose $N$ even. Then, since $n$ is odd and $N$ is even, it is clear that $u$ must be even. Suppose then that $$ u = 2 v, \:\: N = 2M.$$ We have to shew that $M$ can be expressed in the form

$$ x^2 + y^2 + z^2 + 2nv^2. \tag{7.2} $$
Since $2n \equiv 2 (\mbox{mod }4)$, it follows from (6.2) that all integers except those which are less than $2n$ and of the form $4^\lambda(8\mu + 7)$ can be expressed in the form (7.2). Hence the only even integers which cannot be expressed in the form (7.1) are those of the form $4^\lambda(16\mu + 14)$ less than $4n$. This completes the discussion of the case in which $N$ is even. If $N$ is odd the discussion is more difficult. In the first place, all odd numbers less than $n$ are plainly among the exceptions. Secondly, since $n$ and $N$ are both odd, $u$ must also be odd. We can therefore suppose that $$N = n + 2M, \:\: u^2 = 1 +8 \Delta,$$ where $\Delta$ is an integer of the form $\frac{1}{2}k(k+1)$, so that $\Delta$ may assume the values 0, 1, 3, 6, $\ldots$ And we have to consider whether $n + 2M$ can be expressed in the form $$2(x^2 + y^2 + z^2) + n(1 + 8 \Delta),$$ or $M$ in the form
$$ x^2 + y^2 + z^2 + 4n \Delta. \tag{7.3} $$
If $M$ is not of the form $4^\lambda(8\mu + 7)$, we can take $\Delta = 0$. If it is of this form, and less than $4n$, it is plainly an exception. These numbers give rise to the exceptions specified in (iii) of section 7. We may therefore suppose that $M$ is of the form $4^\lambda(8\mu + 7)$ and greater than $4n$.

8. In order to complete the discussion, we must consider the three cases in which $n \equiv 1\pmod{8}$, $n \equiv 5\pmod{8}$, and $n \equiv 3\pmod{4}$ separately.

$$ n \equiv 1 \:\:\mbox{mod } \: 8).\tag{8.1} $$
If $\lambda$ is equal to 0,1, or 2, take $\Delta = 1$. Then $$ M - 4n \Delta = 4^\lambda (8\mu + 7)-4n$$ is of one of the forms $$8 \nu + 3, \:\: 4(8\nu+3), \:\: 4(8\nu + 6).$$ If $\lambda \geq 3$ we cannot take $\Delta = 1$, since $M - 4n \Delta$ assumes the form $4(8\nu + 7)$; so we take $\Delta= 3$. Then $$M - 4n = \Delta 4^\lambda (8\mu + 7) - 12n$$ is of the form $4(8\nu + 5)$. In either of these cases $M - 4n \Delta$ is of the form $x^2 + y^2 + z^2$. Hence the only values of $M$, other than those already specified which cannot be expressed in the form (7.3), are those of the form $$4^\kappa (8 \nu + 7), \:\:\:\:\: (\nu = 0,1,2,\ldots , \kappa \gt 2),$$ lying between $4n$ and $12n$. In other words, the only numbers greater than $9n$ which cannot be expressed in the form (7.1), in this case, are the numbers of the form $$ n + 4^\kappa (8 \nu +7), \:\:\:\: (\nu = 0,1,2,\ldots , \kappa > 2),$$ lying between $9n$ and $25n$.
$$ n \equiv 5 \:\:\:{\rm mod}\:\: 8).\tag{8.2} $$
if $\lambda \neq 2$, take $\Delta = 1$. Then $$ M - 4n \Delta = 4^\lambda (8\mu + 7) - 4n$$ is of one of the forms $$8 \nu + 3, \:\: 4(8\nu+2), \:\: 4(8\nu+3).$$ If $\lambda = 2$, we cannot take $\Delta =1$, since $M - 4n \Delta$ assumes the form $4(8\nu + 7)$; so we take $\Delta = 3$. Then $$ M - 4n \Delta = 4^\lambda (8\mu + 7)-12n$$ is of the form $4(8\nu + 5)$. In either of these cases $M - 4n \Delta$ is of the form $x^2 + y^2 + z^2$. Hence the only values of $M$, other than those already specified, which cannot be expressed in the form (7.3), are those of the form $16(8\mu + 7)$ lying between $4n$ and $12n$. In other words, the only numbers greater than $9n$ which cannot be expressed in the form (7.1), in this case, are the numbers of the form $n + 4^2 (16\mu + 14)$ lying between $9n$ and $25n$.
$$ n \equiv 3 \:\:\:(\mbox{mod } \: 4).\tag{8.3} $$

If $\lambda \neq 1$, take $\Delta =1 $. Then $$M - 4n \Delta = 4^\lambda (8\mu + 7) - 4n$$ is of one of the forms $$ 8 \nu + 3, \:\:\: 4(4\nu+1).$$ If $\lambda = 1$, take $\Delta = 3$. Then $$ M - 4n \Delta = 4(8\mu + 7) - 12n$$ is of the form $4(4\nu + 2)$. In either of these cases $M - 4n \Delta$ is of the form $x^2 + y^2 + z^2$.

This completes the proof that there is only a finite number of exceptions. In order to determine what they are in this case, we have to consider the values of $M$, between $4n$ and $12n$, for which $\Delta = 1$ and $$M - 4n \Delta = 4 (8\mu + 7 - n) \equiv 0 \:\:\mbox{mod }\: 16).$$ But the numbers which are multiples of 16 and which cannot be expressed in the form $x^2 +y^2 +z^2$ are the numbers $$4^\kappa (8\nu + 7), \:\:\: (\kappa = 2,3,4,\ldots , \nu = 0,1,2,\ldots ).$$ The exceptional values of $M$ required are therefore those of the numbers

$$ 4n + 4^\kappa (8\nu + 7) \tag{8.31} $$
which lie between $4n$ and $12n$ and are of the form
$$ 4(8\mu + 7). \tag{8.32} $$
But in order that (8.31) may be of the form (8.32), $\kappa$ must be 2 if $n$ is of the form $8k + 3$, and $\kappa$ may have any of the values 3, 4, 5, $\ldots$ if $n$ is of the form $8k + 7$. It follows that the only numbers greater than $9n$ which cannot be expressed in the form (7.1), in this case, are the numbers of the form $$9n + 4^\kappa (16\nu + 14), \:\:\:\:(\nu = 0,1,2,\ldots),$$ lying between $9n$ and $25n$, where $\kappa = 2$ if $n$ is of the form $8k + 3$, and $\kappa > 2$ if $n$ is of the form $8k + 7$. This completes the proof of the results stated in section 7.

Endnotes

1L. E. Dickson (Bulletin of the Ameraican Math. Soc. [vol XXXIII (1927), pp. 63 – 70]) has pointed out that Ramanujan has overlooked the fact that (1, 2, 5, 5) does not represent 15. Consequently, there are only 54 forms.

2There are a large number of short notes by Liouville in Vols. V – VIII of the second series of his Journal. See also Pepin, ibid., Ser.4, Vol. VI, pp.1 – 67. The object of the work of Liouville and Pepin is rather different from mine, viz., to determine, in a number of special cases, explicit formulæ for the number of representations, in terms of other arithmetical functions.

3Results (3.11)(3.71) may tempt us to suppose that there are similar simple results for the form $ax^2 + by^2 + cz^2$, whatever are the values of $a,b,c$. It appears, however, that in most cases there are no such simple results. For instance, the numbers which are not of the form $x^2+2y^2+10z^2$ are those belonging to one or other of the four classes $$25^\lambda (8\mu+7), \:\: 25^\lambda(25\mu+5), \:\: 25^\lambda(25\mu+15), \:\: 25^\lambda(25\mu+20).$$ Here some of the numbers of the first class belong also to one of the next three classes. Again, the even numbers which are not of the form $x^2 + y^2+10z^2$ are the numbers $$ 4^\lambda (16\mu + 6),$$ while the odd numbers that are not of the form, viz. $$3,7,21,31,33,43,67,79,87,133,217,219,223,253,307,391, \cdots$$ do not seem to obey any simple law. I have succeeded in finding a law in the following six simple cases: $$x^2 + y^2 + 4z^2,$$ $$x^2 + y^2 + 5z^2,$$ $$x^2 + y^2 + 6z^2,$$ $$x^2 + y^2 + 8z^2,$$ $$x^2 + 2y^2 + 6z^2,$$ $$x^2 + 2y^2 + 8z^2.$$ The numbers which are not of these forms are the numbers \begin{eqnarray*} 4^\lambda(8\mu+7) \:\:\mbox{ or }\:\: 8\mu+3, \\ 4^\lambda(8\mu+3), \\ 9^\lambda(9\mu+3),\\ 4^\lambda(16\mu+14), \:\:16\mu+6, \:\:\mbox{ or }\:\: 4\mu+3,\\ 4^\lambda(8\mu+5),\\ 4^\lambda(8\mu+7) \:\:\mbox{ or }\:\: 8\mu+5. \end{eqnarray*}