Is there $a\in \mathbb{Z}$ such that $$ a^2\equiv 2\pmod3$$
I did the following : if the equation is true then one has $(a-1)(a+1)\equiv1 \pmod3$ which implies that necessarly that both $(a-1)$ and $(a+1)$ are not even hence $a$ is an even number hence $$a^2-2\equiv 0\pmod3$$ where $a^2-2$ is even, such that $a^2-2$ is a multiple of $3$ which is impossible!
Is my idea right ?
\pmod3
rather than square brackets as they can mean equivalence class. Your argument is incorrect as $3$ divides $6$ (an even number), for instance. – ə̷̶̸͇̘̜́̍͗̂̄︣͟ Nov 17 '21 at 08:25