If x2≡a(modp)x^2 \equiv a \pmod{p}x2≡a(modp) has no solutions, what is the value of the Legendre symbol (ap)\left( \frac{a}{p} \right)(pa)?
111
000
−1-1−1
ppp