Surprisingly, we got only one question for our 2-hour exam and I think nobody solved it. Here is the problem:
Assuming that $K$ is a field, show that $S$ is stable under addition, multiplication and division, where $S$ is defined as follow: $$S=\left\{\sum_{i=1}^{n}{x_i}^2 \mid n\in \Bbb N ,\ x_i\in K\right\}.$$
Addition: Trivial. Any sum of two finite sums of squares is a finite sum of squares.
Multiplication: Trivial. Any product of two squares is a square and the distributive property shows that a product of two finite sums has finitely many terms.
Division: Suppose that $a=\sum_{i=1}^n x_i^2$ is not zero. We would like to show that $a^{-1}\in S$ (using s.harp's comment). If $n=1$, then the inverse of $a$ is trivial. The first interesting case is when $n=2$ Suppose that $a=x_1^2+x_2^2$.
Now, $$ \frac{1}{x_1^2+x_2^2}=\frac{x_1^2+x_2^2}{(x_1^2+x_2^2)^2}=\left(\frac{x_1}{x_1^2+x_2^2}\right)^2+\left(\frac{x_2}{x_1^2+x_2^2}\right)^2 $$ The denominators are OK because this is a field. All higher $n$'s are generalizations of this case.