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.

8 Chapter 1 PRIMES!<br />

1.1.4 Asymptotic relations and order nomenclature<br />

At this juncture, in anticipation of many more asymptotic density results<br />

and computational complexity estimates, we establish asymptotic relation<br />

nomenclature for the rest of the book. When we intend<br />

f(N) ∼ g(N)<br />

to be read “f is asymptotic to g as N goes to infinity,” we mean that a certain<br />

limit exists and has value unity:<br />

When we say<br />

lim f(N)/g(N) =1.<br />

N→∞<br />

f(N) =O(g(N)),<br />

to be read “f is big-O of g,” we mean that f is bounded in this sense: There<br />

exists a positive number C such that for all N, or for all N in a specified set,<br />

|f(N)| ≤C|g(N)|.<br />

The “little-o” notation can be used when one function seriously dominates<br />

another; i.e., we say<br />

f(N) =o(g(N))<br />

to mean that<br />

lim f(N)/g(N) =0.<br />

N→∞<br />

Some examples of the notation are in order. Since π(x), the number of<br />

primes not exceeding x, is clearly less than x for any positive x, we can say<br />

π(x) =O(x).<br />

On the other hand, it is not so clear, and in fact takes some work to prove<br />

(see Exercises 1.11 and 1.13 for two approaches), that<br />

π(x) =o(x). (1.1)<br />

Equation (1.1) can be interpreted as the assertion that at very high levels the<br />

primes are sparsely distributed, and get more sparsely distributed the higher<br />

one goes. If A is a subset of the natural numbers and A(x) denotes the number<br />

of members of A that do not exceed x, theniflimx→∞ A(x)/x = d, we call d<br />

the asymptotic density of the set A. Thus equation (1.1) asserts that the set<br />

of primes has asymptotic density 0. Note that not all subsets of the natural<br />

numbers possess an asymptotic density; that is, the limit in the definition may<br />

not exist. As just one example, take the set of numbers with an even number<br />

of decimal digits.<br />

Throughout the book, when we speak of computational complexity of<br />

algorithms we shall stay almost exclusively with “O” notation, even though

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

Saved successfully!

Ooh no, something went wrong!