Here is the question:
Suppose that $p$ is an odd prime. The law of quadratic reciprocity says that $x^2\equiv 2\pmod p$ has a solution. if $p\equiv1 \text{ or } 7 \pmod 8$. Prove that $2^{4n+3}\equiv1 \pmod{8n+1}$. $8n+1$ is a prime
I honestly don't know where to start, I tried starting it with Fermat's Theorem because it looked similar to that, $a^{p-1} = 1 \pmod p$, but it didn't lead me anywhere, or I missed something.
Your help will be appreciated!