Q: $n\in\mathbb{Z}$. Prove that $3 | 2n^2 +1$ iff $3\nmid n$.
I began by assuming not true. Then $3|n$ implies $n=3k$ where $k\in\mathbb{Z}$.
$3 | 2(3k)^2 +1$ $\rightarrow$ $3 | 2(9k^2)+1$ $\rightarrow$ $3 | 18k^2 +1$.
$3 | 3(6k^2 + \dfrac{1}{3})$ but $6k^2 + \dfrac{1}{3}$ is not an integer. Contradiction.
Is this proof valid?