Exercise 5.2

Show that the number of solutions to x 2 ≡ a ( mod p ) is equal to 1 + ( a ∕ p ) .

Answers

Proof. Let N be the number of solutions of x 2 ≡ a ( mod p ) .

∙ If ( a p ) = 0 , then p ∣ a , a ≡ 0 ( mod p ) , so the unique solution of x 2 ≡ a = 0 is x ≡ 0 ( mod p ) , so N = 1 = 1 + ( a p ) .

∙ If ( a p ) = − 1 , then N = 0 = 1 + ( a p ) .

∙ If ( a p ) = 1 , then x 2 ≡ a ( mod p ) has a solution x 0 , and x 2 ≡ a ( mod p ) ⟺ x 2 ≡ x 0 2 ( mod p ) ≡ p ∣ ( x − x 0 ) ( x + x 0 ) ≡ x ≡ ± x 0 ( mod p ) , so N = 2 = 1 + ( a p ) . □

User profile picture
2022-07-19 00:00
Comments