demonelite123
- 216
- 0
If p is prime and (a, p) = 1, show that x^2 \cong a (mod p) has solutions if a^{\frac{p-1}{2}} \cong 1 (mod p) and does not have solutions if a^{\frac{p-1}{2}} \cong -1 (mod p).
So because of Euler's theorem i know that a^{p-1} \cong 1 (mod p) and from the hypothesis a^{\frac{p-1}{2}} \cong 1 (mod p). I am first trying to show that x^2 \cong a (mod p) has solutions. I've tried things such as multiplying both sides of the first 2 congruences by a, a^{p} \cong a (mod p) and aa^{\frac{p-1}{2}} \cong a (mod p) so aa^{\frac{p-1}{2}} \cong a^p (mod p). and multiplying by the inverse of a^{\frac{p-1}{2}} on both sides i get a \cong a^{\frac{p-1}{2}} (mod p). but i can't seem to find such an x since i don't think i can split a^{\frac{p-1}{2}} into something of the form x^2. i have been trying to manipulate the 2 congruences but i can't seem to find a way to show that x^2 \cong a (mod p) has a solution. can someone offer a hint or two in the right direction? thanks!
So because of Euler's theorem i know that a^{p-1} \cong 1 (mod p) and from the hypothesis a^{\frac{p-1}{2}} \cong 1 (mod p). I am first trying to show that x^2 \cong a (mod p) has solutions. I've tried things such as multiplying both sides of the first 2 congruences by a, a^{p} \cong a (mod p) and aa^{\frac{p-1}{2}} \cong a (mod p) so aa^{\frac{p-1}{2}} \cong a^p (mod p). and multiplying by the inverse of a^{\frac{p-1}{2}} on both sides i get a \cong a^{\frac{p-1}{2}} (mod p). but i can't seem to find such an x since i don't think i can split a^{\frac{p-1}{2}} into something of the form x^2. i have been trying to manipulate the 2 congruences but i can't seem to find a way to show that x^2 \cong a (mod p) has a solution. can someone offer a hint or two in the right direction? thanks!