Tag Archives: maths

Solution to In Their Prime

Did you have a go at my In their Prime puzzle in Puzzlebomb yet? How about the other puzzles?

If your answer to these questions is “No”, then please turn to  page 13091204281 of the internet to have a go at the July Puzzlebomb.

If the answer is “Yes”, you can check the July solutions, including the numeric solution to In their Prime. But how did you find the solution? You may have successfully used trial and error, but that’s not usually very enlightening; you may have programmed a computer to do the dirty work for you (the puzzle was hand designed, but I did check the answer was unique with a bit of code). As a responsible puzzle-setter, I came up with the following possible proof of the solution. I’d be interested to hear from anyone who had a different method.

Continue reading

Leave a comment

Filed under Puzzle

Getting into Norms: Part II

In Part I of Getting into Norms, I talked about three different ways of measuring distance (I also considered  the accuracy of a series of guesses to be a ‘distance’). All three of these were norms, but there are many ways of measuring distances that aren’t norms.

So to study norms, mathematicians must define them really rigourously, using something known as axioms. These are the basic assumptions and definitions of mathematics. Once we’ve made these assumptions we can prove what has to follow from them.

We can think of norms as a measure of distance from the origin. If you think about it in this way, the following seem quite obvious, and appeal well to our instincts. A norm satisfies the following three axioms.

  1. Distances are always positive!
  2. If the distance from your location to the origin is zero, then you must be at the origin. Or alternatively, if two points are separate then the distance between them isn’t zero. Conversely, the distance from any point to itself is zero.
  3. Taking a detour is always longer than travelling in a straight line. This is the triangle inequality: the sum of the length of any two sides of a triangle is longer than the length of the third.
  4. Now we come to axiom four. This one is tough to describe in words. Here goes. If you walk a pace forwards and then take another in the same direction, then you will have walked twice the distance of the original pace. Also it doesn’t matter whether you take a pace forwards or backwards: they will give you the same distance.

When mathematicians want to be precise, we use symbols. The distance between points x and y is written as \|x-y\|. The distance from x to the origin is \|x-\underline{0}\|=\|x\|. We say that \| \cdot \| is a norm if whenever we pick vectors x and y, and a number \lambda, then the following axioms hold:

  1. \|x\| \geq 0.
  2. If \|x\| = 0 then x = \underline{0}. And visa-versa.
  3. \|x+y\| \leq \|x\|+\|y\|.
  4. \|\lambda \cdot x\| = |\lambda| \|x\|.

These four conditions should match with our verbal descriptions above. You may recognise them from this blog’s exquisitely hand-drawn logo.

They were pretty trivial intuitions, once we thought of \|x\| as being the distance of a point x from the origin (the origin above \underline{0} is underlined to distinguish it from the normal 0, though we don’t choose a different notation because the origin behaves a lot like the number zero). Continue reading

1 Comment

Filed under Accessible, Norms

Dice and Dissection: a puzzle

This is a puzzle, first appearing in Martin Gardner’s column in 1978, with a new way of thinking about the solution. Before the puzzle, though, a cultural diversion.

Rolling it in

In the modern classic board game The Settlers of Catan, it’s very important to know, when you roll a pair of dice, the frequency with which each number occurs. Resources are given players only if they have a settlement adjacent to those tiles whose number is rolled. If you build your settlements next to a tile labelled 2 or 12, it will, on average, only be productive once every 36 rolls. Tiles labelled 6 or 8 will produce resources five times in 36 rolls. It’s so fundamental to the gameplay that the relative frequencies are visualised as dots on the pieces: sixes and eights are so important, they are marked in red (rolling a seven does something different).


The well-known puzzle is:

By relabelling the faces of two dice, can you design a new, unusual pair of six-sided dice that achieves rolls with the same frequencies as a pair of normal dice? All the faces must have a positive number of spots.

If I didn’t require you to use a positive number of spots on each face: then dice labelled {0, 1, 2, 3, 4, 5} and {2, 3, 4, 5, 6, 7} would work as a pair. If you allow negative numbers, there’s infinitely many solutions!

Continue reading


Filed under Accessible, Puzzle

London MathsJam February Recap

