Fermat's Little Theorem

Subjects: Elementary Number Theory
Links: Integers modulo n, Prime Numbers

Lemma: Let p be a prime an 0k<p, then $$ {p\choose k} \equiv 0 \pmod p $$

Fermat’s Little Theorem

Let p be a prime number, and gcd(a,p)=1, then

ap11(modp)

Cor: Let p be a prime number, then for any a

apa(modp)

Lemma: If p and q are distinct primes with apa(modq) and aqa(modp), then

apqa(modp)

Def: If n is a composite number is called pseudoprime if n2n2. This is important because a Chinese mathematician thought that n is prime iff n2n2.

Th: If n is an odd pseudoprime, then Mn=2n1 is a larger one.

Def: Expanding the definition of pseudoprimes, a composite number n for which ana(modn) is called a pseudoprime to the base a, when a=2, it is just called a pseudoprime.

Def: If n is a pseudoprime for all to every base a, meaning ana(modn), are called an absolute pseudoprime or a Carmichael number.

Th: Let n be a composite square-free integer, say n=p1p2pr, where pi distinct primes. If pi1n1, for i=1,2,,r, then n is an absolute pseudoprime.