Proving a prime $p$ divides $n$ if and only if $p^2$ divides $n^2$

1.1k Views Asked by At

Suppose $p$ is a prime, and $n$ is an integer. Prove that $p$ divides $n$ if and only if $p^2$ divides $n^2$.

How do I prove this statement?