# Waring's problem

Short description: Mathematical problem in number theory

In number theory, Waring's problem asks whether each natural number k has an associated positive integer s such that every natural number is the sum of at most s natural numbers raised to the power k. For example, every natural number is the sum of at most 4 squares, 9 cubes, or 19 fourth powers. Waring's problem was proposed in 1770 by Edward Waring, after whom it is named. Its affirmative answer, known as the Hilbert–Waring theorem, was provided by Hilbert in 1909.[1] Waring's problem has its own Mathematics Subject Classification, 11P05, "Waring's problem and variants".

## Relationship with Lagrange's four-square theorem

Long before Waring posed his problem, Diophantus had asked whether every positive integer could be represented as the sum of four perfect squares greater than or equal to zero. This question later became known as Bachet's conjecture, after the 1621 translation of Diophantus by Claude Gaspard Bachet de Méziriac, and it was solved by Joseph-Louis Lagrange in his four-square theorem in 1770, the same year Waring made his conjecture. Waring sought to generalize this problem by trying to represent all positive integers as the sum of cubes, integers to the fourth power, and so forth, to show that any positive integer may be represented as the sum of other integers raised to a specific exponent, and that there was always a maximum number of integers raised to a certain exponent required to represent all positive integers in this way.

## The number g(k)

For every $\displaystyle{ k }$, let $\displaystyle{ g(k) }$ denote the minimum number $\displaystyle{ s }$ of $\displaystyle{ k }$th powers of naturals needed to represent all positive integers. Every positive integer is the sum of one first power, itself, so $\displaystyle{ g(1) = 1 }$. Some simple computations show that 7 requires 4 squares, 23 requires 9 cubes,[2] and 79 requires 19 fourth powers; these examples show that $\displaystyle{ g(2) \ge 4 }$, $\displaystyle{ g(3) \ge 9 }$, and $\displaystyle{ g(4) \ge 19 }$. Waring conjectured that these lower bounds were in fact exact values.

Lagrange's four-square theorem of 1770 states that every natural number is the sum of at most four squares. Since three squares are not enough, this theorem establishes $\displaystyle{ g(2) = 4 }$. Lagrange's four-square theorem was conjectured in Bachet's 1621 edition of Diophantus's Arithmetica; Fermat claimed to have a proof, but did not publish it.[3]

Over the years various bounds were established, using increasingly sophisticated and complex proof techniques. For example, Liouville showed that $\displaystyle{ g(4) }$ is at most 53. Hardy and Littlewood showed that all sufficiently large numbers are the sum of at most 19 fourth powers.

That $\displaystyle{ g(3) = 9 }$ was established from 1909 to 1912 by Wieferich[4] and A. J. Kempner,[5] $\displaystyle{ g(4) = 19 }$ in 1986 by R. Balasubramanian, F. Dress, and J.-M. Deshouillers,[6][7] $\displaystyle{ g(5) = 37 }$ in 1964 by Chen Jingrun, and $\displaystyle{ g(6) = 73 }$ in 1940 by Pillai.[8]

Let $\displaystyle{ \lfloor x\rfloor }$ and $\displaystyle{ \{x\} }$ respectively denote the integral and fractional part of a positive real number $\displaystyle{ x }$. Given the number $\displaystyle{ c = 2^k \lfloor(3/2)^k\rfloor - 1 \lt 3^k }$, only $\displaystyle{ 2^k }$ and $\displaystyle{ 1^k }$ can be used to represent $\displaystyle{ c }$; the most economical representation requires $\displaystyle{ \lfloor(3/2)^k\rfloor - 1 }$ terms of $\displaystyle{ 2^k }$ and $\displaystyle{ 2^k - 1 }$ terms of $\displaystyle{ 1^k }$. It follows that $\displaystyle{ g(k) }$ is at least as large as $\displaystyle{ 2^k + \lfloor(3/2)^k\rfloor - 2 }$. This was noted by J. A. Euler, the son of Leonhard Euler, in about 1772.[9] Later work by Dickson, Pillai, Rubugunday, Niven[10] and many others has proved that

