For some integer p, pick any integer x and compute .
is a negative number that is a quadratic residue (mod p).
In fact, is a quadratic residue that is a negative number as long as k is negative.
Now, we need to find such that ;
So, if we consider ; then will also be quadratic residue; where k is the chosen smallest integer such that .
Now let us choose ; obviously it is a prime number.
Also
And,
Clearly; -5 is a quadratic residue for
Now, for any other prime p ; -5 won't be a quadratic residue because;
would never be a perfect square for any
Thus, 7 is the only prime number for which -5 is a quadratic residue.
Comments