In the following, let $(\frac{a}{p})$ denote the Legendre symbol. Then
Show that $$\sum _{a=1}^{p-2} \left(\frac{a(a+1)}{p}\right)=-1$$ for an odd prime $p$.
I was thinking of factoring out $a^2$, but…
Show that $$\sum _{a=1}^{(p-1)/2} \left(\frac{a}{p}\right)=0$$ for a prime $p \equiv 1 \pmod 4$.