Section14.2More sums of squares

How many ways are there to write a number as a sum of three squares? Four squares? Cubes? Fourth powers? It turns out there are lots of cool theorems, such as Lagrange's four square theorem, Waring's problem... sigh, too much to include everything for now.