A reference is my response [here][1]. [1]: https://mathoverflow.net/questions/65183/when-is-the-sum-of-two-quadratic-residues-modulo-a-prime-again-a-quadratic-residu/65309#65309