• Foundation
  • About 13 min
  • 5 practice questions

Think of a number: explaining and inventing tricks

Use a letter for the secret number to explain why 'think of a number' tricks work, decode a date from a final answer, and design tricks of your own.

If something looks wrong, please tell us.

By the end of this lesson you can

  • Follow the steps of a number trick with an expression in x and see why the result is fixed.
  • Work backwards from a final answer to find the secret number or date.
  • Change or invent the steps of a trick to give the answer you want.

Number tricks look like mind-reading: 'Think of a number, do these steps … your answer is 5!' The magic is really algebra. If we call the secret number x and write what happens to it at every step, we can see exactly why the trick works, and we can invent new ones.

Worked example 1: a trick that always gives 5

Steps: think of a number, add 7, double it, subtract 4, halve it, then subtract the number you first thought of.

Try 10: 17, 34, 30, 15, and 15 − 10 = 5. Try 3: 10, 20, 16, 8, and 8 − 3 = 5. Why always 5?

Following the trick with algebra
StepExpression
Think of a numberx
Add 7x + 7
Double it2x + 14
Subtract 42x + 10
Halve itx + 5
Subtract the original numberx + 5 − x = 5

The x disappears in the last step, so the answer does not depend on the starting number. To make a trick end in a different number, change the steps: for example, 'double it, add 2k, halve it, subtract the original number' turns x into 2x, 2x + 2k, x + k and finally k. With 2k = 6 the answer is always 3.

Explaining any number trick

  1. Call the secret number x
  2. Write an expression after every step Simplify as you go.
  3. Look at the final expression If x cancels, the answer is fixed.
  4. If x remains, undo the steps Work backwards to find the secret number.

Reading a secret date

Here is a trick to guess a date: take the number of the month (M), multiply it by 4, add 3, multiply by 25, then add the day (D). Tell me the answer.

With algebra: 4M → 4M + 3 → 25 × (4M + 3) = 100M + 75 → 100M + 75 + D.

So subtract 75 from the answer. A day is at most 31, so it fills only the last two digits; the digits in front are the month.

Worked example 2: decoding dates

(a) The answer is 1290. 1290 − 75 = 1215, so M = 12 and D = 15: the date is 15 December.

(b) The answer is 790. 790 − 75 = 715, so M = 7 and D = 15: 15 July. Check: 7 × 4 = 28, 28 + 3 = 31, 31 × 25 = 775, 775 + 15 = 790. ✓

Try it with friends' birthdays, or change the numbers in the steps and work out what to subtract.

Worked example 3: a trick that reveals the number

'Think of a number, multiply it by 6, add 12, divide by 3, subtract 4, and tell me the result.' Then I halve the result to get your number.

x → 6x → 6x + 12 → 2x + 4 → 2x. The result is always twice the number, so halving it reveals x. If a friend says 26, the number was 13.

Write the secret number as x and follow each step. If x cancels out, the answer is fixed; if it does not, undo the steps to find x.

Key takeaways: every 'think of a number' trick is an expression in disguise. Track it step by step; a fixed answer means x has cancelled. For tricks that reveal a number or a date, work backwards from the final expression, such as 100M + 75 + D. Inventing a trick is just choosing steps whose expression does what you want.

Check your understanding

  1. 1. Think of a number, add 6, double it, subtract 2, halve it, then subtract the number you started with. What is the result?

    1. 6
    2. 5
    3. x + 5
    4. 2
    Show answer

    Answer: B. x → x + 6 → 2x + 12 → 2x + 10 → x + 5 → x + 5 − x = 5. The x cancels, so the result is always 5.

  2. 2. Start with x, multiply by 3, add 12, then divide by 3. Which expression do you get?

    1. 3x + 4
    2. x + 12
    3. x + 4
    4. x + 36
    Show answer

    Answer: C. 3x + 12 divided by 3 is 3x ÷ 3 + 12 ÷ 3 = x + 4. Both terms must be divided, not just the first.

  3. 3. In the date trick (month × 4, add 3, multiply by 25, add the day) the answer is 1080. What was the date?

    1. 10 May
    2. 8 October
    3. 15 October
    4. 5 October
    Show answer

    Answer: D. The answer is 100M + 75 + D. 1080 − 75 = 1005, so M = 10 and D = 05: 5 October. Check: 40 + 3 = 43, 43 × 25 = 1075, 1075 + 5 = 1080.

  4. 4. Think of a number, double it, add a secret amount, halve it, then subtract the original number. What should the secret amount be for the final answer to be 7?

    1. 14
    2. 7
    3. 3.5
    4. 21
    Show answer

    Answer: A. x → 2x → 2x + s → x + s/2 → s/2. For s/2 = 7 we need s = 14.

  5. 5. Why does a trick like 'add 7, double, subtract 4, halve, subtract the original' give the same answer for everyone?

    1. Because everyone picks small numbers
    2. Because doubling always gives an even number
    3. Because the x cancels out when the original number is subtracted
    4. Because the steps are done quickly
    Show answer

    Answer: C. The steps turn x into x + 5. Subtracting the original x leaves 5, with no x left, so the starting number makes no difference.

Sign in to keep track of the lessons you finish.

Next lesson → Number pyramids

Privacy · Terms · Refunds · Delivery