- Suppose $n\in\mathbb{Z}$. If $3 \nmid n^2$, then $3 \nmid n$.
Assume $3|n$, that is $n=3m$ for some $m\in\mathbb{Z}$, so $n^2=(3m)^2=9m^2=3(3m^2)$. Let $3m^2=x$, then we have $n^2=(3m)^2=9m^2=3(3m^2)=3x$, it means that $3|n^2$, so we are done.
Can you check my proof? Thankss...