Bletchley Park – A code breaking masterclass

This weekend I was invited to Bletchley Park to run a code breaking workshop with a group of year 9 students, as part of our Open University and Royal Institution mathematics masterclass series.

It also happened to be the Park’s 1940’s vintage weekend so, as I arrived I was greeted by soldiers in world war two uniforms, guarding the front entrance.

Inside the world heritage site, staff and visitors alike were dressed to impress in 1940’s attire. Vintage vehicles, including an army jeep, Spitfire and tank, were proudly displayed around the grounds, guests played lawn games and swing music blasted out of a wireless radio, creating a nostalgic atmosphere.

Staff and visitors dressed in 1940s clothing for the vintage weekend

Of course, in the 1940’s, when Bletchley Park was in full operation, it was not all fun and games.

During the Second World War, Bletchley Park was home to the Government Code and Cypher School and it was the job of mathematicians working there, including Alan Turing, Joan Clarke and Bill Tutte, to decipher intercepted military communications sent by the Axis nations. These included messages encoded with the German Enigma and Lorenz ciphers, which cryptanalysts had thought unbreakable.

Building on a breakthrough made by Polish codebreakers in Warsaw, Alan Turing and Gordon Welchman designed an electro-mechanical machine, known as the Bombe, to rapidly decode and transcribe Enigma encoded messages. Colossus, the world’s first programmable digital computer, was also used at Bletchley Park to decipher high level messages sent using the Lorenz cipher.

This work provided vital intelligence in support of Allied military operations and is credited with shortening the war by two years.

Working at the Open University, just a few miles down the road from Bletchley Park, it is hard not to feel inspired by the men and women who worked there. So when I was asked to run a workshop within these historic grounds, I jumped at the opportunity and a cryptography challenge seemed the obvious choice for my session.

A code breaking masterclass – the cipher challenge competition

After successfully getting past the military police at the identity card check point, I headed over to Block B, home to ‘The Life and Works of Alan Turing’ gallery and the coding centre’s Education Department, where our masterclass series takes place. I was joined by Sue Pawley from the Open University, who organised the series, and Tom Briggs, Bletchley Park’s Education manager.

The Education Department in Block B

This particular masterclass was set up as a competition, with twelve quick fire rounds, designed to create a sense of urgency, build tension and encourage strategic team work. In this way the students could begin to empathise with the code breakers of Bletchley Park and understand the immense pressure they were under during the war.

Students worked in small groups to decipher secret messages, working against the clock to crack the codes and get the decoded messages back to the base, before the other teams. They learned how to encode and decode messages using a range of classic codes and ciphers, including substitution ciphers such as the Pigpen (or Freemasons), Caesar and Hebrew “Atbash” cipher, and transposition ciphers like the Scytale and Rail-fence. There was also a bonus round, which involved deciphering numbers sentences, for example: 64 S on a C B and 32 is the T in D F at which W F (answer at the end*), for students to work on between rounds.

Working on the Bonus round, with a little help from Bletchley Park’s Tom Briggs

One of the oldest ciphers the students worked with, was the “Scytale” transposition cipher, used by the Spartans in Ancient Greece. In the 3rd century BC, a parchment would be wound around a cylinder, before a message was written and the unravelled parchment was sent to the intended recipient. For the students, this meant wrapping the cipher-text around a pencil to unscramble the letters and reveal the original plaintext.

The “decoders” working on the Scytale cipher using a pencil

One team of students worked out that they could solve this cipher without using a pencil, by simply ‘jumping’ along every six letters, deciding that this method was more mathematical. Unfortunately it was also a much slower method, but I was pleased that they had spotted this pattern and if they were decoding a longer message, this generalisation would have been helpful.

A Spartan “Scytale cipher”

The most famous mono-alphabetic substitution cipher, the Caesar cipher, was required for the next quick-fire round. Students solved this challenge by setting their Caesar wheels to a shift of 3, since this was the way historians believe Julius Caesar used this cipher when sending messages of military importance.

Team “cheese crackers” deciphering a message using a Caesar wheel

