2

Solving $x^2 \equiv 28 \pmod 6$

The answers are: $x \equiv 2 \pmod 6$ and $x \equiv 4 \pmod 6$.

When I plugged in to check the answers, it would be $2^2 \equiv 4 \pmod 6$ and $4^2 \equiv 16 \equiv 4 \pmod 6$. It is $4$ but not $28$, why is this, I don't understand? Anyone can help me understand this? Thanks a lot!

Bill Dubuque
  • 272,048

2 Answers2

1

Since $4\equiv28\pmod6$,

$x^2\equiv4\pmod 6\iff x^2\equiv28\pmod6$.

J. W. Tanner
  • 60,406
0

We start with $x^2\equiv28\bmod6$. As far as simply checking the two given answers, firstly replace $x$ by $2$ to get the true statement $2^2\equiv28\bmod6$ (since $2^2=4$ and $6|(28-4)=24$).

Similarly, replacing $x$ with $4$ gives us a true statement: $4^2\equiv28\bmod6\iff0\equiv12\bmod6$.