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.

(2) In how many ways can N be represented as <strong>the</strong> sum of (any number of)<br />

positive integers where <strong>the</strong> order of <strong>the</strong> integers is relevant? This<br />

number is denoted by c(N) <strong>and</strong> is called <strong>the</strong> number of combinations<br />

of N. For example:<br />

4:�4�3�1�1�3�2�2�2�1�1�1�2�1�1�1�2�1�1�1�1<br />

so that c(4)�8. In fact it can be proved that<br />

c(N)�2 (N�1) ,<br />

for a proof of which see [10.2].<br />

(3) In how many ways can N be represented as <strong>the</strong> sum of k (a fixed number<br />

of) positive integers when <strong>the</strong> order of <strong>the</strong> integers is relevant?<br />

Since <strong>the</strong>re are k integers <strong>and</strong> each of <strong>the</strong>se must be greater than or<br />

equal to 1 <strong>the</strong> total number is given by <strong>the</strong> coefficient of X N in <strong>the</strong><br />

expansion of<br />

X k (1�X) �k<br />

or, what is <strong>the</strong> same thing, <strong>the</strong> coefficient of X (N�k) in <strong>the</strong> expansion of<br />

(1�X) �k<br />

<strong>and</strong> this is<br />

(N � 1)!<br />

(k � 1)!(N � k)<br />

a formula which is relevant to Problem 4.2 ( where N�9 <strong>and</strong> k�3,<br />

giving <strong>the</strong> value 28).<br />

M19 Maximum multiple of <strong>the</strong> kick which can occur<br />

when differencing Hagelin key<br />

Consider a wheel of length w with a kick of k. When we difference <strong>the</strong><br />

pattern at any distance, d, which is not a multiple of w, <strong>the</strong>re are four possibilities,<br />

shown in Table A.1.<br />

Table A.1<br />

Pin N Pin (N�d) Difference of key values<br />

Inactive Inactive 0<br />

Inactive Active �k<br />

Active Inactive �k<br />

Active Active 0<br />

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

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

Saved successfully!

Ooh no, something went wrong!