As the Caesar cipher is very simple, swapping one letter for another, it is a weak code that is easy to crack. As a group, the students discussed how to make this cipher stronger. This included a suggestion to “jumble up” the letters in the cipher-text strip so they were not in alphabetic order. This lead to a bonus challenge question: in how many different ways can the letters of the English alphabet be rearranged? The students produced a range of answers, including a sensible but incorrect suggestions of 26×26, but two teams were able to identify the solution: 26! (or 403 291 461 126 605 635 584 000 000). One team was able to correctly name an approximation of this number as four hundred septillion.

Trying different shifts using a Caesar cipher wheel

Modern cryptography is most often used to provide confidentiality and security when sending sensitive information, including bank details, via computers, so it was important to look at binary encryption. Some of the students had met the binary number system before, but for most the name was a familiar but scary and unknown concept. One student was able to explain the use of ones and zeroes to mean ‘on’ and ‘off’ functions within computers. Another student was able to explain that the ones and zeroes represented powers of 2, starting with 2o, i.e. 1, and that the equivalent decimal (or denary) number was equal to the sum of these values.

The “codebreakers” converting numbers from binary to denary to decode a message

When computers send information, usually in binary form, elements of the message can sometimes get changed in error during transmission. For this reason, data needs to be checked for corruption. In the next part of the session the students looked at how data can be “error checked” using a two-dimensional parity check.

This particular method works by adding an extra row and column of values to the original data which each act as a label. In the example below, 1 is added to the end of a row or column if there is an odd number of 1’s and a 0 is added for an even number of 1’s. In other words, the final value in each row or column contains the sum of that row or column, modulo 2.

Example of how to find an error using the two-dimensional parity check method

This challenge was set as a relay-race so that students had to find the error in each set of data before being given the next. This round required speed but students learnt that accuracy was ultimately more important as those teams who rushed and made mistakes were sent back, losing valuable seconds.

The “error-checking” relay challenge was a close round!

There is a useful video about parity checking here. You can also visit the National Museum of Computing, within the grounds of Bletchley Park, to find out more about binary and error checking.

The final!

During WW2, Alan Turing and the Hut 8 team used a combination of educated guess work and clues, including knowledge about where the message was intercepted, to decipher German military messages. Up to this point in the competition, the students had been told about the cipher used in each round and were given some information about the key, ultimately making the process of deciphering relatively straightforward. Of course, in any real code-breaking situation, where you are not the intended recipient of the message, you are not going to know the cipher key.

In the final and deciding round, the students had to use clues, including a bar chart depicting the frequency analysis of letters in the English alphabet, to decode one last message, getting a sense of the difficulty faced by the Bletchley Park code breakers.

The most common two and three letter words in the English language

This was a challenging task since many students struggled with the ambiguity that this method created. Assumptions had to be made and a trial and improvement approach was required. More than anything, students needed to use logic and their common sense in this round, to place likely words and adapt their solution as it developed.

“Team one” solved the frequency analysis round in record time!

It was a close call between the top three teams, but the final result meant team “JABLE” (named from the initials of the team members) were victorious, leaving Bletchley Park as Code-breaking Champions.

What struck me about this session was that the students naturally engaged with and discussed, problem solving strategies. Teams divided up the challenges and allocated roles in order to collaboratively decipher messages, quickly and accurately. Students used their natural mathematical powers to look for generalities within sequences and conjectured about solutions that made sense within the context. I was particularly impressed by the resilience that the students demonstrated when faced with unknown problems and when they became “stuck”. The history behind this mathematical masterclass seemed to give these students a common goal and a sense of working towards something greater.

Andrew Wiles, the mathematician who famously proved Fermat’s last theorem, recently said that “accepting the state of being stuck” is the essence of being a successful mathematician. Like the Enigma code, which was thought to be impossible to decipher, Fermat’s last theorem was long thought to be impossible to prove. What Turing and Wiles had in common when working on these “impossible” problems, was the resilience and perseverance that prevented them from giving up.

According to Tom Briggs, the Allies strengths, which ultimately lead to cracking the Enigma code, were: luck, inventiveness, bravery, persistence and secrecy. The students certainly showed inventiveness and persistence, and I am sure the winning team would argue that luck that nothing to do with it!

Find out more about Royal Institution mathematics masterclasses

