Number magic: 25 maths games

Hidden digits, predictions, dice and counters: 25 games to try alone or with friends, with worked examples and explanations to reveal.

Section: Arithmetic Updated:

Articles /number-magic-25-maths-games
Number magic: 25 maths games

30 min

Write down a prediction, ask for a clue or try to guess a digit. In these games, a mathematical rule creates the surprise. Sometimes all you need is to notice what stays the same when you move, flip or rearrange things.

Illustration for the Arithmetic section
Section: Arithmetic
Three stacked dice, with the top face visible and the touching faces hidden.
This tower of dice previews one of the challenges: which faces are we counting?

Try with pen and paper or take turns with another person. As a player, read the instructions and have a go before opening the solution. If you are hosting, read the box beforehand: it tells you what to predict or how to use the clue.

Games 1–12 are adapted from the Italian collection «La magia dei numeri · 12 giochi matematici» (pp. 1–6). Games 13–25 extend the collection.

Choose a challenge

1–6. Reversed digits and predicted sums

1 · 2 · 3 · 4 · 5 · 6

1. The reversed number and the revealing digit

  1. Choose three digits in strictly decreasing order. Write the number and its reverse. If the reverse starts with zero, keep all three places.
  2. Subtract the reverse from the original number. Tell the host only the units digit; they will try to reconstruct the entire difference.
  3. For the second finale, add the difference to its reverse. Can you predict the sum?
Show solution · 1

Worked example

532 − 235 = 297. You say only “7”. The host calculates 9 − 7 = 2 for the first digit and puts 9 in the middle: 297. Finally, 297 + 792 = 1089.

Why it works

Write the number as 100a + 10b + c. The tens cancel when you subtract its reverse, leaving 99(a − c). With d = a − c, write 99d = 100(d − 1) + 90 + (10 − d). The middle digit is 9 and the outer digits add to 9. When you add the reverse, the hundreds contribute 900, the tens 180 and the units 9. The result is always 1089.

2. The hidden digit

  1. Choose a number with at least two different digits. Rearrange the same digits to make a different number, keeping each digit the same number of times.
  2. Subtract the smaller number from the larger. Hide one nonzero digit of the difference and tell the host all the others, including repetitions.
Show solution · 2

Worked example

7431 − 3174 = 4257. Hide the 5 and say 4, 2 and 7. Their sum is 13. The next strictly larger multiple of 9 is 18, so the missing digit is 18 − 13 = 5.

Why it works

A number and its digit sum leave the same remainder when divided by 9 because 10, 100, 1000 and so on all leave remainder 1. The two numbers use the same digits, so their difference is a multiple of 9 and its digit sum is too. Complete the known sum to the next strictly larger multiple of 9. If the known sum is already a multiple of 9, the hidden digit cannot be zero, so it is 9.

3. Guess the last digit from the first

  1. Choose a two-digit number with different digits and reverse them.
  2. Subtract the smaller number from the larger. Write the difference with two places (09 if you get 9) and say only the first digit. The host will try to complete it.
Show solution · 3

Worked example

83 − 38 = 45. You say “4”; the host works out 9 − 4 = 5 and replies “45”.

Why it works

The distance between 10a + b and 10b + a is 9 times the distance between a and b. The only differences are 09, 18, 27, 36, 45, 54, 63, 72 and 81. In each, the two digits add to 9.

4. The number that returns

  1. Choose a three-digit number. Write it twice in a row, without a separator.
  2. Divide by 7, divide the quotient by 11, then divide the new quotient by 13. Check the final result and whether any division leaves a remainder.
Show solution · 4

Worked example

532 becomes 532532. Then 532532 ÷ 7 = 76076, 76076 ÷ 11 = 6916 and 6916 ÷ 13 = 532.

Why it works

Writing a number n twice means shifting one copy three places and adding the other: 1000n + n = 1001n. Since 1001 = 7 × 11 × 13, all three divisions are exact and cancel the factor you introduced.

5. The sum in the envelope

  1. Write a three-digit number. The host secretly predicts the sum and seals the prediction in an envelope.
  2. Write another three-digit number; the host adds one of their own. Repeat once: one number from you, one from the host.
  3. Add all five numbers and open the envelope. How could the host know the sum in advance?
Show solution · 5

Worked example

The first number is 532. The envelope holds 2530. The host answers 371 with 628, and 846 with 153. The sum 532 + 371 + 628 + 846 + 153 is 2530.

Why it works

Reply to each digit with the digit that takes it to 9: the pair of numbers adds to 999. Even 001 works as a reply to 998. Two pairs add 1998, whatever the choices. Predict the first number plus 1998; mentally, subtract 2 and add 2000.

