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
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
196<br />
appendix<br />
<strong>and</strong>, since all r<strong>and</strong>om keys of 15 letters are equally likely, ei<strong>the</strong>r of <strong>the</strong>se<br />
could be correct <strong>and</strong> indeed <strong>the</strong>re are more than 10 21 o<strong>the</strong>r possible<br />
decrypts, most of which are, however, nonsense.<br />
Chapter 8<br />
M8 Frequency of occurrence in a page of r<strong>and</strong>om<br />
numbers<br />
In a page of 100 two-digit r<strong>and</strong>om numbers any number in <strong>the</strong> range 00<br />
to 99 can be expected to occur once. The probability that a particular<br />
number will not occur in any particular position is 0.99 <strong>and</strong>, since <strong>the</strong><br />
numbers are r<strong>and</strong>om <strong>the</strong> probability that any particular number will not<br />
occur at all in a page of 100 is<br />
(0.99) 100 or (1�1/100) 100<br />
<strong>the</strong> value of which is, effectively, e �1 , where e�2.718 28... is <strong>the</strong> base of<br />
natural logarithms, as was remarked before, in M1. Since e �1 �0.37 to<br />
2 d.p. it follows that in a typical page of 100 r<strong>and</strong>om two-digit numbers<br />
<strong>the</strong>re will be about 37 that do not occur. On <strong>the</strong> o<strong>the</strong>r h<strong>and</strong> <strong>the</strong>re should<br />
be about<br />
100e �1<br />
which occur three times, i.e. about 6, <strong>and</strong> we might expect one number to<br />
occur four times since <strong>the</strong> expected number in that case is<br />
100e �1<br />
<strong>the</strong> value of which lies between 1 <strong>and</strong> 2.<br />
(What we are doing, in effect, is claiming that <strong>the</strong> probability of a specified<br />
two-digit number occurring exactly n times on a page of 100 such<br />
r<strong>and</strong>om numbers is approximately<br />
e �1<br />
n!<br />
3!<br />
4!<br />
which is a particular case of what is known as <strong>the</strong> Poisson distribution in<br />
probability <strong>the</strong>ory. For a full ma<strong>the</strong>matical treatment <strong>and</strong> justification,<br />
consult books on probability <strong>the</strong>ory, such as [8.1].)