Show that 8k+7 cannot be the sum of three squares
I won't write it all out explicitly for you, but here is how you would go about it, there will be lots of cases and things for you to work out.
first of all you look at the residue classes mod 8. If it could be done, then you would need to be able to satisfy (mod 8).
(mod 8)
(mod 8)
(mod 8)
(mod 8)
(mod 8)
(mod 8)
(mod 8)
(mod 8)
There is no way to add 3 numbers coming from the set {0,1,4} (repetition obviously allowed) and get 7 (mod 8). Therefore it cannot be done.