Let $p \geq 19$ be a prime number. Prove that in the set $\{1,..., p-1\}$ there exist two quadratic residues (QR) that differ by 6.
My attempt: If 2 is a QR, then (2,8) is solution.
If 3 is QR, then (3,9) is solution, since 9 is a complete square.
If 2 is not QR and 3 is not QR, then 6 is QR and 12 is not a QR, so (6,12) and (12,18) are not a solution. If 5 is not a QR, then 10 is (since 2 and 5 are not QR) and (4,10) is solution. If 5 is QR, then 10 and 15 are not QR.
Then I consider 7, 11, 13, but couldn't proceed. Can someone help, at least give a hint? Thanks a lot in advance.
(This assumes that we're treating $ \{ 1, 2, \ldots, p-1 \}$ as actual integers, not as residue classes. In particular, the difference between $p-2$ and $4 $ is $ p - 6 \neq 6$.)
Simply continue from where you left off with the case of "Suppose that $ 2, 3$ are NQR, then QR are $1, 4, 6, 9, 16$ and NQR are $ 2, 3, 8, 12, 18$."
Hint: Wisely hunt down the QR/NQR status for the rest of the values: $5, 7, 10, 11, 13, 14, 15, 17$.
I can't do much with 5 as yet, but I can use $ 7 = 1 + 6$ to show that $ 7$ is not QR.
That's my first step, try to figure out the rest before looking at the hidden text. (Of course, there could be other paths to complete this.)
My steps:
Notes