ΘρϵηΠατπ

x Squared is Congruent to 1 iff x is Congruent to Plus or Minus One Mod p
x2≡1(modp)⟺x≡±1(modp)

⟹ Suppose that x2≡1(modp) therefore p|x2−1=(x+1)(x−1) therefore p|(x+1) or p|(x−1) so that x≡±1(modp)

⟸ Suppose that x≡±1(modp) therefore x2≡1(modp) as needed.

Quadratic's Little
Let p∈ℙ3 and prove that for any a∈ℤ such that p∤a we have ap−12≡±1(modp)
Note that since p∤a we have that ap−1≡1(modp) since p−1 is even, then 2 divides it so that p−12∈ℤ, therefore we have (ap−12)2≡1 therefore ap−12≡±1(modp)
Number of Solutions to x Squared Congruent to Minus One Mod p
The equation x2≡(−1)(modp) has two solutions explicitly given by ±(p−12)! (which are incongruent mod p ) iff p=4k+1

⟹ Suppose that x2≡−1(modp) has two solutions as stated in the question, suppose for the sake of contradiction that p=4k+3, then we have [(p−12)!]2≡(−1)4k+3+12≡1(modp) which is a contradiction because if p=4k+3 then p≥3 therefore −1≢1(modp) but that is implied as through the assumption and the fact we just noticed above.

⟸ Suppose that p=4k+1 and recall that this means that [(p−12)!]2≡(−1)4k+1+12≡−1(modp) We'll prove that these two solutions are incongruent, first note that since p≥2 then we know that k≥1 therefore we know that p≥5 1≤p−12<p therefore p∤(p−12)!, thus (p−12)! has an inverse, so then if they happened to be congruent we have (p−12)!≡−(p−12)!(modp) which implies that 1≡−1(modp) which is a contradiction since p≥5 therefore we must have that (p−12)!≢−(p−12)!(modp)

Incongruent mod 37
Obtain all incongruent solutions to the quadratic congruence x2≡−1(mod37)
By the above we know that ±18! works.
a Squared b Squared
Suppose that p∈ℙ3 and that p|a2+b2 such that a,b∈ℤ are coprime, prove that p is of the form 4k+1

If it so happens that a had an inverse mod p (denoted by c) since we know that a2≡−b2(modp) then we would be able to say that −1≡(bc)2(modp) and therefore p is of the form 4k+1.

Therefore one just has to verify that a is invertible mod p, and actually if it was that b was invertible then we could have symmetrically done the same. Recall that a number is invertible mod p if p∤a, so suppose for the sake of contradiction that p|a therefore p|a2 and since p|a2+b2 then p|b2 but then p|b and so gcd⁡(a,b)≥p which is a contradiction, therefore p∤a, as needed.

Number of Solutions to a Quadratic Congruence
x2≡1(modpα)
  • has two solutions if p is odd