Blog
2023-09-02
This week, I've been at Talking Maths in Public (TMiP) in Newcastle. TMiP is a conference for anyone involved
in—or interested in getting involved in—any sort of maths outreach, enrichment, or public engagement activity. It was really good, and I highly recommend coming to TMiP 2025.
The Saturday morning at TMiP was filled with a choice of activities, including a puzzle hunt written by me: the Tyne trial.
At the start/end point of the Tyne trial, there was a locked box with a combination lock. In order to work out the combination for the lock, you needed to find some clues hidden around
Newcastle and solve a few puzzles.
Every team taking part was given a copy of these instructions.
Some people attended TMiP virtually, so I also made a version of the Tyne trial that included links to Google Street View and photos from which the necessary information could be obtained.
You can have a go at this at mscroggs.co.uk/tyne-trial/remote. For anyone who wants to try the puzzles without searching through virtual Newcastle,
the numbers that you needed to find are:
- Clue #1: \(a\) is 9.
- Clue #2: \(b\) is 5.
- Clue #3: \(c\) is 1838.
- Clue #4: \(d\) is 1931.
- Clue #5: \(e\) is 1619.
- Clue #6: \(f\) is 48.
- Clue #7: \(g\) is 1000.
The solutions to the puzzles and the final puzzle are below. If you want to try the puzzles for yourself, do that now before reading on.
Puzzle for clue #2: Palindromes
We are going to start with a number then repeat the following process: if the number you have is a palindrome, stop;
otherwise add the number to itself backwards.
For example, if we start with 219, then we do: $$219\xrightarrow{+912}1131\xrightarrow{+1311}2442.$$
If you start with the number \(10b+9\) (ie 59), what palindrome do you get?
(If you start with 196, it is unknown whether you will ever get a palindrome.)
Puzzle for clue #3: Mostly ones
There are 12 three-digit numbers whose digits are 1, 2, 3, 4, or 5 with exactly two digits that are ones.
How many \(c\)-digit (ie 1838-digit) numbers are there whose digits are 1, 2, 3, 4, or 5 with exactly \(c-1\) digits (ie 1837) that are ones?
Puzzle for clue #4: is it an integer?
The largest value of \(n\) such that \((n!-2)/(n-2)\) is an integer is 4. What is the largest value of \(n\) such that
\((n!-d)/(n-d)\) (ie \((n!-1931)/(n-1931)\)) is an integer?
Puzzle for clue #5: How many steps?
We are going to start with a number then repeat the following process:
if we've reached 0, stop; otherwise subtract the smallest prime factor of the current number.
For example, if we start with 9, then we do: $$9\xrightarrow{-3}6\xrightarrow{-2}4\xrightarrow{-2}2\xrightarrow{-2}0.$$ It took 4 steps to get to 0.
What is the smallest starting number such that this process will take \(e\) (ie 1619) steps?
Puzzle for clue #6: Four-digit number
I thought of a four digit number. I removed a
digit to make a three digit number, then added my two numbers together.
The result is \(200f+127\) (ie 9727). What was my original number?
Puzzle for clue #7: Dice
If you roll two six-sided fair dice, the most likely total is 7. What is the most likely total if you rolled \(1470+g\) (ie 2470) dice?
The final puzzle
The final puzzle involves using the answers to the puzzles to find the four digit code that
opens the box (and the physical locked box that was in the library on
Saturday. To give hints to this code, each clue was given a "score".
The score of a number is the number of values of \(i\) such that the \(i\)th digit
of the code is a factor of the \(i\)th digit of the number.
For example, if the code was 1234, then the score of the number 3654 would be 3 (because
1 is a factor of 3; 2 is a factor of 6; and 4 is a factor of 4).
The seven clues to the final code are:
- Clue #1: 6561 scores 2 points.
- Clue #2: 1111 scores 0 points.
- Clue #3: 7352 scores 1 points.
- Clue #4: 3562 scores 1 points.
- Clue #5: 3238 scores 1 points.
- Clue #6: 8843 scores 1 points.
- Clue #7: 8645 scores 3 points.
(Click on one of these icons to react to this blog post)
You might also enjoy...
Comments
Comments in green were written by me. Comments in blue were not written by me.
Add a Comment
Image: Chalkdust Magazine
Chalkdust issue 17
2023-05-22
For the past couple of months, I've once again been spending an awful lot of my spare time working
on Chalkdust. Today you can see the result of all this hard work: Chalkdust issue 17.
I recommend checking out the entire magazine: you can read it online
or order a physical copy.
My most popular contribution to the magazine is probably the crossnumber.
I enjoyed writing this one; hope you enjoy solving it.
I also spent some time making this for the back page of the magazine. It's probably the most
fun I've had making something stupid for Chalkdust for ages.
Chalkdust Magazine
(Click on one of these icons to react to this blog post)
You might also enjoy...
Comments
Comments in green were written by me. Comments in blue were not written by me.
Add a Comment
2022-12-04
In November, I spent some time (with help from TD) designing this year's Chalkdust puzzle Christmas card.
The card looks boring at first glance, but contains 11 puzzles. By colouring in the answers to the puzzles on the front of the card in black (each answer appears twice), then colouring remaining squares
containing 0s red, and regions containing a star brown,
you will reveal a Christmas themed picture.
If you want to try the card yourself, you can download this printable A4 pdf. Alternatively, you can find the puzzles below and type the answers in the boxes. The answers will automatically be found and coloured in black, and appropriate squares and regions will be coloured red and brown...
The puzzles | ||
| 1. | What is the only prime number that is both two more than a prime number and two less than a prime number? | Answer |
| 2. | Holly adds up the first 7 odd numbers. What total does she get? | Answer |
| 3. | Holly next adds up the first \(n\) odd numbers to get a total of 1089. What is \(n\)? | Answer |
| 4. | Ivy starts with 0 then adds or subtracts some multiples of 4 or 7. What is the smallest positive integer that she could have ended with? | Answer |
| 5. | Ivy again starts with 0, but this time she adds or subtracts some multiples of 240 or 400. What is the smallest positive integer that she could have ended with? | Answer |
| 6. | How many 4-digit integers are there whose digits are all non-zero and whose digits add up to 7? | Answer |
| 7. | How many positive integers are there whose digits are all non-zero and whose digits add up to 7? | Answer |
| 8. | Eve wrote down a four-digit number. Eve then removed one of the digits of her number to make a three-digit number. The sum of her two numbers is 3119. What was her four-digit number? | Answer |
| 9. | Eve wrote down a five-digit number. Eve then removed one of the digits of her number to make a four-digit number. The sum of her two numbers is 96158. What is the largest number that her five-digit number could have been? | Answer |
| 10. | Noel drew 12 points on the circumference of a circle, then drew a straight line connecting every pair of points. How many lines did he draw? | Answer |
| 11. | Noel drew some points on the circumference of a circle, then drew a straight line connecting every pair of points. He drew 2926 lines. How many points did he draw? | Answer |
(Click on one of these icons to react to this blog post)
You might also enjoy...
Comments
Comments in green were written by me. Comments in blue were not written by me.
Great fun thanks. At first they seem impossible but then a way through appears! How do I get the answers / check if I’m right?
Graeme Johnston
Add a Comment
2022-02-26
Surprisingly often, people ask me how they can build their own copy of MENACE. If you've been thinking that you'd love your own matchbox-powered machine learning computer but haven't got round to asking me about it yet, then this blog post is just what you're looking for.
Matchboxes
Before building MENACE, you'll need to get hold of 304 matchboxes (plus a few spares in case one gets lost or falls apart). I used these craft matchboxes: they don't have the best build quality, but they're good enough.
304 positions
The positions you need to glue onto the front of the matchboxes can be downloaded from this GitHub repository (first move boxes, third move boxes, fifth move boxes, seventh move boxes). These are sized to fit on matchboxes that have 15mm by 35mm fronts.
I printed each pdf on differently coloured paper to make it easier to sort the matchboxes after getting them out of their box.
If you get differently sized matchboxes, the code used the generate the PDFs is in the same GitHub repository (you'll need to modify these lines). Alternatively, feel free to drop me an email and I will happily adjust the sizes for you and send you the updated PDFs.
Glue
I used PVA glue to stick the positions onto the matchboxes. The printable PDFs have extra tabs of paper above and below the postions that can be glued in to the bottom and inside of the matchbox tray to hold it more securely.
Gluing the positions onto the matchboxes was the most time consuming part of building my copy of MENACE, largely due to having to wait for the glue to dry on a set of matchboxes before I had space for the next batch of them to dry.
Beads
Once you've glued pictures of noughts and crosses positions to 304 matchboxes, you'll need to put coloured beads into each matchbox. For this, I used a large tub of Hama beads (that tub contained orders of magnitude more beads than I needed).
A nice side effect of using Hama beads is that they're designed to be ironed together so making a key to show which colour corresponds to each position is very easy.
I typically start the boxes off with 8 beads of each colour in the first move box, 4 of each colour in the third move boxes, 2 of each in the fifth move boxes, and one of each in the seventh move boxes.
Once you've filled all your matchboxes with the correct number of beads, you're ready to play yout first game against MENACE. I'd love to hear how you get on.
And once you're bored of playing noughts and crosses against your matchboxes, why not build a machine that learns to play Hexapawn, Connect 4, Chess or Go? Or one that plays Nim?
Edit: Added link to the printable pdfs of the positions needed for Hexapawn, made by Dan Whitman.
(Click on one of these icons to react to this blog post)
You might also enjoy...
Comments
Comments in green were written by me. Comments in blue were not written by me.
Interesting.
Could try a same kind of thing using playing card deck(s)? A(=1)-2-3 4-5-6 7-8-9 maybe 3 decks with different colours on their backs.
Could try a same kind of thing using playing card deck(s)? A(=1)-2-3 4-5-6 7-8-9 maybe 3 decks with different colours on their backs.
Willem
I also read the Martin Gardner article way back when and had two matchbox machines (actually with envelopes instead of matchboxes) play Nim against each other. I don't remember all the details now, except that it got to the point where one would make the first move and the other would immediately resign.
Tim Lewis
I made a matchbox machine that learns to play 3x3 Nim almost 50 years ago. I still have it. (Based on Martin Gardner's article)
Tony
Add a Comment
2021-12-04
In November, I spent some time designing this year's Chalkdust puzzle Christmas card.
The card looks boring at first glance, but contains 14 puzzles. By writing the answers to the puzzles in the triangles on the front of the card, then colouring triangles containing 1s, 2s, 5s or 6s in the right colour, you will reveal a Christmas themed picture.
If you want to try the card yourself, you can download this printable A4 pdf. Alternatively, you can find the puzzles below and type the answers in the boxes. The answers will automatically be written in the triangles, and the triangles will be coloured...
The puzzles | ||
| 1. | What is the sum of all the odd integers between 0 and 30? | Answer |
| 2. | What is the sum of all the odd integers between 0 and 5668? | Answer |
| 3. | What is the smallest integer with a digital sum of 28 and a digital product of 10000? | Answer |
| 4. | What is the smallest integer with a digital sum of 41 and a digital product of 432000? | Answer |
| 5. | What is the area of the largest area dodecagon that will fit inside a circle with area \(111185\pi\)? | Answer |
| 6. | What is the area of the largest area heptagon that will fit inside a semicircle with area \(115185\pi\)? | Answer |
| 7. | How many terms are there in the (simplified) expansion of \((x+y+z)^{2}\)? | Answer |
| 8. | How many terms are there in the (simplified) expansion of \((x+y+z)^{41172}\)? | Answer |
| 9. | What is the largest integer that cannot be written as \(4a+5b\) for non-negative integers \(a\) and \(b\)? | Answer |
| 10. | What is the largest integer that cannot be written as \(83409a+66608b\) for non-negative integers \(a\) and \(b\)? | Answer |
| 11. | How many positive integers are there below 100 whose digits are all non-zero and different? | Answer |
| 12. | How many positive integers are there whose digits are all non-zero and different? | Answer |
| 13. | What is the only integer for which taking the geometric mean of all its factors (including 1 and the number itself) gives 2? | Answer |
| 14. | What is the only integer for which taking the geometric mean of all its factors (including 1 and the number itself) gives 25? | Answer |
(Click on one of these icons to react to this blog post)
You might also enjoy...
Comments
Comments in green were written by me. Comments in blue were not written by me.
@HJ: the smallest one does have 6, and Q4 is correct too. I bought the cards and had good fun solving it myself. I’m glad to find this here though to check my answers as when I did the shading it looked like the picture wasn’t quite right. Thanks for the cards Matthew, I look forward to next year’s - no pressure!
Alec
The only one I'm stuck on is #6. I thought I was doing it right but I'm getting a non-integer answer. I'm assuming the heptagon in question is aligned so one of its sides sits on the diameter of the semicircle, and the opposite vertex sits on the curved edge of the semicircle. Is this wrong?
Seth C
The version of the card on this page doesn't check if your answers are correct, so it will colour in any number you enter as long as it has the right number of digits.
Matthew
Wonky solution for #9? On a blank start page, answering "16" gives you red and white puzzle completions, yet we _know_ that 16 is an incorrect answer. Strange?
Attika
Add a Comment














