I have some difficulties solving the following congruential equation.
$3n^2 + 2 ≡ 0\pmod 5,\ \forall\ n \in Z$
If I subtract both members by $-2$, I end up getting $3n^2 = -2\pmod 5$ and I can't continue from there. Can you help me?
I have some difficulties solving the following congruential equation.
$3n^2 + 2 ≡ 0\pmod 5,\ \forall\ n \in Z$
If I subtract both members by $-2$, I end up getting $3n^2 = -2\pmod 5$ and I can't continue from there. Can you help me?
Modulo $5$, we have
$$3n^2 \equiv -2$$ $$\Leftrightarrow 6n^2 \equiv -4$$ $$\Leftrightarrow n^2 \equiv 1$$
$$\Leftrightarrow n \equiv 1 \vee n \equiv -1.$$
The solutions are therefore all those $n \in \mathbb{Z}$ such that $n = 5k+1$ or $n = 5k-1$ for some $k \in \mathbb{Z}$.