This is a guest post by semi-regular guest author, mathematician-turned-maths-teacher Andrew Stacey.
I like having something mathematical to think about for times when I’m, for example, waiting in a queue to get into the supermarket. Annie Perkin’s Math Art Challenge has been a good source of such of late. These are a series of mathematically-inspired artistic activities, ranging from designing celtic knots to constructing origami polyhedra and everything in between.
My eye was caught by one on sandpiles – I’ll explain exactly what they are in a moment. One feature that made it attractive was that it was quite simple to write a program to generate diagrams. I find that the maths that interests me usually comes from looking at variations, and for that I need to generate a lot of examples. Doing them by hand quickly becomes laborious. So I whipped up a program (which I later converted to an online version) and ran it a few times to see what happened.
John Bibby points out a numeric coincidence – “Sean Connery died on 31/10/20. If you add up all the numbers in the date = 007”. Spooky, huh? I’m hoping you’re asking ‘is that unlikely?’ John asks “How many other dates this year add up to 007? What about in 2021?”
This is a fine pen-and-paper activity (or for thinking about in the shower, as I tried this morning), but also a nice little brute-force coding exercise.
The next issue of the Carnival of Mathematics, rounding up blog posts from the month of October, is now online at Aleph James A.
The Carnival rounds up maths blog posts from all over the internet, occasionally including some from our own Aperiodical. See our Carnival of Mathematics page for more information.
The next issue of the Carnival of Mathematics, rounding up blog posts from the month of September, is now online on Abhik Jain’s blog.
The Carnival rounds up maths blog posts from all over the internet, including some from our own Aperiodical. See our Carnival of Mathematics page for more information.
In this series of posts, Katie investigates simple mathematical concepts using the Google Sheets spreadsheet app on her phone. If you have a simple maths trick, pattern or concept you’d like to see illustrated in this series, please get in touch.
Spreadsheets are wonderfully versatile, and the fact that I can now carry spreadsheets around on my phone, in my pocket, is a marvellous result of the smartphone boom. I’m always pleased to see so many people wandering around using spreadsheets on their phones (I assume).
So when my Aperiodicolleague CL-P sent me a link to his latest spreadsheet creation, I was pretty excited to find yet another application of spreadsheets – for modelling cellular automata! As we’ve previously written about on this site, cellular automata are systems that have a set of rules to determine how they change over time, on a cell-by-cell basis (spreadsheets are really the natural choice here). While many automata, such as Conway’s famous Game of Life, are 2-dimensional, that’s slightly difficult to represent on a spreadsheet, as you’d need a separate sheet for each point in time. 1-dimensional automata can be displayed on a spreadsheet though, by simply using the top row to represent the cells you’re starting with and then iterating time down the sheet.
CL-P’s spreadsheet models the famous Rule 30 cellular automaton, named for the specific rule it encodes. Stephen Wolfram, of Wolfram who brought you the maths programme Mathematica and many other cool maths things, named the set of Elementary Cellular Automata rules (0 to 31), each using a different pattern of outputs. The rules tell you how the cells in the row above determine the next row – each triple of three cells determines the value of the cells below, and each cell is allowed to be ‘on’ or ‘off’ (much like in Conway’s Game of Life, where the cells are ‘alive’ or ‘dead’). Since there are 8 possible combinations of on/off across 3 cells, the rule is encoded by knowing whether each of the 8 combinations results in the cell below being ‘on’ or ‘off’. These 8 on/off values determine a binary number less than 32, and the rule is named after the number given by the set of on/offs it uses, as 0/1 digits.
Of the 31 possible rule-sets Wolfram determined in this way, 30 is probably the most well-known, mainly because it’s the most interesting. $30 = 00011110_2$, which means if the number given by the three cells above as binary digits is 0,6,7 or 8 then the cell below should have a 0, and if not then it should have a 1.
Some of them end up dying a death pretty quickly (rule 0 is particularly boring – whatever you start with, everything in the second row is dead, and everything after that is dead forever). Rule 30 however, gives a pleasing pattern of shapes and even if you just start with a single ‘on’ cell in the top row, propagates a pattern across the whole sheet. Christian’s found a way to incorporate the statement of Rule 30 into a single formula:
Having changed a couple of the cells in the top row from 1 to 0
This says, if the three cells above left to right are A, B and C, then if $4A + 2B + C – 3 $ (the binary number given by the numbers above, minus 3) is less than $4 \mod 7$ – so, if the number above is 0,6,7 or 8, then don’t colour the cell, and if it’s not then do colour the cell. Conditional formatting is used to make cells with a 1 in turn green, and cells with a 0 will remain white.
If you’d like to play with it, you can make a copy of it in your own Drive and edit there – we’ve left this one as view-only so you can always come back and get an undamaged version if you make a mess of things. Try starting with different combinations of 0/1 across the top, and make sure you give it a little time to calculate the rest of the sheet – it’s thinking pretty hard for a little phone!
You might have seen our Aperiodical Round-Up post, which was posted recently despite languishing in the drafts folder for six years. It wasn’t alone in there, and we’ve found a few other posts which somehow didn’t get published at the time, which we’re planning to release any day now when we get a minute. Enjoy this classic nonsense formula post from circa April 2016.
In our constant quest to make sure people aren’t abusing maths too badly, we recently came across a new campaign from a certain corporate electronics giant, who have invented a washing machine with a little door in the door. A meta-door, if you will, so you can add extra items while a wash is going on.
Me (Katie) and Paul have restarted our regular monthly puzzle sheets, which were previously hosted here on the Aperiodical, in the form of a Patreon. If you like slightly silly, slightly clever puzzles and want to support what we’re doing, you can sign up as a patron to be sent puzzles each month and access past editions.
Subscribers can expect an all-new A4 PDF of word, number and logic puzzles, delivered direct to their inbox on the 15th of each month. The standard subscription rate is £2 inc. VAT, and a higher tier (£4) is available for subscribers who want to get extra occasional bigger/stupider/more difficult puzzles (including cryptic crosswords), and access to hints and other puzzle tools.
A sample PDF of puzzles is available now on the PuzzleBomb Patreon page, and the first proper edition will be out on 15th September.