09.12.2012 Views

Concrete mathematics : a foundation for computer science

Concrete mathematics : a foundation for computer science

Concrete mathematics : a foundation for computer science

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Or probably more,<br />

by the time you<br />

read this.<br />

4.3 PRIME EXAMPLES 109<br />

Thus e, has about twice as many decimal digits as e,-1 . Exercise 37 proves<br />

that there’s a constant E z 1.264 such that<br />

And exercise 60 provides a similar <strong>for</strong>mula that gives nothing but primes:<br />

Pn = lp3"J ,<br />

(4.17)<br />

<strong>for</strong> some constant P. But equations like (4.17) and (4.18) cannot really be<br />

considered to be in closed <strong>for</strong>m, because the constants E and P are computed<br />

from the numbers e, and p,, in a sort of sneaky way. No independent relation<br />

is known (or likely) that would connect them with other constants of<br />

mathematical interest.<br />

Indeed, nobody knows any useful <strong>for</strong>mula that gives arbitrarily large<br />

primes but only primes. Computer scientists at Chevron Geo<strong>science</strong>s did,<br />

however, strike mathematical oil in 1984. Using a program developed by<br />

David Slowinski, they discovered the largest prime known at that time,<br />

2216091 -1<br />

while testing a new Cray X-MP super<strong>computer</strong>. It’s easy to compute this<br />

number in a few milliseconds on a personal <strong>computer</strong>, because modern <strong>computer</strong>s<br />

work in binary notation and this number is simply (11 . . .1)2. All<br />

216 091 of its bits are ‘1'. But it’s much harder to prove that this number<br />

is prime. In fact, just about any computation with it takes a lot of time,<br />

because it’s so large. For example, even a sophisticated algorithm requires<br />

several minutes just to convert 22’609’ - 1 to radix 10 on a PC. When printed<br />

out, its 65,050 decimal digits require 65 cents U.S. postage to mail first class.<br />

Incidentally, 22’609’ - 1 is the number of moves necessary to solve the<br />

Tower of Hanoi problem when there are 216,091 disks. Numbers of the <strong>for</strong>m<br />

2p - 1<br />

(where p is prime, as always in this chapter) are called Mersenne numbers,<br />

after Father Marin Mersenne who investigated some of their properties in the<br />

seventeenth century. The Mersenne primes known to date occur <strong>for</strong> p = 2, 3,<br />

5, 7, 13, 17, 19, 31, 61, 89, 107, 127, 521, 607, 1279, 2203, 2281, 3217, 4253,<br />

4423, 9689,9941, 11213,19937,21701, 23209,44497, 86243,110503, 132049,<br />

and 216091.<br />

The number 2” - 1 can’t possibly be prime if n is composite, because<br />

2k” - 1 has 2”’ - 1 as a factor:<br />

2km - 1 = (2" - l)(2mckp') +2"'+2) +...+ 1).

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

Saved successfully!

Ooh no, something went wrong!