6. Four digits, one finale

  1. Choose four digits, at least two of them different. Arrange them largest to smallest, then smallest to largest.
  2. Subtract the second number from the first. Repeat with the resulting digits, always keeping four places, including leading zeros. Will you reach a number that repeats?
Show solution · 6

Worked example

5321 − 1235 = 4086; 8640 − 0468 = 8172; 8721 − 1278 = 6174. From there, 7641 − 1467 = 6174.

Why it works

With a ≥ b ≥ c ≥ d, the difference is 999(a − d) + 90(b − c). So it suffices to track the two gaps x = a − d and y = b − c, with 1 ≤ x ≤ 9 and 0 ≤ y ≤ x. There are 2 + 3 + … + 10 = 54 pairs. For each, calculate 999x + 90y, reorder the four digits and update the gaps. This finite check shows that 6174 is reached within seven subtractions. If all the starting digits are the same, the first result is 0000 instead; that case is excluded.

Checking all 54 pairs: maximum subtractions for each x
Gap xSubtractions (max.)
15
26
36
47
57
67
76
87
97

A route that takes seven subtractions: 4100 → 4086 → 8172 → 7443 → 3996 → 6264 → 4176 → 6174.

7–12. Repeating digits and secret numbers

7 · 8 · 9 · 10 · 11 · 12

7. Three digits, one finale

  1. Choose three digits, at least two of them different. Write them in decreasing and increasing order.
  2. Subtract the smaller number from the larger and repeat, always using three places. Is the finale the same as in the four-digit game?
Show solution · 7

Worked example

532 − 235 = 297; 972 − 279 = 693; 963 − 369 = 594; 954 − 459 = 495. Repeating 954 − 459 still gives 495.

Why it works

Each subtraction gives 99 times the gap between the largest and smallest digit. To see what happens next, find the new gap in the multiple of 99 just obtained. The gaps follow 1 → 9 → 8 → 7 → 6 → 5; also 2 → 8, 3 → 7 and 4 → 6. A gap of 5 gives 495, which still has a gap of 5.

8. Three digits in two multiplications

  1. Choose a digit from 1 to 9. Multiply by 3, then multiply the result by 37.
  2. Before the second calculation, try to predict how the final number will look.
Show solution · 8

Worked example

With 7, you get 7 × 3 = 21 and 21 × 37 = 777. Your chosen digit appears three times.

Why it works

3 × 37 = 111 = 100 + 10 + 1. Multiplying a digit c by 111 puts it in the hundreds, tens and units. There is no carrying because c is at most 9.

9. The multiplier without an 8

  1. Think of a digit from 1 to 9. Multiply it by 9 and say only the product to the host.
  2. Multiply that product by 12345679: make sure you have skipped the 8. The host can predict every digit of the result.
Show solution · 9

Worked example

Choose 6 and say “54”. Then 12345679 × 54 = 666666666, nine consecutive sixes.

Why it works

The key is 12345679 × 9 = 111111111. Since the reported number is 9 times the chosen digit, the multiplication puts that same digit in all nine places.

10. The secret number disappears

  1. Think of an integer. Double it, add 14, divide by 2 and subtract your original number.
  2. Before you start, the host writes down a prediction. Compare it with your result.
Show solution · 10

Worked example

Starting with 36, you get 72, then 86, then 43. Finally, 43 − 36 = 7. The prediction is 7.

Why it works

Call the original number n. Before subtracting, you have (2n + 14) ÷ 2 = n + 7. Subtracting n leaves 7. For a different finale, add twice the desired result: to get 12, add 24.

11. Two digits from one clue

  1. Think of a two-digit number with both digits nonzero.
  2. Double the first digit, add 5, multiply by 5 and add the second digit. Tell the host the total; they will try to name the original number.
Show solution · 11

Worked example

Think of 73. Calculate 7 × 2 = 14, 14 + 5 = 19, 19 × 5 = 95, then 95 + 3 = 98. The host works out 98 − 25 = 73.

Why it works

If a is the first digit and b the second, the total is 5(2a + 5) + b = 10a + b + 25. Doubling and then multiplying by 5 puts a in the tens place. Subtract 25 to recover 10a + b.

12. The four-digit mirror

  1. Choose a two-digit number; a final zero is allowed. Write the number followed by its reverse, keeping two places in each half.
  2. Divide by 11. Is the division always exact or just a coincidence?
Show solution · 12

Worked example

73 gives 7337, and 7337 ÷ 11 = 667. The trick works with 20 too: write 20 followed by 02 to make 2002, and 2002 ÷ 11 = 182.

