Senior Secondary Maths Week Posters 2024

Decode The Mathematical Symphony of DNA and Barcodes with the senior secondary Maths Week poster Maths and Codes

You can see additional information and activities for this year’s poster below.

To check out last year’s Maths Week 2023 poster ”Pascal 400th” – click HERE.

Activities

Since the beginning of civilization, Kings, Queens and Generals have relied on efficient communication in order to run their countries and command their armies. At the same time, they have all been very aware of the consequences of any messages falling into the wrong hands, revealing precious secrets to enemy forces. This need for secrecy led to the creation of codes, also known as ciphers.

A cipher is a code that is used for a message that you want to protect and keep safe. You don’t want anyone else to read the message. There are many different types of ciphers, for example:

  • Substitute symbols or numbers for letters
  • Simple substitution cipher. A -> B; B -> C; C -> D etc. Like the Caesar Cipher
  • Writing backwards or mirror writing
  • Morse code or Invisible ink.

The science that studies such secret communication is called cryptology. The term cryptology is derived from the Greek kryptós (“hidden”) and lógos (“word”). Although a neutral country in WW2, Ireland was renowned for its ability to intercept and break codes. Dr Richard James Hayes was the director of the National Library of Ireland in 1941 but behind the scenes he was secretly working on breaking the infamous Nazi code: “Görtz Cipher”. Dr Hayes, the genius librarian, cracked the Nazi cipher that had stumped some of the greatest code breaking minds at Bletchley Park, the center of British wartime Cryptography.

A very famous cipher system was the ‘Enigma’ code used by the Germans in World War II which was eventually cracked by Poland and then the British working on the daily codes.

After the war ciphers were mostly used for military purposes but they were picked up by some companies to hide data from competitors, for example, IBM who designed a cipher called ‘Lucifer’ to encrypt customer’s data.

It is known as a “substitution cipher” where you replace each letter of the alphabet with another letter by shifting the whole alphabet a certain number of letters.

  • Try to encode your name with the Caesar Cipher by using the resources from the national geographic HERE.
  • Work in pairs and send coded messages. Do not forget to give the number of shift or the letter substitution like A-X.
  • Variations: write a message and give it to another team that need to crack the code without knowing the shift!
  • Try the crack the code adventure from the national geographic website HERE
  • Caesar code can be used to code a simple riddle, instructions, or clues if you are planning a Maths Trail or Treasure Hunt.

Morse code is a system for sending messages through dots, dashes and spaces. It can be used through many different mediums such as sound, light or on paper. It was first invented by Samuel F.B. Morse for the electric telegraph in the 1830s but, he had originally only used it for numbers so a man called Alfred Vail went on to develop it further to be able to code the English language.

In 1890 radios could not transmit speech, so using tones, Morse code was used to transmit over radio waves.

Morse code was still popular until the Cold War. Nowadays it isn’t used in commercial and military sectors but is still popular to learn and is needed for an Amateur Radio License.

  • Read more about the Morse code on the cryptomuseum.com website
  • Have a look to the dichotomic chart HERE from cryptomuseum.com. This chart helps you to understand how the Morse code of each Latin character is constructed. The letters with the highest frequency (i.e. the letters are used the most in English) are higher up in the table. A left-branch represents a dot, whilst a right-branch represents a dash. Ask the students which symbol should the letter L be represented by? If you go left, left, right which letter do you get and which symbol it is represented by? If you have a ‘Dash’, ‘Point’, ‘Point’, which letter do you get?
  • You can also use the table HERE from cryptomuseum.com as guide to decipher our code (shortly coming)
    • Algebra: .- .-.. –. . -… .-. .-
    • Fractions: ..-. .-. .- -.-. – .. — -. …
  • Morse code can be used to code a simple riddle, instructions, or clues if you are planning a Maths Trail or Treasure Hunt.

Binary code is a numerical system where everything is represented by either a 1 (on) or a 0 (off). When we think of the inventor of binary code we think of Gottfried Wilhelm Leibniz in the 17th century, but it has been traced back to ancient civilizations in Egypt and China.

Nowadays we use the binary system in computers but centuries ago it was used to keep records, for example, how much grain someone had.

So 0 will be 0, 1 will be 1. For the number two we use all our digit to we need to put 2 digits now. 2 = 10 and 3 = 11

