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.7 Counting primes 159<br />

t =Im(s) ranging, we have<br />

1<br />

2πi<br />

<br />

C<br />

<br />

x<br />

s ds<br />

= θ(x − n). (3.26)<br />

n s<br />

It follows immediately from these observations that for a given contour (but<br />

now with σ>1soastoavoidanylnζsingularity) we have:<br />

π ∗ (x) = 1<br />

<br />

x<br />

2πi<br />

s ln ζ(s) ds<br />

. (3.27)<br />

s<br />

This last formula provides analytic means for evaluation of π(x), because if x<br />

is not a prime power, say, we have from relation (3.25) the identity:<br />

C<br />

π ∗ (x) =π(x)+ 1<br />

2 π<br />

<br />

x 1/2<br />

+ 1<br />

3 π<br />

<br />

x 1/3<br />

+ ···,<br />

whichseriesterminatesassoonasthetermπ x 1/n /n has 2 n >x.<br />

It is evident that π(x) may be, in principle at least, computed from<br />

a contour integral (3.27), and relatively easy side calculations of π x 1/n<br />

starting with π ( √ x). One could also simply apply the contour integral relation<br />

recursively, since the leading term of π ∗ (x) − π(x) isπ ∗ x 1/2 /2, and so on.<br />

There is another alternative for extracting π if we can compute π ∗ , namely<br />

by way of an inversion formula (again for x not a prime power)<br />

π(x) =<br />

∞<br />

n=1<br />

µ(n)<br />

<br />

π∗ x<br />

n 1/n<br />

.<br />

This analytic approach thus comes down to numerical integration, yet<br />

such integration is the problematic stage. First of all, one has to evaluate ζ<br />

with sufficient accuracy. Second, one needs a rigorous bound on the extent to<br />

which the integral is to be taken along the contour. Let us address the latter<br />

problem first. Say we have in hand a sharp computational scheme for ζ itself,<br />

and we take x = 100,σ =3/2. Numerical integration reveals that for sample<br />

integration limits T ∈{10, 30, 50, 70, 90}, respective values are<br />

π ∗ (100) ≈ Re 1003/2<br />

T<br />

π 0<br />

100it ln ζ(3/2+it) dt<br />

3/2+it<br />

≈ 30.14, 29.72, 27.89, 29.13, 28.3,<br />

which values exhibit poor convergence of the contour integral: The true value<br />

of π ∗ (100) can be computed directly, by hand, to be 428/15 ≈ 28.533 ... .<br />

Furthermore, on inspection the value as a function of integration limit T is<br />

rather chaotic in the way it hovers around the true value, and rigorous error<br />

bounds are, as might be expected, nontrivial to achieve (see Exercise 3.37).<br />

The suggestions in [Lagarias and Odlyzko 1987] address, and in principle<br />

repair, the above drawbacks of the analytic approach. As for evaluation of ζ<br />

itself, the Riemann–Siegel formula is often recommended for maximum speed;

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

Saved successfully!

Ooh no, something went wrong!