Euler's criterion for finding if a number is quadratic residue... how does it work?

MathNugget

Junior Member
Joined
Feb 1, 2024
Messages
195
Suppose p is an odd prime number, and aZpa \in \mathbb{Z}_p, a0a \neq 0.

I am interested in the implication:
if ap121a^{\frac{p-1}{2}}\equiv 1 (mod p), then a is quadratic residue.

It's pretty clear that ap12+1aa^{\frac{p-1}{2}+1}\equiv a (mod p), and if p12+1=p+12\frac{p-1}{2}+1=\frac{p+1}{2} is even, x=ap+14x=a^{\frac{p+1}{4}}.

What happens if p1p \equiv 1 (mod 4)? I get that there is x so that X21X^2\equiv 1 (mod p), which doesn't really help much.
 
I realized that ap12ap=a3p12aa^{\frac{p-1}{2}}a^p=a^{\frac{3p-1}{2}}\equiv a, and 3p14Z\frac{3p-1}{4} \in \mathbb{Z}, so maybe
(a3p14)2a(a^{\frac{3p-1}{4}})^2 \equiv a (mod p), which would solve the problem.

There is also the thing that 3p14<p\frac{3p-1}{4} < p, which is interesting since...how can this be? I thought it is impossible to have aiajaa^i\equiv a^j \equiv a (mod p), with 1<i < j< p.
 
late realization: the last part was wrong:
I thought it is impossible to have aiajaa^i\equiv a^j \equiv a (mod p), with 1<i < j< p.
I have that 6216^2\equiv -1 mod 37, so 6569...63766^5\equiv 6^{9} \equiv ... \equiv 6^{37}\equiv 6 mod 37...

I also realized that I was mistaken earlier, if p1p \equiv 1 (mod 4), 43p14 \nmid 3p-1... so I still don't know how to prove:

aZp\forall a \in \mathbb{Z}_p, a0a\neq 0, p1p \equiv 1 mod 4, there is an x so that x2ax^2\equiv a (mod p)...
 
Last edited:
Top