[Math] Solve Quadratic Congruence Equation

elementary-number-theorymodular arithmetic

How to solve $3x^2 – 5x + 5 \equiv 0 \pmod 7$? In general, how to approach this kind of problem? Any help is appreciated.

Best Answer

First note that the modulus is prime. This is important because if $p\mid ab$, then $p\mid a$ or $p\mid b$ and the existence of multiplicative inverses. We solve the equation like we do when we prove the quadratic formula. Multiply both sides by $3^{-1}=5$ to get the equation $$ x^2-4x+4=(x-2)^2=0\pmod{7}\iff x=2\pmod{7}. $$ If we weren't as lucky, we could complete the square and proceed.

Related Question