# Blog

## Archive

Show me a Random Blog Post**2017**

**2016**

**2015**

**2014**

**2013**

**2012**

## Tags

folding paper folding tube maps london underground platonic solids rhombicuboctahedron raspberry pi weather station programming python php news royal baby probability game show probability christmas flexagons frobel coins reuleaux polygons countdown football world cup sport stickers tennis braiding craft wool emf camp people maths trigonometry logic propositional calculus twitter mathslogicbot oeis pac-man graph theory video games games chalkdust magazine menace machine learning javascript martin gardner reddit national lottery rugby puzzles advent game of life dragon curves fractals pythagoras geometry triangles european cup dates palindromes chalkdust christmas card bubble bobble asteroids final fantasy curvature binary arithmetic bodmas**2017-01-13 04:32:41**

## Is MEDUSA the New BODMAS?

I wrote this post with, and after much discussion with Adam Townsend. It also appeared on the Chalkdust Magazine blog.

Recently, Colin "IceCol" Beveridge blogged about something that's been irking him for a while: those annoying social media posts that tell you to work out a sum, such as \(3-3\times6+2\), and state that only $n$% of people will get it right (where \(n\) is quite small). Or as he calls it "fake maths".

This got me thinking about everyone's least favourite primary school acronym: BODMAS (sometimes known as BIDMAS, or PEMDAS if you're American). As I'm sure you've been trying to forget, BODMAS stands for "

**B**rackets, (to the power)**O**f,**D**ivision,**M**ultiplication,**A**ddition,**S**ubtraction" and tells you in which order the operations should be performed.Now, I agree that we all need to do operations in the same order (just imagine trying to explain your working out to someone who uses

*BADSOM*!) but BODMAS isn't the order mathematicians use. It's simply wrong. Take the sum \(4-3+1\) as an example. Anyone can tell you that the answer is 2. But BODMAS begs to differ: addition comes first, giving 0!The problem here is that in reality, we treat addition and subtraction as equally important, so sums involving just these two operations are calculated from left-to-right. This caveat is quite a lot more to remember on top of BODMAS, but there's actually no need: Doing all the subtractions before additions will always give you the same answer as going from left-to-right. The same applies to division and multiplication, but luckily these two are in the correct order already in BODMAS (but no luck if you're using PEMDAS).

So instead of BODMAS, we should be using

*BODMSA*. But that's unpronounceable, so instead we suggest that from now on you use**MEDUSA**. That's right,**MEDUSA**:**M**abano (*brackets*in Swahili)**E**xponentiation**D**ivision**U**kubuyabuyelela (*multiplication*in Zulu)**S**ubtraction**A**ddition

This is big news. MEDUSA vs BODMAS could be this year's pi vs tau... Although it's not actually the biggest issue when considering sums like \(3-3\times6+2\).

The real problem with \(3-3\times6+2\) is that it is written in a purposefully confusing and ambiguous order. Compare the following sums:

$$3-3\times6+2$$ $$3+2-3\times6$$ $$3+2-(3\times6)$$
In the latter two, it is much harder to make a mistake in the order of operations, because the correct order is much closer to normal left-to-right reading order, helping the reader to avoid common mistakes. Good mathematics is about good communication, not tricking people. This is why questions like this are "fake maths": real mathematicians would never ask them. If we take the time to write clearly, then I bet more than \(n\)% of people will be able get the correct answer.

### Similar Posts

Christmas Card 2016 | Christmas (2016) is Over | Video Game Surfaces | Christmas (2016) is Coming! |

### Comments

Comments in green were written by me. Comments in blue were not written by me.

**2016-12-28 06:49:35**

## Christmas (2016) is Over

More than ten correct solutions to this year's Advent calendar puzzle competition were submitted on Christmas Day, so the competition is now over.
(Although you can still submit your answers to get me to check them.) Thank-you to everyone who took part in the puzzle, I've had a lot of
fun watching your progress and talking to you on Twitter, Reddit, etc. You can find all the puzzles and answers (from 1 January) here.

The (very) approximate locations of all the entries I have received so far are shown on this map:

This year's winners have been randomly selected from the 29 correct entries on Christmas Day. They are:

1 | Jack Jiang |

2 | Steve Paget |

3 | Joe Gage |

4 | Tony Mann |

5 | Stephen Cappella |

6 | Cheng Wai Koo |

7 | Demi Xin |

8 | Lyra |

9 | David Fox |

10 | Bob Dinnage |

Your prizes will be on their way in early January.

Now that the competition has ended, I can give away a secret. Last year, Neal
suggested that it would be fun if a binary picture was hidden in the answers. So this year I hid one. If you write all the answers in binary, with
each answer below the previous and colour in the 1s black, you will see this:

I also had a lot of fun this year making up the names, locations, weapons and motives for the final murder mystery puzzle. In case you missed them these were:

# | Murder suspect | Motive |

1 | Dr. Uno (uno = Spanish 1) | Obeying nameless entity |

