Fermat's little theorem

From TCS Wiki
Revision as of 06:24, 18 August 2015 by imported>Auntof6 (Disambiguate Prime to Prime number using popups)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Fermat's little theorem is a theorem from number theory. It is named after Pierre de Fermat who found it in the 17th century. It is about the properties of primes. It says that if a is a number, and p is a prime, then

[math]\displaystyle{ a^p \equiv a\,(\mathrm{mod}\,p), }[/math]

If a is not a multiple of p, then the following is often used:

[math]\displaystyle{ a^{p-1} \equiv 1\,(\mathrm{mod}\,p) }[/math]

Template:Math-stub