ΘρϵηΠατπ

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

Suppose that x21(modp) therefore p|x21=(x+1)(x1) therefore p|(x+1) or p|(x1) so that x±1(modp)

Suppose that x±1(modp) therefore x21(modp) as needed.

Quadratic's Little
Let p3 and prove that for any a such that pa we have ap12±1(modp)
Note that since pa we have that ap11(modp) since p1 is even, then 2 divides it so that p12, therefore we have (ap12)21 therefore ap12±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 ±(p12)! (which are incongruent mod p ) iff p=4k+1

Suppose that x21(modp) has two solutions as stated in the question, suppose for the sake of contradiction that p=4k+3, then we have [(p12)!]2(1)4k+3+121(modp) which is a contradiction because if p=4k+3 then p3 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 [(p12)!]2(1)4k+1+121(modp) We'll prove that these two solutions are incongruent, first note that since p2 then we know that k1 therefore we know that p5 1p12<p therefore p(p12)!, thus (p12)! has an inverse, so then if they happened to be congruent we have (p12)!(p12)!(modp) which implies that 11(modp) which is a contradiction since p5 therefore we must have that (p12)!≢(p12)!(modp)

Incongruent mod 37
Obtain all incongruent solutions to the quadratic congruence x21(mod37)
By the above we know that ±18! works.
a Squared b Squared
Suppose that p3 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 a2b2(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 pa, 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 pa, as needed.

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