What made me have a question is the following problem.
The prime divisors $p\not=5$ of the integer $n^2+n-1$ are of the form $10k+1$ or $10k+9$.
I thought $\left(\frac 5 p\right) = 1$, because $5 \equiv 1 \pmod 4$.
So $\left(\frac 5 p\right) = (-1)^{p-1}\left(\frac p 5\right)=1$ by qudratic reciprocity.
Then $p$ should be of the form $2k+1$
But I think there is something wrong, and I have lost.
Is there someone to help me?