2. Have you tried using the hint? If x is even then $\displaystyle x^2$ is congruent to 0 (mod 4). If x is odd then $\displaystyle x^2$ is congruent to 1 (mod 4).