A problem in my book asks me to show that there are no solutions to $$x^2+y^2+z^2 = 7t^2$$ in the integers apart from $(x,y,z,t)=(0,0,0,0)$.
The solution states that reducing modulo $4$ we see that $x,y,z,t$ must be even and dividing through we get a smaller solution.
I don't understand how we can conclude that everything is even. If $(x,y,z,t)$ are all $1$ mod $4$ it still seems to hold.
You have to argue modulo $8$ and not modulo $4$. Let $(x,y,z,t)$ be a nonzero solution with $|x|+|y|+|z|+|t|$ minimal. Every square is congruent to $0$, $1$ or $4$ modulo $8$. Thus we must have that $x,y,z,t$ are even, and $(x/2,y/2,z/2,t/2)$ is a smaller solution, contradiction.