For example $x^2 \equiv 13 \bmod 29$. The only solution that comes to mind is to just calculate the squares of all of the numbers from 0 to 28, but that's tedious. Is there a better method?
EDIT: the question that this is marked as a duplicate to doesn't contain an answer as to how to solve such congruences, only for determining whether there exists a solution. So while a similar question has been asked, it hasn't been properly answered and IMO it's not duplicate then.
https://en.wikipedia.org/wiki/Quadratic_reciprocity
– Arkady Aug 20 '17 at 18:56