Let $p$ be a prime number. Prove there exists an integer $a$ such that $p\mid (a^2-a+3)$ iff there exists an integer $b$ such that $p\mid(b^2-b+25)$.
modulo version of the quadratic formula and Euler's criterion