Exercise · ZW-QUADRATIC-RESIDUE-006 · ★★☆ Intermediate
Compute the nonzero quadratic residues modulo 9 and state how many there are.
Choose one option.
Show answer
- B. {1, 4, 7}, three residues
Exercise · ZW-QUADRATIC-RESIDUE-006 · ★★☆ Intermediate
Choose one option.
The squares of 1 through 8 modulo 9 are 1, 4, 0, 7, 7, 0, 4, 1, so the nonzero ones are {1, 4, 7}. The option including 8 fails because 8 is not a square modulo 9.
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.