This question already has an answer here:

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$.



marked as duplicate by Dietrich Burde, Community Jan 31 at 13:45

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.