Section7.3Wilson's Theorem and Fermat's Little Theorem

There are two famous theorems about congruences modulo \(p\) a prime that will come in very handy in the future.

Subsection7.3.1Wilson's Theorem

One exercise below is to show that Wilson's theorem fails for \(p=10\). That is, that \((10-1)!\not\equiv -1\) mod (\(10\)). So does it work or not for other moduli?

Subsection7.3.2Fermat's Little Theorem

If one explores a little with powers of numbers modulo \(p\) a prime, one usually notices some pattern of those powers. This is the best-known, and soon we'll reinterpret it in a powerful way.

There are other ways to combine the things above to prove it as well. We'll see a more abstract approach when we introduce the concept of groups. But despite the innocuous appearance as a corollary of another theorem, do not be fooled. It is incredibly powerful.