Find all primes $p$ such that $\left( \frac{-19}{p} \right) = 1$

802 Views Asked by At

Find all primes $p$ such that -19 is a quadratic residue $\bmod p$.

solution:

We have that $(\frac{-19}{p})=(\frac{p}{19})$, so that if $-19$ is a quadratic residue modulo $p$, then $p$ is a quadratic residue modulo $19$, i.e. when $p$ is congruent to any of $1,4,5,6,7,9,11,16,17 \mod 19$.

Can anyone give me an explanation why $p$ is a quadratic residue modulo $19$ implies that it must be congruent to any of these numbers modulo $19$?

1

There are 1 best solutions below

5
On

By trial and error, the non-zero squares modulo $19$ are $$1^2=1,\ 2^2=4,\ 3^2=9,\ 4^2=16,\ 5^2=6,\ 6^2=17,\ 7^2=11,\ 8^2=7,\ 9^2=5,$$ and the rest are the same since $10^2=(-9)^2=9^2$ and so on. That is, any integer (whether prime or not) is a square modulo $19$ if and only if it is congruent to one of $$1,\,4,\,5,\,6,\,7,\,9,\,11,\,16,\,17.$$