30.11.2012 Views

Code and ciphers: Julius Caesar, the Enigma and the internet

Code and ciphers: Julius Caesar, the Enigma and the internet

Code and ciphers: Julius Caesar, the Enigma and the internet

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Chapter 13<br />

M21 (Rate of increase of <strong>the</strong> number of primes)<br />

The Prime Number Theorem [12.1] tells us that as N increases <strong>the</strong> number<br />

of primes less than N, which is traditionally denoted by �(N), is asymptotically<br />

approximated by<br />

N<br />

�(N) �<br />

log(N)<br />

The logarithm being to base e.<br />

It follows that as N increases <strong>the</strong> fraction of integers less than N which are<br />

primes slowly decreases. By studying tables of <strong>the</strong> number of primes less than<br />

1000, 10 000, 100 000 Gauss discovered <strong>the</strong> Prime Number Theorem in<br />

1793, but was unable to prove it. The relevant data are shown in Table A.2.<br />

Table A.2<br />

N Number of primes less than N Fraction of numbers which are prime<br />

1000 168 1 in 15.95<br />

10 000 1 229 1 in 18.14<br />

100 000 9 592 1 in 10.43<br />

1000 000 78 498 1 in 12.74<br />

If we now difference <strong>the</strong> numbers in <strong>the</strong> right-h<strong>and</strong> column we get<br />

18.14�15.95�2.19,<br />

10.43�18.14�2.29,<br />

12.74�10.43�2.31,<br />

<strong>and</strong> Gauss conjectured that this difference would be essentially constant<br />

as N increased <strong>and</strong> would be approximately 2.3. Now log(10) is approximately<br />

equal to 2.3 <strong>and</strong> this implied that if we increase N by a factor of 10<br />

<strong>the</strong> reciprocal of <strong>the</strong> fraction of integers less than N which are primes<br />

increases by log(10), a statement which is equivalent to <strong>the</strong> Prime Number<br />

Theorem. Gauss’s conjecture was correct but it was more than a hundred<br />

years before <strong>the</strong> Prime Number Theorem was proved. See also [12.1].<br />

M22 Calculating remainder using modular arithmetic<br />

(1) That (59) 96 is a number with 171 digits follows from <strong>the</strong> fact that<br />

96log 10 (59)�96�(1.770 85...)�170.0018...<br />

so (59) 96 lies between 10 170 <strong>and</strong> 10 171 <strong>and</strong> <strong>the</strong>refore has 171 digits.<br />

Ma<strong>the</strong>matical aspects 209

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

Saved successfully!

Ooh no, something went wrong!