2 | Mr. Zwei (zwei = German 2) | To worry others |

3 | Ms. Trois (trois = French 3) | To help really evil elephant |

4 | Mrs. Quattro (quattro = Italian 4) | For old unknown reasons |

5 | Prof. Pum (pum = Welsh 5) | For individual violent end |

6 | Miss. Zes (zes = Dutch 6) | Stopping idiotic xenophobia |

7 | Lord Seacht (seacht = Irish 7) | Suspect espied victim eating newlyweds |

8 | Lady Oito (oito = Portuguese 8) | Epic insanity got him today |

9 | Rev. Novem (novem = Latin 9) | Nobody in newsroom expected |

# | Location | Weapon |

1 | Throne room | Wrench (1 vowel) |

2 | Network room | Rope (2 vowels) |

3 | Beneath reeds | Revolver (3 vowels) |

4 | Edge of our garden | Lead pipe (4 vowels) |

5 | Fives court | Neighbour's sword (5 vowels) |

6 | On the sixth floor | Super banana bomb (6 vowels) |

7 | Sparse venue | Antique candlestick (7 vowels) |

8 | Weightlifting room | A foul tasting poison (8 vowels) |

9 | Mathematics mezzanine | Run over with an old Ford Focus (9 vowels) |

Finally, well done to Scott,
Matthew Schulz,
Michael Gustin,
Daniel Branscombe,
Kei Nishimura-Gasparian,
Henry Hung,
Mark Fisher,
Jon Palin,
Thomas Tu,
Félix Breton,
Matt Hutton,
Miguel,
Fred Verheul,
Martine Vijn Nome,
Brennan Dolson,
Louis de Mendonca,
Roni,
Dylan Hendrickson,
Martin Harris,
Virgile Andreani,
Valentin Valciu,
and Adia Batic for submitting the correct answer but being too unlucky to win prizes this year. Thank you all for taking part and I'll see you
next December for the next competition.

### Similar Posts

Christmas (2016) is Coming! | Christmas (2015) is Over | Christmas (2015) is Coming! | Christmas Card 2016 |

### Comments

Comments in green were written by me. Comments in blue were not written by me.

**2017-02-03**

Steve Paget

**2017-01-19**

Thanks for setting this all up; I had a lot of fun solving the puzzles every day (and solving half them again when my cookie for the site somehow got deleted). I'll be sure to participate next time too!

SC

**2016-12-28**

Jack

**Add a Comment**

**2016-12-23 18:38:20**

## Video Game Surfaces

In many early arcade games, the size of the playable area was limited by the size of the screen. To make this area seem larger, or to
make gameplay more interesting, many games used wraparound; allowing the player to leave one side of the screen and return on another.
In Pac-Man, for example, the player could leave the left of the screen along the arrow shown and return
on the right, or vice versa.

Pac-Man's apparent teleportation from one side of the screen to the other may seem like magic, but it is more easily explained by
the shape of Pac-Man's world being a cylinder.

Rather than jumping or teleporting from one side to the other, Pac-Man simply travels round the cylinder.

Bubble Bobble was first released in 1986 and features two dragons, Bub and Bob, who are tasked with
rescuing their girlfriends by trapping 100 levels
worth of monsters inside bubbles. In these levels, the dragons and monsters may leave the bottom of the screen to return at the top.
Just like in Pac-Man, Bub and Bob live on the surface of a cylinder, but this time it's horizontal not vertical.

A very large number of arcade games use left-right or top-bottom wrapping and have the same cylindrical shape as Pac-Man or Bubble Bobble.
In Asteroids, both left-right and top-bottom wrapping are used.

The ships and asteroids in Asteroids live on the surface of a torus, or doughnut: a cylinder around to make its two ends meet up.

There is, however, a problem with the torus show here. In Asteroids, the ship will take amount of time to get from the left of the screen
to the right however high or low on the screen it is. But the ship can get around the inside of the torus shown faster than it can
around the outside, as the inside is shorter. This is because the screen of play is completely flat, while the inside and outside halves of
the torus are curved.

It is impossible to make a flat torus in three-dimensional space, but it is possible to make one in
four-dimensional space.
Therefore, while Asteroids seems to be a simple two-dimensional game, it is actually taking place on a four-dimensional surface.

Wrapping doesn't only appear in arcade games. Many games in the excellent Final Fantasy series use wrapping on the world maps, as shown here
on the Final Fantasy VIII map.

Just like in Asteroids, this wrapping means that Squall & co. carry out their adventure on the surface of a four-dimensional flat torus.
The game designers, however, seem to not have realised this, as shown in this screenshot including a spherical (!) map.

Due to the curvature of a sphere, lines that start off parallel eventually meet. This makes it impossible to map
nicely between a flat surface to a sphere (this is why so many different map projections exist), and heavily complicates the task of making
a game with a truly spherical map. So I'll let the Final Fantasy VIII game designers off. Especially since the rest of the game is such
incredible fun.

