Let. $p$ be an odd prime. Consider the following sum of Legendre Symbols:
$(\frac{1}{p})(\frac{2}{p}) + (\frac{2}{p})(\frac{3}{p}) + \cdots + (\frac{p-2}{p})(\frac{p-1}{p})$.
Show that this sum is equal to $-1$. Using the algebra of the Legendre symbol i can show that this sum is the same as
$\sum_{i = 2}^{\frac{p-1}{2}}(\frac{i-1}{p})(\frac{i}{p}) + (\frac{\frac{p-1}{2}}{p})(\frac{\frac{p+1}{2}}{p})$.
I can also show that this last term is equal to 1 if $p \equiv 1 \mod 4$ and $-1$ if $p \equiv 3 \mod 4$ via Guass' Lemma. I'm really more interested in a hint than a full solution but any help would be greatly appreciated.