# Sum of Legendre symbols. [duplicate]

How to prove the identity ?: $$\sum_{n=0}^{p-1}\left(\frac{n^{2}+d}{p}\right)=-1$$
Where brackets denote Legendre symbol. $$p$$ is odd prime number and $$d$$ is not divisible by $$p$$.