It is sad, however, that there are no games (at leat that I know of) that make use of the great variety of different wrapping rules available. By only
slightly adjusting the wrapping rules used in the games in this post, it is possible to make games on a variety of other surfaces,
such a Klein bottles or Möbius strips as shown below.

If you know of any games make use of these surfaces, let me know in the comments below!

### Similar Posts

Optimal Pac-Man | Proving Pythagoras' Theorem | The Mathematical Games of Martin Gardner | MENACE |

### Comments

Comments in green were written by me. Comments in blue were not written by me.

**2016-12-25**

Zeno Rogue

**2016-12-24**

See: http://zenorogue.blogspot.com.au/2012/03/hyperbolic-geometry-in-hyperbolic-rogue.html

maetl

**2016-12-24**

zaratustra

**2016-12-24**

F-Zero X had a more trivial track that was just the outward side of a regular ring, but it was rather weird too, because it meant that this was a looping track that had no turns.

Olaf

**2016-12-24**

gaurish

**Add a Comment**

**2016-12-20 09:21:56**

## Christmas Card 2016

Last week, I posted about the Christmas card I designed on the Chalkdust blog.

The card looks boring at first glance, but contains 12 puzzles. Converting the answers to base 3, writing them in the boxes on the front, then colouring the 1s green and 2s red will reveal a Christmassy picture.

If you want to try the card yourself, you can download this pdf. Alternatively, you can find the puzzles below and type the answers in the boxes. The answers will be automatically converted to base 3 and coloured...

# | Answer (base 10) | Answer (base 3) | ||||||||

1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |

2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |

3 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |

4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |

5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |

6 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |

7 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |

8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |

9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |

10 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |

11 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |

12 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |

- The square number larger than 1 whose square root is equal to the sum of its digits.
- The smallest square number whose factors add up to a different square number.
- The largest number that cannot be written in the form \(23n+17m\), where \(n\) and \(m\) are positive integers (or 0).
- Write down a three-digit number whose digits are decreasing. Write down the reverse of this number and find the difference. Add this difference to its reverse. What is the result?
- The number of numbers between 0 and 10,000,000 that do not contain the digits 0, 1, 2, 3, 4, 5 or 6.
- The lowest common multiple of 57 and 249.
- The sum of all the odd numbers between 0 and 66.
- One less than four times the 40th triangle number.
- The number of factors of the number \(2^{756}\)×\(3^{12}\).
- In a book with 13,204 pages, what do the page numbers of the middle two pages add up to?
- The number of off-diagonal elements in a 27×27 matrix.
- The largest number, \(k\), such that \(27k/(27+k)\) is an integer.

### Similar Posts

Christmas (2016) is Over | Christmas (2016) is Coming! | Christmas (2015) is Over | Christmas (2015) is Coming! |

### Comments

Comments in green were written by me. Comments in blue were not written by me.

**2016-12-20**

Dan Whitman

**2016-12-20**

Matthew

**2016-12-20**

Dan Whitman

**Add a Comment**

**2016-11-27 15:57:54**

## Christmas (2016) is Coming!

This year, the front page of mscroggs.co.uk will feature an advent calendar, just like last year. Behind each door, there will be a puzzle with a three digit solution. The solution to each day's puzzle forms part of a murder mystery logic puzzle in which you have to work out the murderer, motive, location and weapon used: the answer to each of these murder facts is a digit from 1 to 9 (eg. The murderer could be 6, the motive 9, etc.).

As you solve the puzzles, your answers will be stored in a cookie. Behind the door on Christmas Day, there will be a form allowing you to submit your answers. The winner will be randomly chosen from all those who submit the correct answer on Christmas Day. Runners up will then be chosen from those who submit the correct answer on Christmas Day, then those who submit the correct answer on Boxing Day, then the next day, and so on. As the winners will be chosen randomly,

**there is no need to get up at 5am on Christmas Day this year**!The winner will win this array of prizes:

I will be adding to the pile of prizes throughout December. Runners up will get a subset of the prizes. The winner and runners up will also win an mscroggs.co.uk 2016 winners medal:

To win a prize, you must submit your entry before the end of 2016. Only one entry will be accepted per person. Once ten correct entries have been submitted, I will add a note here and below the calendar. If you have any questions, ask them in the comments below or on Twitter.

So once December is here, get solving! Good luck and have a very merry Christmas!

Edit: added picture of this year's medals.

Edit: more than ten correct entries have been submitted, list of prize winners can be found here.
You can still submit your answers but the only prize left is glory.

### Similar Posts

Christmas (2016) is Over | Christmas (2015) is Over | Christmas (2015) is Coming! | Christmas Card 2016 |

### Comments

Comments in green were written by me. Comments in blue were not written by me.

**2016-12-27**

Matthew

**2016-12-27**

Another Matthew

**2016-12-25**

Lyra

**2016-12-25**

Louis

**2016-12-25**

Matthew

**Add a Comment**

Add a Comment