Quadratic residue


In mathematics, a number q is called a quadratic residue modulo n if there exists an integer x such that: