How do you evaluate the quadratic residue of 7 mod p?

229 Views Asked by At

How do you evaluate this quadratic residue? I've been playing around with some specific values and I suspect 1 if p is of the form 28k+/-1, 3, 9 and -1 if 28k+/- 5, 11, 13. I have no idea how to come up with those though. Any help is well appreciated.