If $n = a^2 + b^2 + c^2$ for positive integers $a$, $b$,$c$, show that there exist positive integers $x$, $y$, $z$ such that $n^2 = x^2 + y^2 + z^2$.
I feel that the problem basically uses algebraic manipulation even though it's in a Number Theory textbook. I don't realize how to show $(a^2+b^2+c^2)^2$ as the sum of three squares. I have tried algebraic manipulation but this is the stage I have reached.
$$(b^2 + c^2)^2 + a^2(a^2 + b^2 + c^2 + b^2 + c^2)$$
Could you give me some hints on how to proceed with this question?
Thanks.
If:
$$x=2ac$$
$$y=2bc$$
$$z=a^2+b^2-c^2$$
$$n=a^2+b^2+c^2$$
Then:
$$x^2+y^2+z^2=n^2$$