Here’s a rough summary of February’s London MathsJam. There seemed to be some loose themes, but sadly no pancakes (it was on Shrove Tuesday). Peter Rowlett briefly visited, but left before most people turned up and the action started (the official MathsJam start time of 7pm is also the start of off-peak travel on the tube, so people tend to arrive later). We had about ten people in all, down from thirty-odd at January’s, when we took over the whole upstairs of the pub. There’s been a good mix of people in various walks of life, though most (but not all) had (or are doing) maths or computer science degrees: but everyone likes puzzles and games. This isn’t a full round-up: people sometimes split off into smaller groups, so it’s hard to keep track of everything, and there’s lots of chit-chat along the way that I haven’t documented.

♥ Someone autobiographically wondered what the chances of having two fire alarms in a day is.

♣ People were concerned when I brought out this noughts and crosses tiling puzzle (Think Tac Toe from this puzzle series), worrying at first it might be a physical copy of game itself:

The only solution anyone found wasn’t one of the four given on the back of the box:

Though it seems an unlikely to occur in a real game, it is a valid game position, so the solution is valid.

♣ Because noughts and crosses was universally unloved, we suggested replacements: Sim was explained, and 3D tic-tac-toe was played (on a 4×4×4 grid).

◊ Can you fit five rectangles together to form a square, where the rectangle side-lengths are each of the whole numbers 1 to 10? How many ways are there?

♦ Can you fit all twelve pentominoes, and an additional 2×2 square into: an 8×8 square; or into a 4×16 rectangle. We didn’t have time to try this one, or have any pentominoes handy.

Continue reading

1 Comment

Filed under Puzzle

Percentages for sceptics: part III

I wanted to do some self-criticism of my previous two posts in this series:

  1. You can calculate the minimum of responses from a single percentage by hand (no need for computer programmes or look-up tables).
  2. I’ve made a very rough model to estimate how many people the program typically returns when fed six percentages (as I did several times here).
In between, I’ve collected some links to demonstrate how great continued fractions can be.

Handy calculations

There are many ways of writing real numbers (fractions and irrationals) apart from in decimal notation. You can represent them in binary, for instance \pi = 11.001001000011\ldots, or in other bases. These have their uses: there is a formula to calculate the nth binary digit of \pi without calculating all the preceding digits.

For our purposes we will use continued fractions. People write \pi as [3; 7, 15, 1, 292, 1, 1, 1, 2, 1, ...]: this notation means that 3 is a good first approximation to \pi, the well-known 3+\frac{1}{7}=\frac{22}{7} is the closest you can be with any fraction \frac{p}{q} with q \leq 7. Then 3+\frac{1}{ 7 + \frac{1}{15}}=\frac{333}{106} is the best with q\leq 106, and the fourth term 


is a very good approximation, as the next number in the square brackets, 292, is very large (I’ll motivate this observation at the end of the section). The golden ratio is sometimes called the ‘most irrational’ number because it has a continued fraction expansion with all ones, so the sequence converges slowly.

Continue reading


Filed under Accessible, Applications

Percentages for Sceptics: Part II

In the first percentages for sceptics post, I showed that, if you are given a percentage, you can work out the minimum number of people to whom you would have to pose a yes-or-no question to be able to get that percentage. Ideally, I hope to add to your scepticism of percentages that are unaccompanied by the number of respondents. It’s easy to be suspicious of nice, round percentages like 10%, 20%, 50% etc., but in fact all but 14 of the whole number percentages can come from polls with 20 or fewer people.

The aim of this post is to take this approach to the next level. After a quick quiz, I’ll go through two examples, the second where I reverse-engineer a pie chart is the cleaner of the two. Don’t get hung up on any of the particulars of the numbers, especially in the dating example, what they are isn’t important, it’s more the fact that we can get them: most of the post functions as a demonstration of the principle.

Warm-up puzzle: A special case

In some survey 22% of people answered “yes”, 79% answered “no” (both to zero decimal places). Each person interviewed chose exactly one of the two options. What is the least number of people that could have been interviewed to get this result? Answer at the end of this post. It’s an on-topic mathematical question, not involving any silly tricks.

Dating data

Let’s take a horrible press release reported as news by the Daily Mail, (commented on by the Neurobonkers blog) under the succinct headline: The dating rule book is being rewritten with one in four single girls dating three men at a time and a third happy to propose.

Given the trivial nature of the survey, alarm bells should be ringing; and the fact that it is “according to the study by restaurant chain T.G.I. Friday’s” means, like their food, this ‘research’ might best be taken with a pinch of salt.

Continue reading


Filed under Applications, Maths in Life, Puzzle

Kill the Dragon: a solution

This is my solution to the “Kill the Dragon!” puzzle. Improvements, in both the bounds and formality of the argument, are definitely possible.

Continue reading


Filed under Puzzle