10.12.2012 Views

Prime Numbers

Prime Numbers

Prime Numbers

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

164 Chapter 3 RECOGNIZING PRIMES AND COMPOSITES<br />

factor exceeds n c (when there are less than two prime factors let us simply<br />

not count that n). For the high-precision c value given above, there are 548<br />

such n ∈ [1, 1000], whereas the theory predicts 500. Give the count for some<br />

much higher value of x.<br />

3.6. Rewrite the basic Eratosthenes sieve Algorithm 3.2.1 with improvements.<br />

For example, reduce memory requirements (and increase speed) by<br />

observing that any prime p>3 satisfies p ± 1 (mod 6); or use a modulus<br />

greater than 6 in this fashion.<br />

3.7. Use the Korselt criterion, Theorem 3.4.6, to find by hand or machine<br />

some explicit Carmichael numbers.<br />

3.8. Prove that every composite Fermat number Fn = 22n+1 isa Fermat pseudoprime base 2. Can a composite Fermat number be a Fermat<br />

pseudoprime base 3? (The authors know of no example, nor do they know a<br />

proof that this cannot occur.)<br />

3.9. This exercise is an exploration of rough mental estimates pertaining<br />

to the statistics attendant on certain pseudoprime calculations. The great<br />

computationalist/theorist team of D. Lehmer and spouse E. Lehmer together<br />

pioneered in the mid-20th century the notion of primality tests (and a great<br />

many other things) via hand-workable calculating machinery. For example,<br />

they proved the primality of such numbers as the repunit (10 23 − 1)/9 with<br />

a mechanical calculator at home, they once explained, working a little every<br />

day over many months. They would trade off doing the dishes vs. working on<br />

the primality crunching. Later, of course, the Lehmers were able to handle<br />

much larger numbers via electronic computing machinery.<br />

Now, the exercise is, comment on the statistics inherent in D. Lehmer’s<br />

(1969) answer to a student’s question, “Professor Lehmer, have you in all<br />

your lifetime researches into primes ever been tripped up by a pseudoprime<br />

you had thought was prime (a composite that passed the base-2 Fermat<br />

test)?” to which Lehmer’s response was as terse as can be: “Just once.” So<br />

the question is, does “just once” make statistical sense? How dense are the<br />

base-2 pseudoprimes in the region of 10 n ? Presumably, too, one would not<br />

be fooled, say, by those base-2 pseudoprimes that are divisible by 3, so revise<br />

the question to those base-2 pseudoprimes not divisible by any “small” prime<br />

factors. A reference on this kind of question is [Damg˚ard et al. 1993].<br />

3.10. Note that applying the formula in the proof of Theorem 3.4.4 with<br />

a = 2, the first legal choice for p is 5, and as noted, the formula in the proof<br />

gives n = 341, the first pseudoprime base 2. Applying it with a = 3, the first<br />

legal choice for p is 3, and the formula gives n = 91, the first pseudoprime<br />

base 3. Show that this pattern breaks down for larger values of a and, in fact,<br />

never holds again.<br />

3.11. Show that if n is a Carmichael number, then n is odd and has at least<br />

three prime factors.

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

Saved successfully!

Ooh no, something went wrong!