I'm working on the following problem:
If $p\equiv1\pmod{4}$ is a prime, then $-4$ and $(p-1)/4$ are both quadratic residues of $p$.
This means it must be shown that $(-4/p)=1$ and $(((p-1)/4)/p)=1$, where $(a/p)$ denotes the Legendre symbol.
I managed to solve the first part. Since $p\equiv1\pmod{4}$, $(-1/p)=1$. Then: \begin{align*} (-4/p) &= (-1/p)(2^2/p) \\ &= 1\cdot1 \\ &= 1, \end{align*} since $(a^2/p)=1$.
However, I have no clue how to solve the second part. Can anyone give a hint how to start this part?
Let $n=(p-1)/4$. Then $4n=p-1\equiv-1$, and $$ \left(\frac{-1}p\right)=\left(\frac{4n}p\right)=\left(\frac{4}p\right)\left(\frac{n}p\right). $$ You know everything else except $\left(\frac{n}p\right)$, so you can solve it from this equation.