I'll quickly go over my understanding of it:
If a number $n^2$ is even, then $n$ is even. The contrapositive is that if $n$ is not even, then $n^2$ is not even.
We represent n as $n=2p+1$. $n^2=4p^2 + 4p + 1 = 2(2p^2+2p) + 1$. We see that $n^2$ is odd. Therefore, the original statement must be true.
Now here's my question, set $n^2=2$. $n^2$ is even but $n=\sqrt2$ isn't. Or is it? I'm confused
Both $n^2$ and $n$ must be integers for this theorem to hold.