Let $p$ be an odd prime; and $a$ and $b$ are integers with $1\leq a, b \leq \dfrac{p-1}{2}$.
Is it true that
$p \mid a^2+ab+b^2 \text{ (for some choice of } a \text{ and } b) \iff p \not \equiv 2 \pmod{3},$
or equivalently,
$p \not\mid a^2+ab+b^2 \text{ (for no choice of } a \text{ and } b)\iff p \equiv 2 \pmod{3}?$
I'm totally stuck! Quite new in Number Theory.
Any help will be much appreciated.