Why it works

The rule for 11 says a number is divisible by 11 when the difference between the two sums of alternating digits is a multiple of 11. In abba both sums are a + b, so the difference is 0.

13–18. Guess from a few clues

13 · 14 · 15 · 16 · 17 · 18

13. Two digits, a sum and a difference

  1. Choose digits a and b, with a nonzero. Put a in the tens and b in the units.
  2. Tell the host only the sum s = a + b and the signed difference d = a − b, which can be negative. Can they recover the number?
Show solution · 13

Worked example

For 37 say “sum 10, difference −4”. The host calculates (10 − 4) ÷ 2 = 3 and (10 + 4) ÷ 2 = 7: the number is 37.

Why it works

Adding s and d cancels b and leaves 2a. Subtracting d from s cancels a and leaves 2b. So a = (s + d) ÷ 2 and b = (s − d) ÷ 2. The sign matters: “distance 4” alone would not distinguish 37 from 73.

14. Guess it from two remainders

  1. Think of an integer from 1 to 15. Divide it by 3 and by 5, without reporting the quotients.
  2. Say only the two remainders, first for division by 3, then for division by 5.
Show solution · 14

Worked example

You say “remainder 2 with 3, remainder 1 with 5”. The candidates with the second remainder are 1, 6 and 11. Only 11 leaves remainder 2 with 3: 11 = 3 × 3 + 2.

Why it works

Start with the three numbers between 1 and 15 that have the right remainder modulo 5. Check which also has the right remainder modulo 3. Two cannot work: their difference would be a multiple of both 3 and 5, hence of 15. Distinct numbers in the interval are at most 14 apart.

15. Nine counters, two weighings

  1. Prepare nine counters numbered 1 to 9. Exactly one is heavier; all others weigh the same. Find the heavy one in at most two weighings on a balance scale, with no reference weights.
  2. If you have no scale, play with someone who secretly chooses the heavy counter. For each simulated weighing they answer “left”, “right” or “balanced”.
Show solution · 15

Worked example

Weigh 1, 2, 3 against 4, 5, 6. The pans balance, leaving 7, 8, 9. Weigh 7 against 8. The pan with 8 goes down, so 8 is the heavy counter.

Why it works

Split the counters into three groups of three. Compare two groups. If the scale tips, the counter is in the heavier group; if it balances, it is in the third group. Of the three candidates, compare two. If the scale tips, pick the heavier; if it balances, pick the one not weighed. One weighing has only three outcomes, so it cannot distinguish nine possibilities on its own.

16. Two coins in two hands

  1. Hide a coin worth 1 in one hand and a coin worth 2 in the other. Do not say which is where.
  2. Multiply the value in your left hand by 2 and the value in your right hand by 3. Add the results and say only “even” or “odd”.
Show solution · 16

Worked example

The left hand holds 2 and the right holds 1: 2 × 2 + 3 × 1 = 7. You say “odd” and the host guesses that the 1 coin is on the right.

Why it works

The left-hand contribution is always even. Multiplying by 3 does not change the parity of the right-hand contribution. An odd sum puts 1 on the right; an even sum puts 2 there. The other coin follows by elimination.

17. The tower of three dice

  1. Stack three standard dice whose opposite faces sum to 7. The host sees only the top face of the tower.
  2. Add the five hidden horizontal faces: the four faces where dice touch and the one resting on the table. The host tries to predict the total.
Show solution · 17

Worked example

If the top is 4, the hidden total is 17. The three top-bottom pairs add to 21, of which 4 is visible.

Why it works

On each die the top and bottom faces contribute 7, whatever its orientation. All six horizontal faces add to 3 × 7 = 21. Subtract the top visible face to count only the hidden ones.

18. The two erased numbers

  1. Write the integers from 1 to 10. Cross out two different numbers without showing the host.
  2. Add the remaining numbers and add their squares. Report both totals. The host must recover the erased pair.
Show solution · 18

Worked example

You erased 3 and 8. The remaining sum is 44 and the remaining squares add to 312. The host calculates 55 − 44 = 11 and 385 − 312 = 73.

Why it works

Before erasing, the sum is 55 and the sum of squares is 385. For the missing x and y, x + y = 11 and x² + y² = 73. From (x + y)² = x² + y² + 2xy, obtain xy = (121 − 73) ÷ 2 = 24. Among positive pairs with product 24, only 3 and 8 add to 11. In general, the sum and product determine the pair up to order.

19–22. Choices, moves and strategies

19 · 20 · 21 · 22

