Square root of minus one modulo a prime

ID: square-root-of-minus-one-modulo-a-prime

The congruence is soluble exactly for or . For odd , Fermat's little theorem applied to a prospective root forces even. Conversely, when , pair opposite factors in and use the Wilson theorem to obtain .

New to topics? Read the docs here!