The Open University is responsible for organising four Royal Institution secondary mathematics masterclass series held at: Bletchley Park, the Museum of Science and Industry in Manchester, the University of Bradford and the University of Worcester.

For six weeks, children in year 9 from local schools are invited to participate in exciting mathematical workshops, such as: Games, Goats and Gold and Infinity: Friend or Foe? The aim of the series is to stimulate and encourage young people in the art and practice of mathematics, to develop a sense of enjoyment in the subject.

If you want to send some students along, you can find out more about these series here: http://mcs.open.ac.uk/RI_MasterClasses/.

If you are interested in delivering a workshop or volunteering to support a session for the 2018 series, please get in touch: charlotte.webb@open.ac.uk.

For more information about the Royal Institution Mathematics Masterclasses national programme, which also includes masterclasses for primary-aged children, see: http://www.rigb.org/maths.

Visiting Bletchley Park and The National Museum of Computing

If you have not yet visited Bletchley Park, no longer the world’s best kept secret, it is definitely worth making the trip!

A view of the mansion from across the lake. 

I recommend signing up for a free guided tour of the Park and attending one of the Enigma and Turing Bombe live demonstrations.

If you have time, you should also include a trip to the National Museum of Computing to see the magnificent Colossus rebuild.

More codes and Ciphers

If you are interested in finding more about codes and ciphers or are looking for resources to use with your classes, these websites offer some fantastic ideas:

*Answers

64 squares on a chessboard

32 is the temperature in degrees Fahrenheit at which water freezes

Posted in Uncategorised | Leave a comment

Hello, from Sue

I’m Sue Forsythe, the latest member to join the Mathematics Education team at the Open University. I have worked in Mathematics Education all my career, first as a secondary school teacher of Mathematics and latterly as an Initial Teacher Educator of Secondary Mathematics. I understand the need for Mathematics to be taught by teachers who have a deep understanding of mathematical concepts and a secure pedagogy to be able to develop these concepts in their students. The Smith review recommends the near universal participation of 16-18 year olds to continue studying Mathematics. As a result there will need to be increased capacity in the teaching profession to deliver this. The OU Honours degree in Mathematics and its Learning has huge potential to develop this capacity, both within students taking the whole degree and with specific modules available for those teachers in schools and colleges who change to specialise in teaching Mathematics.

My doctoral thesis, completed in 2014, used a Design Based Research methodology to explore whether a task in a Dynamic Geometry Environment could be the catalyst for the development of the concept of inclusion in 2D geometry in 13 year old students. The research allowed me to make a fine grained study of how children think about shapes and develop understanding of important mathematical concepts such as inclusivity. One important finding from the study was the affordances of the dynamic figure at the heart of the task which includes the facilitating of a narrative through which students can construct meanings. This makes reasoning in a dynamic environment qualitatively different from reasoning in a static (pencil and paper) environment. Generally, how learners reason in a dynamic environment could be an immensely fruitful area of research to help us understand how best to create effective online learning.

This lends itself very obviously to the learning of mathematics online which should be more than simply an electronic workbook, even if the computer provides instant feedback. I believe that further research is needed in how to make the most of the affordances of interactive maths software.

Posted in Uncategorised | Leave a comment

Thinking aloud: the Open University and teaching post-16 Mathematics

Cathy Smith and Charlotte Webb discuss the Open University and Adrian Smith’s Review of post-16 Mathematics

Charlotte:
Cathy – you have recently joined the Open University team. Welcome. Tell me a bit about your experience and interests in mathematics education.

Cathy:
Well, I have recently come from a big mathematics education team at UCL Institute of Education. I have been working in mathematics teacher training and professional development. I am really pleased to be taking that work forward here in Mathematics Education.
My research interests are in two areas. One that I am very passionate about is the participation of young women in mathematics. I have researched adolescents at the stage of them choosing whether or not to continue with mathematics, looking at how they are positioned by wider discourses about what it is to be a girl or a boy, and how it feels to be at the intersection of multiple identities: mathematics student, hard worker, friend, son, daughter. One of the reasons the Open University has always appealed to me – and I have been an associate lecturer in the past – is the chance it offers for people to come back to studying, and specifically to come back to mathematics.
The other area that I have recently been working on is designing courses for beginner teachers to prepare to teach A-level mathematics. This has been a project with the Further Mathematics Support Programme. Our research suggested that new teachers get limited experience of teaching level 3 mathematics during their training – because they are rightly concerned with other aspects of classroom and curriculum management. So over the last three years we have rolled out online and face-to-face courses in which beginner teachers can enrol to look at aspects of A-level mathematical knowledge from the learners’ and teacher’s points of view, combining learning about subject and pedagogy. I think this also is fit with the Open University aim to offer opportunities for teachers and others to upskill themselves in mathematics, maybe consolidating their knowledge, maybe looking to teach a wider range of content or students.

