10.12.2012 Views

Prime Numbers

Prime Numbers

Prime Numbers

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

3.4 Pseudoprimes 133<br />

Theorem 3.4.4. For each integer a ≥ 2 there are infinitely many Fermat<br />

pseudoprimes base a.<br />

Proof. We shall show that if p is any odd prime not dividing a 2 − 1, then<br />

n = a 2p − 1 / a 2 − 1 is a pseudoprime base a. For example, if a = 2 and<br />

p = 5, then this formula gives n = 341. First note that<br />

n = ap − 1<br />

a − 1 · ap +1<br />

a +1 ,<br />

so that n is composite. Using (3.2) for the prime p we get upon squaring both<br />

sides that a 2p ≡ a 2 (mod p). So p divides a 2p − a 2 .Sincep does not divide<br />

a 2 − 1, by hypothesis, and since n − 1= a 2p − a 2 / a 2 − 1 , we conclude<br />

that p divides n − 1. We can conclude a second fact about n − 1 as well: Using<br />

the identity<br />

n − 1 ≡ a 2p−2 + a 2p−4 + ···+ a 2 ,<br />

we see that n − 1isthesumofanevennumberoftermsofthesameparity,<br />

so n − 1 must be even. So far, we have learned that both 2 and p are divisors<br />

of n − 1, so that 2p must likewise be a divisor. Then a 2p − 1 is a divisor of<br />

a n−1 − 1. But a 2p − 1 is a multiple of n, so that (3.3) holds, as does (3.2). ✷<br />

3.4.2 Carmichael numbers<br />

In search of a simple and quick method of distinguishing prime numbers from<br />

composite numbers, we might consider combining Fermat tests for various<br />

bases a. For example, though 341 is a pseudoprime base 2, it is not a<br />

pseudoprime base 3. And 91 is a base-3, but not a base-2 pseudoprime. Perhaps<br />

there are no composites that are simultaneously pseudoprimes base 2 and 3,<br />

or if such composites exist, perhaps there is some finite set of bases such that<br />

there are no pseudoprimes to all the bases in the set. It would be nice if this<br />

were true, since then it would be a simple computational matter to test for<br />

primes.<br />

However, the number 561 = 3 · 11 · 17 is not only a Fermat pseudoprime<br />

to both bases 2 and 3, it is a pseudoprime to every base a. Itmaybeashock<br />

that such numbers exist, but indeed they do. They were first discovered by<br />

R. Carmichael in 1910, and it is after him that we name them.<br />

Definition 3.4.5. A composite integer n for which a n ≡ a (mod n) for<br />

every integer a is a Carmichael number.<br />

It is easy to recognize a Carmichael number from its prime factorization.<br />

Theorem 3.4.6 (Korselt criterion). An integer n is a Carmichael number<br />

if and only if n is positive, composite, squarefree, and for each prime p dividing<br />

n we have p − 1 dividing n − 1.<br />

Remark. A. Korselt stated this criterion for Carmichael numbers in 1899,<br />

eleven years before Carmichael came up with the first example. Perhaps

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!