Modular Arithmetichard
0:00.0

Determine the number of integers xx in the range 1x5001 \le x \le 500 such that x2x(mod500)x^2 \equiv x \pmod{500}.