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

Explanation

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.

Study Elementary number theory in ZWMath →

Review the concept: Quadratic residue

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.

\[x^2 \equiv a \pmod{p}\]

More practice problems: quadratic residue

← ZW-QUADRATIC-RESIDUE-003 ZW-QUADRATIC-RESIDUE-005 →