You may also like

Football Crazy Hockey Mad

In a league of 5 football teams which play in a round robin tournament show that it is possible for all five teams to be league leaders.

Coordinates and Descartes

Have you ever wondered how maps are made? Or perhaps who first thought of the idea of designing maps? We're here to answer these questions for you.

Florence Nightingale - the Compassionate Mathematician

Florence Nightingale may be well known for her role as a nurse, but she was also an excellent mathematician, collecting and analysing data to help improve hospital conditions.

Substitution Cipher

Age 11 to 14
Challenge Level

Start by performing a frequency analysis on some selected text to see which letters appear most often. It is better to use longer texts, as a short text might have an unusual distribution of letters, like the "quick brown fox..." mentioned in the problem.


The toolkit allows you to change a pair of letters quickly and see the effect it has on the message. Alternatively, you could use Word's "Find and Replace" feature, with the 'Match Case' option, to change one letter at a time. You can distinguish between the coded message and the deciphered letters by using lower case for the coded message and replacing each letter by the upper case letter you think it represents.


The whole message has been encoded by switching pairs of letters.
For example, B and P have been switched so that every P is replaced by B, and every B replaced by P.