here are the instructions:
1) Prove that if $n$ is an even natural integer, then $n^2\equiv 0\pmod4$
2) Prove that if $n$ is an odd natural integer, then $n^2\equiv 1\pmod4$
1) If $n$ is even then it equals to $2k$ where $k \in \mathbb{N}$
$$4\equiv0\pmod4\Leftrightarrow4k^2\equiv0\pmod4 \Leftrightarrow(2k)^2\equiv 0\pmod4\Leftrightarrow n^2\equiv 0\pmod4$$
2) If $n$ is odd then it equals to $2k+1$ where $k \in \mathbb{N}$
According to 1), $2k\equiv 0\pmod4$. We also know that $1\equiv 1\pmod4$. Hence we have:
$$2k+1\equiv 1\pmod4 \Leftrightarrow (2k+1)^2\equiv 1\pmod4 \Leftrightarrow n^2\equiv 1\pmod4$$
Thanks in advance for taking your time reviewing my work.