Charlotte:
Yes, exactly. We have over 1000 students every year enrolling on our core mathematics module. About ten percent are on the mathematics education pathway and many others tell us they intend to teach.  For example one of our students, Joanne Breeze, is studying in Wales for the BSc in Mathematics with a view to becoming a teacher. She was originally an electrical engineer, after first going off to a red brick university, then following an apprenticeship route instead. She returned to study and decided to retrain after having children. Lots of our students have similar stories and are returning to formal mathematics study after time in the workplace. Then, others come to us because they prefer flexible, distance-learning options that we offer. Many are already working in schools in support roles, so we are aware that schools want more mathematics specialists who can also communicate and work with children.
 
Cathy:
Adrian’s Smith report has just been published setting out the future needs for post-16 mathematics. He has recommended that, in the longer term – about ten years – the government should expect every 16-year old to be studying some mathematics. I think he makes a very good case that employers want graduates with some quantitative skills, whereas many of our 23-year old graduates have not studied any maths for five years. It is not only teachers who have to pass a numeracy test.

Charlotte:
As a country we need mathematical skills for people in STEM jobs – but also in non-STEM jobs because these are becoming increasingly data–driven. I recently heard the film animator Sydney Padua talk about the importance of using mathematical tools in her creative work.

Cathy:
I agree with universal participation as a goal but it is difficult to see how that could be compulsory. I think we need a range of pathways so that every 16-year-old can see a choice that offers suitable mathematics for them, whether that’s functional maths, vocational maths, Core Maths, A-level etc.  I once did a review of the curricula in high-performing jurisdictions, and they all had a range of pathways post-16 that included maths for work, maths and statistics as well as a calculus route like A-level.  Then of course there is the question of the teacher workforce required …

Charlotte:
…which will only add to the increasing recruitment demands for specialist mathematics teachers, and they will now need to be effective in teaching that range of courses.  Adrian Smith recommends investment in continued professional development in mathematics for teachers of post-16.

Cathy:
Yes, and if all these teachers are needed post-16, this may have a knock-on effect and mean that schools would find it hard to provide specialist teachers for the new GCSE, or for GCSE resits in FE. Realistically there is going to be a huge need to bring new entrants into the profession or for teachers from other subjects to retrain in mathematics.  And that where we have to say the OU can help.

Charlotte:
Our mathematics education modules were originally designed for improving teachers’ knowledge of mathematics, and how mathematical thinking develops. We have got reach across the four nations, and in fact we have already been working with the Irish government. We have matched up our maths modules with the new standards that they require from specialist teachers. So teachers can learn at a distance, while they work.

Cathy:
What I see as the next stage for mathematics education in the Open University is to make our modules more accessible for people in schools or any other busy work environment. You might not need a full second degree, but as an educator you do need to understand how the school mathematics curriculum prepares students for the next stages of study. You need to know how to analyse the data sets that students meet at GCSE and A-level, and how mathematics helps us model movement and forces. Explaining how mathematics is applied in biology, or how it has developed historically through human problem solving, inspires students to learn more and to keep participating in maths. So at the OU, perhaps that means presenting the best tasks, and the most relevant content, in more flexible units. There are some great, short professional development courses around but they don’t offer the breadth and support of an OU undergraduate module. So in the next few months I will be thinking about what we can offer as professional qualifications for existing teachers and new ones. And how this can make use of our expertise in teaching enabled by technology. And crucially talking to schools and Maths Hubs about their priorities for developing and retaining mathematically skilled teachers. The OU wants to make changes, and this fits well with its vision of becoming more agile and engaged with employers.

Posted in Uncategorised | 1 Comment