Can someone help me with this? I'm not sure how to approach it.. anything would be helpful!
Prove that if $p$ is a prime number and $p\neq 3$, then $3$ divides $p^2+2$
In my textbook the hint it gives states that: when $p$ is divided by $3$, the remainder is either $0, 1$, or $2$. That is, for some integer $k, \; p=3k$ or $p=3k+1$ or $p=3k+2$.