19. Three choices, one sum

  1. In the grid below, choose three numbers, one in each row and one in each column. Once you use a column, you cannot use it again.
  2. Add your three numbers. The host writes a prediction before you choose.
Selection grid
257
111416
222527
Show solution · 19

Worked example

Take 5 from the first row, 16 from the second and 22 from the third. The sum is 43. The main diagonal gives 2 + 14 + 27 = 43 too.

Why it works

Every cell is a row contribution (0, 9, 20) plus a column contribution (2, 5, 7). Choosing one cell per row and column uses all six contributions once: 0 + 9 + 20 + 2 + 5 + 7 = 43. Change the contributions to invent your own grids.

20. Which colour will you reach?

  1. Use a checkerboard or the grid below. Start on the light square in the centre. Move one square at a time horizontally or vertically, staying on the grid. You may retrace your steps.
  2. Keep your route secret and report only the total number of steps. The host must say whether your square is light or dark.
Board: □ light, ■ dark. Start in the centre.
□■□■□
■□■□■
□■□ Start■□
■□■□■
□■□■□
Show solution · 20

Worked example

After seven steps you finish on a dark square, whatever route you take. After eight steps you finish on a light square.

Why it works

Every step changes colour. After two steps you return to the original colour, not necessarily the same square. An even number of steps leaves you on light and an odd number on dark. A diagonal step would not change colour and is not allowed.

21. Seven coins, one left alone

  1. Lay out seven coins, heads or tails as you like. Tell the host how many show heads.
  2. Secretly choose one coin to leave alone and turn over the other six. Report the new number of heads. The host must say how the untouched coin was facing.
Show solution · 21

Worked example

You say “4 heads” before and “4 heads” after. The host adds 4 + 4 = 8: the untouched coin was heads up.

Why it works

Each flipped coin contributes one head across the two counts, either before or after. The six flipped coins contribute 6. The untouched coin contributes 2 if heads up and 0 if tails up. A total of 8 means heads; 6 means tails.

22. The two mirror piles

  1. Make two equal piles, each with at least one counter. On each turn a player removes any positive number of counters, but from only one pile.
  2. Whoever takes the last counter wins. Can you always win if you play second?
Show solution · 22

Worked example

Start with 8 and 8. The opponent takes 3 from the first pile, leaving 5 and 8. Take 3 from the second to make 5 and 5. If the opponent now empties one pile, empty the other and take the last counter.

Why it works

After each opponent move, remove the same number from the other pile. This reply is possible because the piles were equal before the opponent’s turn. They are equal again after each of your turns. When both are empty, you have just played.

23–25. Mental squares and powers

23 · 24 · 25

23. A square calculated mentally

  1. Ask for a two-digit number ending in 5. Try to say its square in your head without doing long multiplication.
Show solution · 23

Worked example

For 85, multiply 8 × 9 = 72 and append 25 to make 7225. For 15, the product is 1 × 2 = 2, giving 225.

Why it works

If a is the tens digit, the number is 10a + 5. Its square is 100a² + 100a + 25 = 100a(a + 1) + 25. Multiply a by the next integer, then put 25 in the last two places.

24. The square hidden between neighbours

  1. Secretly choose three consecutive positive integers. Multiply the smallest by the largest and add 1.
  2. Tell the host only the result. They must recover the middle number.
Show solution · 24

Worked example

Choose 12, 13 and 14. Report 12 × 14 + 1 = 169. The host recognises 169 = 13² and announces 13.

Why it works

If n is the middle number, its neighbours are n − 1 and n + 1. Their product is (n − 1)(n + 1) = n² − 1. Adding 1 gives n². Because n is positive, the square root identifies it uniquely.

25. The last digit of a large power

  1. Choose an integer exponent from 1 to 40 and tell the host. They try to predict the last digit of 7 to that power without calculating the whole number.
  2. Check the prediction by keeping only the units digit at each multiplication.
Show solution · 25

Worked example

Choose 18. Dividing 18 by 4 leaves remainder 2. The host announces that 7¹⁸ ends in 9.

Why it works

When multiplying by 7, only the previous units digit matters: 7 → 9 → 3 → 1 → 7. The units digits of 49, 63, 21 and 7 are 9, 3, 1 and 7. The cycle is four steps long. Exponents leaving remainder 1, 2, 3, 0 on division by 4 give units digits 7, 9, 3, 1 respectively.

Invent a trick of your own

Choose a mechanism from the collection and change a number or a rule. In the envelope game, for example, you could add one more pair. How much would the prediction need to increase? Try the edge cases before performing your new game. Explaining why it works is the best part.