a) For $a \in \Bbb Z$ find all the possible remainders of $a^2$ divided by $8$
b) Prove that there are no integer solutions for $x^2+y^2+z^2+1=8w$
For the first part:
I checked two cases, if $a$ is even and if $a$ is odd
if $a$ is even the $a^2=4k^2$ and then $8q=4k^2$ so the remainder is $0$
if $a$ is odd then $a^2=(2k+1)^2=4k^2+4k+1$ so $4k(k+1)+1=8q$ and the remainder is $1$
for the second part
I wanted to check all possible values of $x^2+y^2+z^2$ for $mod8$ first I got that the only possible values are $0,1,4$ for each squared term because $0^2 \equiv0 (mod8),1^2,3^2,5^2,7^2 \equiv1 (mod8)$ and $2^2,6^2 \equiv4 (mod8)$ so all the possible values for $x^2+y^2+z^2$ will be depending on how many are odd or even
if all of them are even then the possible values are $0,4$
if all of them are odd then the possible value is $3$
if 2 are even and 1 is odd the values are $1,5$
and lastly if 2 are odd and 1 is even then the values are $6,2$
so I got the values $\{0,1,2,3,4,5,6\}$ adding $1$ to the set $\{1,2,3,4,5,6,7\}$
so I got everything except $0$ which means it leaves a remainder but does that mean that there is no integer solution to the equation? I am not sure if what I did is right or is there another way
Thanks for any tips and help
solution-verificationquestion to be on topic you must specify precisely which step in the proof you question, and why so. This site is not meant to be used as a proof checking machine. – Bill Dubuque Feb 01 '24 at 09:28