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.

4.3 PRIME EXAMPLES 111<br />

These <strong>for</strong>mulas, which hold only in the limit as n or x + 03, can be<br />

replaced by more exact estimates. For example, Rosser and Schoenfeld [253]<br />

have established the handy bounds<br />

lnx-i < * < lnx-t, <strong>for</strong> x 3 67; (4.19)<br />

n(lnn+lnlnn-3) < P, < n(lnn+lnlnn-t), <strong>for</strong>n320. (4.20)<br />

If we look at a “random” integer n, the chances of its being prime are<br />

about one in Inn. For example, if we look at numbers near 1016, we’ll have to<br />

examine about 16 In 10 x 36.8 of them be<strong>for</strong>e finding a prime. (It turns out<br />

that there are exactly 10 primes between 1016 - 370 and 1016 - 1.) Yet the<br />

distribution of primes has many irregularities. For example, all the numbers<br />

between PI PZ P, + 2 and P1 PJ . . . P, + P,+l - 1 inclusive are composite.<br />

Many examples of “twin primes” p and p + 2 are known (5 and 7, 11 and 13,<br />

17and19,29and31, . . . . 9999999999999641 and 9999999999999643, . . . ), yet<br />

nobody knows whether or not there are infinitely many pairs of twin primes.<br />

(See Hardy and Wright [150, $1.4 and 52.81.)<br />

One simple way to calculate all X(X) primes 6 x is to <strong>for</strong>m the so-called<br />

sieve of Eratosthenes: First write down all integers from 2 through x. Next<br />

circle 2, marking it prime, and cross out all other multiples of 2. Then repeatedly<br />

circle the smallest uncircled, uncrossed number and cross out its other<br />

multiples. When everything has been circled or crossed out, the circled numbers<br />

are the primes. For example when x = 10 we write down 2 through 10,<br />

circle 2, then cross out its multiples 4, 6, 8, and 10. Next 3 is the smallest<br />

uncircled, uncrossed number, so we circle it and cross out 6 and 9. Now<br />

5 is smallest, so we circle it and cross out 10. Finally we circle 7. The circled<br />

numbers are 2, 3, 5, and 7; so these are the X( 10) = 4 primes not exceeding 10.<br />

“Je me sers de la<br />

z”;$ Zg$;/f 4.4 FACTORIAL FACTORS<br />

produif de nombres<br />

dkroissans depuis<br />

n jusqu9 l’unitk,<br />

saioir-n(n - 1)<br />

(n - 2). 3.2.1.<br />

L’emploi continue/<br />

de l’analyse combinatoire<br />

que je fais<br />

dans /a plupart de<br />

mes dCmonstrations,<br />

a rendu cette notation<br />

indispensa b/e. ”<br />

- Ch. Kramp (186]<br />

Now let’s take a look at the factorization of some interesting highly<br />

composite numbers, the factorials:<br />

n! = 1.2...:n = fib integer n 3 0. (4.21)<br />

k=l<br />

According to our convention <strong>for</strong> an empty product, this defines O! to be 1.<br />

Thus n! = (n - 1 )! n <strong>for</strong> every positive integer n. This is the number of<br />

permutations of n distinct objects. That is, it’s the number of ways to arrange<br />

n things in a row: There are n choices <strong>for</strong> the first thing; <strong>for</strong> each choice of<br />

first thing, there are n - 1 choices <strong>for</strong> the second; <strong>for</strong> each of these n(n - 1)<br />

choices, there are n - 2 <strong>for</strong> the third; and so on, giving n(n - 1) (n - 2) . . . (1)

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

Saved successfully!

Ooh no, something went wrong!