Using this equation as an example $$5 x^2 + 7 x - 66 = 0$$
It has x=3 as a solution (also -4.4 but we'll ignore that).
Apparently we can solve this using modular arithmetic for any modulus. E.g. for modulus=4 we have
$$1 \cdot x^2 + 3 x - 2 \equiv 0$$
which also yields x=3 (because $x^2$ = 9 which is congruent to 1, ditto for 3x).
I'd like to prove that this always works using ordinary algebra, but I'm not sure how. Sticking with mod 4, I tried rewriting the first equation as $$(4+1) x^2 + (4+3) x - (64+2) = 0$$ and then rearrange $$ \left[ 4 x^2 + 4 x - 64 \right] + \left[ x^2 +3 x -2 \right] = 0$$ It seems that mod 4 would allow me to remove the left bracket, but that doesn't make sense since it doesn't equal zero for x=3 (also x=3 is not a solution of the right bracket). So I'm at an impasse, any guidance would be appreciated.