Fermat's Little Theorem

Lemma: Let p be a prime an 0≤k<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

ap−1≡1(modp)

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

ap≡a(modp)

Lemma: If p and q are distinct primes with ap≡a(modq) and aq≡a(modp), then

apq≡a(modp)

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

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

Def: Expanding the definition of pseudoprimes, a composite number n for which an≡a(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 an≡a(modn), are called an absolute pseudoprime or a Carmichael number.

Th: Let n be a composite square-free integer, say n=p1p2⋯pr, where pi distinct primes. If pi−1∣n−1, for i=1,2,…,r, then n is an absolute pseudoprime.