Let $p$ be an odd prime and $\zeta \not = 1$ be a $p^{th}$ root of unity. Let $R$ denote the set of all quadratic residues in $\mathbb{F}_p^*$.
If $\alpha=\sum_{r\in R} \zeta^r$, prove that
$$\alpha (-1-\alpha)=\begin{cases} -\frac{p-1}{4} &,\;\;\mbox{if }\;\; p\equiv 1 \\{}\\\;\;\; \frac{p+1}{4} &,\;\;\mbox{if }\;\; p\equiv 3. \end{cases} \pmod 4$$
I think this is quite famous. Can anyone give me a clue how to go about it?
$$\implies\alpha(-1-\alpha)=3(-1-3)=3(-4)=3\cdot 1= 3\neq-\frac{5-1}{4}=-1=4$$
Am I misunderstanding something or there is some mistake/typo in the formulae in the question?
– DonAntonio Apr 06 '13 at 20:07