Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to show that $7u^2=x^2+y^2+z^2$ has no solutions in $\mathbb{Z}$ when $u$ is odd. If $u$ is even, then it's simple to show that no solutions exists by looking modulo $4$. The odd case looks harder.

share|cite|improve this question
I figured it out. For the odd case look modulo $8$. – dst Nov 9 '11 at 19:51
You mean non-trivial solutions. And although the even case is not hard, it requires the odd case. – André Nicolas Nov 9 '11 at 20:25
@dst Please post your approach as an answer so that other users can check and upvote it. You can even accept your answer. That way, this question will appear as answered in the future. – Srivatsan Nov 9 '11 at 21:47

For the odd case, let $u=1+2k$; now $u^2=1+4k+4k^2 = 1+4k(k+1)$. As $k$ or $k+1$ is even, we have $u^2\equiv1\mod8$ whenever $u$ is odd, hence $7u^2\equiv7\mod8$. For the righthand side, we have a sum of three squares mod 8, that is, three numbers taken from the set $\{0,1,4\}$ and summed $\mod8$, which cannot equal 7.

share|cite|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.