Double Maths First Thing is Colin’s weekly assortment of mathematical news. Or what time’s manacle.
Hello! My name is Colin and I am a mathematician on a mission to spread joy and delight through the medium of mathematics. It’s Wednesday morning and it’s time for Double Maths First Thing.
On magic
It’s probably a bit gauche to start with an article I wrote, but it’s certainly something that caught my eye: Rob Eastaway (all-round good egg and author of Much Ado About Numbers, available wherever good books are made available) sent me a page from the diary of an Elizabethan impresario describing a card trick. Here’s my description of how it works — with a bit of help from young Bill.
A different kind of magic goes on under the bonnet of your average computer. (Computers should definitely have bonnets. “Oooths, looks like your fan belt’s gone, that’s going to be expensive.”) When you input a number, the computer takes it in as a string of characters. How does that get turned into an Actual Number? It’s surprisingly complicated.
On beauty
You say you have found beauty In Euler’s identity It’s basic trigonometry It’s Pi Day, I’m in a huff
Even when it’s not Pi Day, I get in a huff about the framing of Euler’s identity as “the most beautiful equation”. Andrew Stacey articulates it a lot more clearly than I would, and with less swearing.
I’ll accept that dance can be beautiful (I have a cousin who’s a professional choreographer, and who has a very stern Disapproving Look, so I have to say that). Here’s a nice piece about different styles of dance notation; my only criticism is that they don’t make a joke about Scottish country dancing needing a Ceilidh table.
On stupidity and getting things wrong
Another article that’s had me nodding along and saying “YES!” is this from Math For Love: it makes the powerful point that feeling stupid is an important part of becoming smarter — and it’s an entirely different thing from being stupid.
One thing that always makes me feel stupid is how our experience of the world is pretty much limited to an incredibly narrow shell — a plane at 30,000 feet is 0.14% of an Earth radius up in the air. It turns out that GPS and route-trackers generally are just… not very good at elevation.
A couple of final things: I recently stumbled on Cyrille Rossant’s Awesome Maths List — I’m sure some of you know of resources that belong on there, and he seems receptive to pull requests.
I’ll end with something else about me: this year, I’m doing something I’ve never done before. I’m going into my kids’ school to run a lunchtime code-breaking club around the National Cipher Challenge for years 5 and 6. (The headteacher almost bit my hand off, it sounds like they’re studying Bletchley Park this term). I’ve done the challenge before, it’s just the wrangling young’uns that’s new.
In the meantime, if you have friends and/or colleagues who would enjoy Double Maths First Thing, do send them the link to sign up — they’ll be very welcome here.
That’s all for this week! If there’s something I should know about, you can find me on Mathstodon as @icecolbeveridge, or at my personal website. You can also just reply to this email if there’s something I should be aware of.
In a dimly-lit tavern on the South Bank of the Thames, Philip Henslowe — builder and owner of the Rose Theatre — is celebrating the success of Shakespeare’s latest blockbuster, Henry VI Part I, among the cutthroats, actors and other lowlife of London. He spreads thirteen playing cards on a table in a circle. “Pick a card,” he grins. “Any card.”
Henslowe, one of Elizabethan theatre’s most important figures, kept a diary. It’s mainly the accounts of the theatre and records of loans, but among the administrivia are some gems — including the following card trick:
My dogged team of researchers is looking into it, but there are very few documented card tricks from this era — and most of them are sleight-of-hand or forces. Tiago says this might be related to something written by Pacioli in 1478, and I understand there are Italian deck-stacking tricks from the first half of the 16th century. While it’s relatively unremarkable now, it seems quite sophisticated for its time.
Luckily, the trick was transcribed by W. W. Greg barely 300 years after having been scrawled out by Henslowe:
Now, I don’t know about you, but I’m not fluent in shorthand-infused streams-of-consciousness written in Early Modern English. Maths communication has evidently come a long way in the last 400 years. Here’s the best I can do as a more-or-less faithful translation:
Take 12 cards and the jack of clubs and lay them in a circle like a clock, all face down except for the jack. Put the jack at the bottom like on your watch [ed: I have never owned a watch with the jack of clubs at the bottom of it, but let’s roll with it], laid out like [the picture]. Then ask the volunteer what time they will get up and to keep it to themself.
Tell them to pick a card to count from [ed: It’s unclear to me whether the trickster or the volunteer picks the card — it doesn’t make a difference, so I’d let the volunteer do it]. Starting from this card and moving clockwise, they should count from their card up to 15 — so if they picked 7, they should count on eight cards.
Going around the circle, you count aloud clockwise while pointing at the cards, saying “15” on the first card clockwise from the jack, “16” on the second and so on up to 26. Tell the volunteer that whichever number you said when you pointed at their current card, they should count anticlockwise from their secret number up to that number.
When they flip the card they land on, it will be the number they first thought of.
I presume “a proved” is Early Middle English for “and everyone said WOW! That’s amazing.”
But it doesn’t work.
If you follow the instructions — which, like a game of Telephone that started centuries before the telephone was invented, have been written down from Henslowe’s memory, transcribed by an expert from unclear manuscript, and then translated into modern-day English by someone unqualified to do so. Hi! — you’ll find your “tada!” falls flat, because it’s not their secret number.
Let’s try it: I get up when I want, except on Wednesdays when I’m rudely awakened by the dustmen at 6am. And, rolling a 13-sided die¹ to decide where to start, I get card #3. I need to count on 9 clockwise from there (to make it up to 15), so I end up on card #12. That’s been given the number 26, so I need to count counterclockwise from my number (6) up to 26 — that is, 20 cards backwards. That takes me to 5.
¹ Yes, I do own a 13-sided die. Why do you ask?
Close, but no not-yet-introduced-to-England cigar.
It turns out that, whatever card you start from, and whichever number you pick, you’ll end up on the card immediately before your secret number. This suggests an easy fix: start your counting-aloud from 14 at card #1.
In case you want to do the trick yourself correctly, here are instructions for my version:
Tell your volunteer to think of a secret number from 1 to 12 (don’t let me control your mind!).
Tell them to pick a card (any card! don’t tell me what it is) and count clockwise from their chosen card, starting from their secret number and ending at 15. Have them tell you the card they land on.
Now tell them the numbers attached to the card: whatever “time” their card is on the clock face, give them a number 13 higher.
They must now move anticlockwise from their chosen card, starting from their secret number, ending on the number attached to the card.
Turn over the card they ended up on and say “abracadabra!”.
NOW it works. But why?
You know what else, apart from the later Shakespeare plays, telephones, and cigars, hadn’t arrived in Elizabethan London? I’ll tell you: modular arithmetic. At least, modular arithmetic as we know it — working with remainders goes back to at least Sun Zi in the third century CE, but Euler and Gauss’s formalisations of it were still 150 years away.
I don’t know what Henslowe’s mathematical background was — he was certainly competent at regular arithmetic — so I don’t know whether he understood why the trick worked, whether he came up with it himself, or anything about the history of it. All the same, I’m certain he wouldn’t have used the modulo function.
(In case you’re one of today’s lucky 10,000: modular arithmetic uses the remainder left over when you divide by a given number, like on a clock: 16:00 is the same as 4pm, and we’d say we were working “modulo 12” or “mod 12”, because we are lazy and modulo is far too long a word. The numbers 4 and 16 have the same remainder when you divide them by 12. In this problem, we’ll be working modulo 13.)
Let’s say you’ve picked secret number \(s\) and you decide to start from card #\(c\). You’re going to count on \( 15-s \) cards from there, so you end up at card #\( (c + 15 – s ) \). (We can think of card 14 as the same as card 1 and so on.)
The number I assign to it is 13 more than the card number. Modulo 13, that’s just the card number — but doing it this way ensures we don’t have to deal with negative numbers. (Negative numbers had probably reached England by this point, but I don’t imagine they were the kind of thing you’d want to have in a card trick.)
In any case, the volunteer is currently at card #\( (c +15 – s ) \) and has been given the target # \( (c +28 – s )\) to count to, starting at their secret number \( s \). That means they’re going to move \( (c +28 – 2s) \) cards back the way they came, starting at card #\( (c + 15 -s ) \). Moving backwards makes it a subtraction, so we work out \( (c + 15 – s ) – (c +28 – 2s ) \) to see that we end up on card #\( (s – 13)\).
And, because there are 13 cards, that’s the same as card #\(s\), which has the volunteer’s secret number written on it.
Boom.
One more twist, though
When I talked to young Bill about it, he asked a tremendous mathematical question: “would it work with a number other than 15?” The kid is ten years old, and already making me mutter “good GRIEF, where did that come from?” about three times a month.
The answer is… you don’t need it to be 15. In fact, the first half of the trick is mathematically irrelevant². You could ask them to spell out their secret number in a language of their choice, you could ask them to add their age to their best Parkrun time in minutes, you could ask them to spin a coin and pick the card it lands closest to. It doesn’t matter in the slightest, as long as they pick a card.
² That doesn’t mean it’s not an important part of the trick! I think it’s helpful to demonstrate how you want the final bit counted, and it misdirects the volunteer/audience into thinking there must be something clever going on.
If that’s card #\( C \), then they subtract \( (C + 13) – s \) from it — which again leaves you on card #\( (s – 13) \), which is card #\( s \).
Even knowing the maths behind it, I think this is still a pretty impressive trick. To someone frequenting a smoky Elizabethan tavern, it must have looked like, well, magic.
Thanks to Rob Eastaway for sending me the trick. His book on the maths of Shakespeare, Much Ado About Numbers, is available wherever good books etc.Thanks also to Paul O’Malley and Tiago Hirth for historical help, and to Calista Lucy and the Governors of Dulwich College for permission to reproduce the manuscript page.