Exercise · ZW-QUADRATIC-RESIDUE-004 · ★☆☆ Basic
Give the number of nonzero quadratic residues modulo an odd prime p.
Choose one option.
Show answer
- D. (p−1)/2
Exercise · ZW-QUADRATIC-RESIDUE-004 · ★☆☆ Basic
Choose one option.
There are (p−1)/2 nonzero residues, since each comes from a pair ±x. Counting all residue classes gives p, which is a frequent error.
A quadratic residue modulo n is an integer a with gcd(a,n)=1 such that the congruence x² ≡ a (mod n) has a solution. If it has no solution, a is a quadratic nonresidue.