To encode the 26 letters of the alphabet we need 5 digits. We can associate each letter with a number like its place in the alphabet A=1, B=2… For easy conversion from binary to decimal system each digit could be represented by an exponent of 2. So 11010 equals 16×1 + 8×1 + 4×0 + 2×1 + 1×0 = 26 | 10010 equals 16×1 + 8×0 + 4×0 + 2×1 + 1×0 = 18. Zero could represent a space if you are coding a sentence.

  • Try to encode hello or your name in binary
  • Try to decipher
    • 01000 00101 11000 00001 00111 01111 01110
    • 00100 00101 00011 01001 01101 00001 01100

We all know barcodes, we see them every day when we shop, and we don’t know where shopping would be without them. Supermarkets and shops need them for keeping track of inventory leading to cheaper prices and organised supply chain management.

They were first invented by Norman Joseph Woodland and Bernard Silver in 1949 but barcodes were not seen in stores until 1974 after the Universal Product Code (UPC) was put in place in retail. The UPC barcodes are a series of lines that vary in thickness representing an item with different digits under it. The famous first scan of a retail barcode was in Ohio in a Marsh Store.

Just before shops though the US rail industry used barcodes to mark railway freight cars, this shows us how flexible barcodes are and how they have so many different uses.

How to code a barcode?

The most commonly used barcode is the International Article Number (also known as European Article Number or EAN) with thirteen-digit: EAN-13. An EAN-13 has 4 components:

  • the first two or three digits tag the country
  • the following four or five digits tag the company/manufacturer
  • the following four or five digits tag the product
  • the last digit is the check digit

The Key or Check Digit

The check digit is an additional digit, used to verify that a barcode has been scanned correctly. The checksum is calculated as sum of products – taking an alternating weight value (1 or 3) times the value of each data digit. The checksum digit is the digit which must be added to this checksum to get a number divisible by 10. The mathematical equation will be:

(x1 + 3x2 + x3 + 3x4 + x5+ 3x6 + x7 + 3x8 + x9 + 3x10 + x11 + 3x12 +
x13) / 10 ≡ 0 (mod 10) meaning it equals a multiple of 10.

Eg. the check digit of 471-9-5120-0288 will be
  • 4×1 + 3×7 + 1 + 3×9 + 5 + 3×1 + 2 + 3×0 + 0 + 3×2 + 8 + 3×8
  • 4 + 21 + 1 + 27 + 5 + 3 + 2 + 0 + 0 + 6 + 8 + 24 = 101
  • 101 / 10 = 10 remainder 1
  • 10 – 1 = 9 so the check digit is 9
  • You can also look for the nearest multiple of 10 that is equal to or higher than 101. That is 110 then subtract the sum: 110 – 101 = 9
barcode digit ‘n’ 4 7 1 9 5 1 2 0 0 2 8 8
Weight ‘p’ 1 3 1 3 1 3 1 3 1 3 1 3
n x p 4 21 1 27 5 3 2 0 0 6 8 24
  • Could you find the check digit of this barcode 978-0-306-40615-?
  • Is this barcode correct 51-68007-53219-7?
  • The tag was torn and we cannot read anymore one digit of the barcode marked by an X. Could you find the missing digit? 33X-1027-64359-8

Bars in barcode

Unfortunately computers cannot read numbers. So we need to transform this sequence of numbers in sequence of 0 and 1 digit where 0 is white and 1 is black. Easy to scan, easy for the computer to read.

The first number is always outside the barcode. The barcode always starts with a separator coded ‘101’ a thin black line, a thin white line, a thin black line. Then a block of bars and spaces coding for the 6 following digits. A separator ‘01010’ a thin white line, a thin black line, a thin white line, a thin black line, a thin white line. Then a block of bars and spaces coding for the 6 following digits. And the barcode always ends with a separator ‘101’.

Each of the last twelve numbers of the barcode will be associated with seven digits of 0 and 1 represented by bars and spaces. So a barcode digit is encoded in seven areas, by two black bars and two white spaces. Each black bar or white space can have a width between 1 and 4 areas. The thickness of the bar will be coded by the numbers of 1 next to each other. So 0010011 will have a thin line then a thicker line. 0111101 has a very thick line. The thickness of the space will be coded by the numbers of 0 next to each other. Which one has the bigger space: 1100010 or 1001110?

  • How many areas are there to encode a single barcode? (don’t forget the separators)
  • Learn more about how to encode barcodes on the wikipedia page HERE.

Over the years with our modern world growing barcodes were no longer the best option, they were very limited in what information they could store so a gap in the market appeared.

A Japanese company Denso Wave were struggling with these limitations, some of their products could have 10 barcodes on them just to store the info they needed then. In 1994 employee Mashiro Hara was playing Go, a popular board game and came up with how the QR code could work. He realised how useful a grid system would be in storing information. They let the QR code tech be freely available for anyone to use and in 2002 Sharp released the first phone that could scan QR codes.