$\displaystyle{ g(k) = \begin{cases} 2^k + \lfloor(3/2)^k\rfloor - 2 &\text{if}\quad 2^k \{(3/2)^k\} + \lfloor(3/2)^k\rfloor \le 2^k, \\ 2^k + \lfloor(3/2)^k\rfloor + \lfloor(4/3)^k\rfloor - 2 &\text{if}\quad 2^k \{(3/2)^k\} + \lfloor(3/2)^k\rfloor \gt 2^k \text{ and } \lfloor(4/3)^k\rfloor \lfloor(3/2)^k\rfloor + \lfloor(4/3)^k\rfloor + \lfloor(3/2)^k\rfloor = 2^k, \\ 2^k + \lfloor(3/2)^k\rfloor + \lfloor(4/3)^k\rfloor - 3 &\text{if}\quad 2^k \{(3/2)^k\} + \lfloor(3/2)^k\rfloor \gt 2^k \text{ and } \lfloor(4/3)^k\rfloor \lfloor(3/2)^k\rfloor + \lfloor(4/3)^k\rfloor + \lfloor(3/2)^k\rfloor \gt 2^k. \end{cases} }$

No value of $\displaystyle{ k }$ is known for which $\displaystyle{ 2^k\{(3/2)^k\} + \lfloor(3/2)^k\rfloor \gt 2^k }$. Mahler[11] proved that there can only be a finite number of such $\displaystyle{ k }$, and Kubina and Wunderlich[12] have shown that any such $\displaystyle{ k }$ must satisfy $\displaystyle{ k \gt 471\,600\,000 }$. Thus it is conjectured that this never happens, that is, $\displaystyle{ g(k) = 2^k + \lfloor(3/2)^k\rfloor - 2 }$ for every positive integer $\displaystyle{ k }$.

The first few values of $\displaystyle{ g(k) }$ are:

1, 4, 9, 19, 37, 73, 143, 279, 548, 1079, 2132, 4223, 8384, 16673, 33203, 66190, 132055, 263619, 526502, 1051899, ... (sequence A002804 in the OEIS).

## The number G(k)

From the work of Hardy and Littlewood, the related quantity G(k) was studied with g(k). G(k) is defined to be the least positive integer s such that every sufficiently large integer (i.e. every integer greater than some constant) can be represented as a sum of at most s positive integers to the power of k. Clearly, G(1) = 1. Since squares are congruent to 0, 1, or 4 (mod 8), no integer congruent to 7 (mod 8) can be represented as a sum of three squares, implying that G(2) ≥ 4. Since G(k) ≤ g(k) for all k, this shows that G(2) = 4. Davenport showed[13] that G(4) = 16 in 1939, by demonstrating that any sufficiently large number congruent to 1 through 14 mod 16 could be written as a sum of 14 fourth powers (Vaughan in 1985 and 1989 reduced the 14 successively to 13 and 12). The exact value of G(k) is unknown for any other k, but there exist bounds.

### Lower bounds for G(k)

Bounds
1 = G(1) = 1
4 = G(2) = 4
4 ≤ G(3) ≤ 7
16 = G(4) = 16
6 ≤ G(5) ≤ 17
9 ≤ G(6) ≤ 24
8 ≤ G(7) ≤ 33
32 ≤ G(8) ≤ 42
13 ≤ G(9) ≤ 50
12 ≤ G(10) ≤ 59
12 ≤ G(11) ≤ 67
16 ≤ G(12) ≤ 76
14 ≤ G(13) ≤ 84
15 ≤ G(14) ≤ 92
16 ≤ G(15) ≤ 100
64 ≤ G(16) ≤ 109
18 ≤ G(17) ≤ 117
27 ≤ G(18) ≤ 125
20 ≤ G(19) ≤ 134
25 ≤ G(20) ≤ 142

The number G(k) is greater than or equal to

 2r+2 if k = 2r with r ≥ 2, or k = 3 × 2r; pr+1 if p is a prime greater than 2 and k = pr(p − 1); (pr+1 − 1)/2 if p is a prime greater than 2 and k = pr(p − 1)/2; k + 1 for all integers k greater than 1.

In the absence of congruence restrictions, a density argument suggests that G(k) should equal k + 1.

### Upper bounds for G(k)

G(3) is at least 4 (since cubes are congruent to 0, 1 or −1 mod 9); for numbers less than 1.3×109, 1290740 is the last to require 6 cubes, and the number of numbers between N and 2N requiring 5 cubes drops off with increasing N at sufficient speed to have people believe that G(3) = 4;[14] the largest number now known not to be a sum of 4 cubes is 7373170279850,[15] and the authors give reasonable arguments there that this may be the largest possible. The upper bound G(3) ≤ 7 is due to Linnik in 1943.[16] (All nonnegative integers require at most 9 cubes, and the largest integers requiring 9, 8, 7, 6 and 5 cubes are conjectured to be 239, 454, 8042, 1290740 and 7373170279850, respectively.)

