I came up with the following:
$2|n^2$ implies that $2|n*n$. We proved in class that if $q|b*p$, then $q|b$ or $q|p$. Therefore, if $2|n^2$, then $2|n$ or $2|n$. So, $2|n$ implies $n=2k$, for some $k ∈ Z$. So, $n^2|(2k)^2$, $n^2 = 4k^2$, where $k^2 ∈ Z$.
So, if $2|n^2$, then $4|n^2$ as desired.
What do you all think?
Suppose not. Then $n^2=2\times (2m+1)$ for some positive integer $m$. But that means, $n^2=4m+2$. Which is a contradiction, as, any perfect square can leave remainder $0,1$ after division by $4$.
Here is a more satisfactory arument. A statement and it's contrapositive statement has same truth value. Here, the contrapositive statement of $2|n^2\implies 4|n^2$ is $4\nmid n^2\implies 2\nmid n$. So, if we can prove the contrapositive statement is true then we are done.
$$4\nmid n^2\implies 2\nmid n\implies 2\nmid n\cdot n $$ So we are sone!