If x2≡a(modp)x^2 \equiv a \pmod{p}x2≡a(modp) has no solution, what is the Legendre symbol (ap)\left( \frac{a}{p} \right)(pa)?
0
1
-1
p