13792 is the largest number to require 17 fourth powers (Deshouillers, Hennecart and Landreau showed in 2000[17] that every number between 13793 and 10245 required at most 16, and Kawada, Wooley and Deshouillers extended Davenport's 1939 result to show that every number above 10220 required no more than 16). Numbers of the form 31·16n always require 16 fourth powers.

617597724 is the last number less than 1.3×109 that requires 10 fifth powers, and 51033617 is the last number less than 1.3×109 that requires 11.

The upper bounds on the right with k = 5, 6, ..., 20 are due to Vaughan and Wooley.[18]

Using his improved Hardy-Littlewood method, I. M. Vinogradov published numerous refinements leading to

$\displaystyle{ G(k)\le k(3\log k + 11) }$

in 1947 and, ultimately,

$\displaystyle{ G(k) \le k(2\log k + 2\log\log k + C\log\log\log k) }$

for an unspecified constant C and sufficiently large k in 1959.

Applying his p-adic form of the Hardy–Littlewood–Ramanujan–Vinogradov method to estimating trigonometric sums, in which the summation is taken over numbers with small prime divisors, Anatolii Alexeevitch Karatsuba obtained[19] (1985) a new estimate of the Hardy function $\displaystyle{ G(k) }$ (for $\displaystyle{ k \ge 400 }$):

$\displaystyle{ G(k) \lt 2 k\log k + 2 k\log\log k + 12 k. }$

Further refinements were obtained by Vaughan in 1989.

Wooley then established that for some constant C,[20]

$\displaystyle{ G(k) \le k\log k + k\log\log k + Ck. }$

Vaughan and Wooley have written a comprehensive survey article.[18]

## See also

• Fermat polygonal number theorem, that every positive integer is a sum of at most n of the n-gonal numbers
• Waring–Goldbach problem, the problem of representing numbers as sums of powers of primes
• Subset sum problem, an algorithmic problem that can be used to find the shortest representation of a given number as a sum of powers
• Sums of three cubes, discusses what numbers are the sum of three not necessarily positive cubes
• Sums of four cubes problem, discusses whether every rational integer is the sum of four cubes of rational integers

## Notes

1. Hilbert, David (1909). "Beweis für die Darstellbarkeit der ganzen Zahlen durch eine feste Anzahl n-ter Potenzen (Waringsches Problem)" (in de). Mathematische Annalen 67 (3): 281–300. doi:10.1007/bf01450405.
2. Remember we restrict ourselves to natural numbers. With general integers, it is not hard to write 23 as the sum of 4 cubes, e.g. $\displaystyle{ 2^3 + 2^3 + 2^3 + (-1)^3 }$ or $\displaystyle{ 29^3 + 17^3 + 8^3 + (-31)^3 }$.
3. Dickson, Leonard Eugene (1920). "Chapter VIII". History of the Theory of Numbers. II: Diophantine Analysis. Carnegie Institute of Washington.
4. Wieferich, Arthur (1909). "Beweis des Satzes, daß sich eine jede ganze Zahl als Summe von höchstens neun positiven Kuben darstellen läßt" (in de). Mathematische Annalen 66 (1): 95–101. doi:10.1007/BF01450913.
5. Kempner, Aubrey (1912). "Bemerkungen zum Waringschen Problem" (in de). Mathematische Annalen 72 (3): 387–399. doi:10.1007/BF01456723.
6. Balasubramanian, Ramachandran; Deshouillers, Jean-Marc; Dress, François (1986). "Problème de Waring pour les bicarrés. I. Schéma de la solution" (in fr). Comptes Rendus de l'Académie des Sciences, Série I 303 (4): 85–88.
7. Balasubramanian, Ramachandran; Deshouillers, Jean-Marc; Dress, François (1986). "Problème de Waring pour les bicarrés. II. Résultats auxiliaires pour le théorème asymptotique" (in fr). Comptes Rendus de l'Académie des Sciences, Série I 303 (5): 161–163.
8. Pillai, S. S. (1940). "On Waring's problem g(6) = 73". Proc. Indian Acad. Sci. 12: 30–40. doi:10.1007/BF03170721.
9. L. Euler, "Opera posthuma" (1), 203–204 (1862).
10. Niven, Ivan M. (1944). "An unsolved case of the Waring problem". American Journal of Mathematics (The Johns Hopkins University Press) 66 (1): 137–143. doi:10.2307/2371901.
11. Mahler, Kurt (1957). "On the fractional parts of the powers of a rational number II". Mathematika 4 (2): 122–124. doi:10.1112/s0025579300001170.
12. Kubina, Jeffrey M.; Wunderlich, Marvin C. (1990). "Extending Waring's conjecture to 471,600,000". Math. Comp. 55 (192): 815–820. doi:10.2307/2008448. Bibcode1990MaCom..55..815K.
13. Davenport, H. (1939). "On Waring's Problem for Fourth Powers" (in en). Annals of Mathematics 40 (4): 731–747.
14. (Nathanson 1996).
15. Deshouillers, Jean-Marc; Hennecart, François; Landreau, Bernard; I. Gusti Putu Purnaba, Appendix by (2000). "7373170279850". Mathematics of Computation 69 (229): 421–439. doi:10.1090/S0025-5718-99-01116-3.
16. U. V. Linnik. "On the representation of large numbers as sums of seven cubes". Mat. Sb. N.S. 12(54), 218–224 (1943).
17. Deshouillers, Jean-Marc; Hennecart, François; Landreau, Bernard (2000). "Waring's Problem for sixteen biquadrates – numerical results". Journal de théorie des nombres de Bordeaux 12 (2): 411–422. doi:10.5802/jtnb.287.
18. Vaughan, R. C.; Wooley, Trevor (2002). "Waring's Problem: A Survey". in Bennet, Michael A.; Berndt, Bruce C.; Boston, Nigel et al.. Number Theory for the Millennium. III. Natick, MA: A. K. Peters. pp. 301–340. ISBN 978-1-56881-152-9.
19. Karatsuba, A. A. (1985). "On the function G(n) in Waring's problem". Izv. Akad. Nauk SSSR, Ser. Math. 27 (49:5): 935–947. doi:10.1070/IM1986v027n02ABEH001176. Bibcode1986IzMat..27..239K.
20. Vaughan, R. C. (1997). The Hardy–Littlewood method. Cambridge Tracts in Mathematics. 125 (2nd ed.). Cambridge: Cambridge University Press. ISBN 0-521-57347-5.

## References

• G. I. Arkhipov, V. N. Chubarikov, A. A. Karatsuba, "Trigonometric sums in number theory and analysis". Berlin–New-York: Walter de Gruyter, (2004).
• G. I. Arkhipov, A. A. Karatsuba, V. N. Chubarikov, "Theory of multiple trigonometric sums". Moscow: Nauka, (1987).
• Yu. V. Linnik, "An elementary solution of the problem of Waring by Schnirelman's method". Mat. Sb., N. Ser. 12 (54), 225–230 (1943).
• R. C. Vaughan, "A new iterative method in Waring's problem". Acta Mathematica (162), 1–71 (1989).
• I. M. Vinogradov, "The method of trigonometrical sums in the theory of numbers". Trav. Inst. Math. Stekloff (23), 109 pp. (1947).
• I. M. Vinogradov, "On an upper bound for G(n)". Izv. Akad. Nauk SSSR Ser. Mat. (23), 637–642 (1959).
• I. M. Vinogradov, A. A. Karatsuba, "The method of trigonometric sums in number theory", Proc. Steklov Inst. Math., 168, 3–30 (1986); translation from Trudy Mat. Inst. Steklova, 168, 4–30 (1984).
• Ellison, W. J. (1971). "Waring's problem". American Mathematical Monthly 78 (1): 10–36. doi:10.2307/2317482.  Survey, contains the precise formula for G(k), a simplified version of Hilbert's proof and a wealth of references.
• Khinchin, A. Ya. (1998). Three Pearls of Number Theory. Mineola, NY: Dover. ISBN 978-0-486-40026-6.  Has an elementary proof of the existence of G(k) using Schnirelmann density.
• Nathanson, Melvyn B. (1996). Additive Number Theory: The Classical Bases. Graduate Texts in Mathematics. 164. Springer-Verlag. ISBN 0-387-94656-X.  Has proofs of Lagrange's theorem, the polygonal number theorem, Hilbert's proof of Waring's conjecture and the Hardy–Littlewood proof of the asymptotic formula for the number of ways to represent N as the sum of s kth powers.
• Hans Rademacher and Otto Toeplitz, The Enjoyment of Mathematics (1933) (ISBN 0-691-02351-4). Has a proof of the Lagrange theorem, accessible to high-school students.