Then during the pandemic QR codes became even more popular with the need for a contactless world for example, a QR code to access a menu online.

Nowadays they can be used to mark attendance or access surveys online.

  • Find a pattern activity HERE (soon to come).
  • If this QR code is 25 pixels high and 25 pixels wide how many pixels is the QR code made up of?​

 

 

DNA (Deoxyribonucleic acid) and RNA (Ribonucleic acid) are two main types of nucleic acids made from different molecules called nucleotides (A, C, G, T, U).

DNA is the code of life and RNA converts this code into proteins to carry out functions in the organism.

In other words, you can think of a living being as a house. The blueprint for the whole house is the DNA. But it is inconvenient to use if you are only doing the kitchen. You have to take a closer look. How big is the oven? What colour are the cupboards? It will be your genes. Your kitchen will be different from your neighbour’s because the genes are different. But to look at the genes, you need a copy, an RNA – because you cannot rip them off the DNA. Then, from the copy, you can build the different equipment for your kitchen (the proteins).

History

For almost 200 years genes, their expression and their support (the DNA) have been researched starting with Charles Darwin and his ‘Evolution of Species’, a very controversial book during its time of publication.

We then saw Mendel discovering the basic idea of genetics when he experimented with pea plants and was the first to use the terms ‘dominant’ and ‘recessive’ genes.

In 1869, Friedrich Miescher was first investigating the proteins of white blood cells when he found a molecule that wouldn’t digest as easily as proteins and had high phosphorous content. He named this molecule ‘nuclein’. We know now this as DNA.

In 1944 Oswald Avery identified that DNA was responsible for hereditary calling it the ‘transforming principle’ which went on to inspire many other scientists including Erwin Chargaff who discovered how DNA is made up is specific to species.

In the 1950s Rosalind Franklin was working in X-ray diffraction, she was improving the X-ray crystallography at King’s College where she got a clear X-ray photo of DNA fibres. Using just these photos she was able to calculate the dimensions of the fibres and hypothesize that there were phosphates on the outside of a structure that was most likely helical. Before she got to fully finish her work two other scientists beat her to it using her photos. She unfortunately passed away only a few years later in 1958.

In 1953, James Watson and Francis Crick discovered DNA had a double helix structure, publishing their famous paper, which led them to win the Nobel Prize in Physiology or Medicine in 1962. Although Rosalind’s photos of DNA structure helped Watson and Crick majorly in their work, she received little to no credit until after her death. Although her co-worker Maurice Wilkins from King’s College went on to accept the Nobel Prize with Watson and Crick after her death.

Ada Yonath was the first person to map the structure of the ribosome, something many scientists had given up on – and for which she was awarded the Nobel Prize in Chemistry in 2009. She did this by crystallising and x-raying the bacterium Geobacillus stearothermophilus. It took her 25,000 attempts to do this without destroying the structure of the ribosome! This was a huge discovery and it allows us to fight bacteria with antibiotics that specifically target their ribosomes.


  • Morse Code
    • L be represented by ‘left, right, left, left’ so .-..
    • If you go left, left, right you get the letter U that is –.
    • ‘Dash’, ‘Point’, ‘Point’ -.. you go left right right and you get the letter D
    • Algebra: .- .-.. –. . -… .-. .- | Fractions: ..-. .-. .- -.-. – .. — -. …

  • Binary
    • hello: 01000 00101 01100 01100 01111
    • HEXAGON: 01000 00101 11000 00001 00111 01111 01110
    • DECIMAL: 00100 00101 00011 01001 01101 00001 01100

  • Bar Codes
    • The check digit of 978-0-306-40615-? is 7.
    • No. The barcode is wrong. 51-68007-53219-3 is correct. You have to take away the reminder from 10 to find the correct check digit.
    • 331-1027-64359-8 : (3 + 3×3 + X + 3×1 + 0 + 3×2 + 7 + 3×6 + 4 + 3×3 + 5 + 9×3 + 8) / 10 = 10y | 99 + X = 10y The nearest multiple of 10 that is equal to or higher than 99 is 100, so y=10 | X = 100 – 99 = 1
    • 1100010 has a bigger space. It is encoded by 0.
    • 7 areas for 12 digits = 12 x 7 = 84 + 3×2 (separators at the beginning and the end) + 5 (separator in the middle) = 95 areas!
  • QR Codes
    • There are 625 pixels on this QR code.
  • DNA Codes