Why a Number Trick Always Works
Quick answer Somebody guesses your answer without knowing your number. This section writes the steps of a trick with a letter, shows the starting number cancelling out, and then builds new tricks to order.
Here is a trick you can try on anyone. Think of a number, and keep it to yourself. Double it. Add 4. Halve the answer. Now take away the number you first thought of. Your answer is 2. It is always 2, and the person doing the trick never had to know what you started with.
Test it once. Start with 9: doubling gives 18, adding 4 gives 22, halving gives 11, and 11 − 9 = 2. Test it again with 25: doubling gives 50, adding 4 gives 54, halving gives 27, and 27 − 25 = 2. Two successes are encouraging, but they are not a reason. There are endlessly many numbers you could have started with, and you cannot try them all.
So do the steps once more, this time with a letter in place of the number. Let the number be x. Doubling gives 2x. Adding 4 gives 2x + 4. Halving gives (2x + 4) ÷ 2 = x + 2. Taking away the number you started with gives x + 2 − x = 2. The x has vanished, and that is the whole secret. The instructions were built so that the starting number cancels itself out, so what is left cannot depend on it. One line of algebra has settled every case at once.
Once you can see inside a trick you can build your own. Keep the same steps but add k instead of 4. Halving now gives x + k ÷ 2, and the last step leaves k ÷ 2. So the answer is always half of whatever you told the person to add. Tell them to add 6 and the answer will be 3; tell them to add 10 and the answer will be 5. Nothing else in the trick has to change.
A longer trick. Think of a number, add 7, multiply by 3, subtract 6, divide by 3, and then subtract the number you started with. Follow it with x. Adding 7 gives x + 7. Multiplying by 3 gives 3(x + 7) = 3x + 21. Subtracting 6 gives 3x + 15. Dividing by 3 gives x + 5. Subtracting the start leaves 5. Try it with 4: 11, then 33, then 27, then 9, and 9 − 4 = 5. Try it with 12: 19, then 57, then 51, then 17, and 17 − 12 = 5.
Generalise this one too. If the second instruction is add k, the working becomes (3(x + k) − 6) ÷ 3 − x = x + k − 2 − x = k − 2. The answer is always 2 less than the number you asked for. So if you want the trick to land on 8, tell your friend to add 10. Check with a start of 4: 14, then 42, then 36, then 12, and 12 − 4 = 8, exactly as promised.
A trick where the letter does not cancel. Not every trick is built to lose the starting number. Here is one that keeps it. Think of the number of the month you were born in, multiply it by 5, add 6, multiply by 4, add 9, multiply by 5, and finally add the day of the month. Tell me the answer and I will tell you your birthday. Let the month be M and the day be D. Then 5M becomes 5M + 6, which becomes 4(5M + 6) = 20M + 24, which becomes 20M + 33, which becomes 5(20M + 33) = 100M + 165, and adding the day gives 100M + 165 + D.
All the trickster does is subtract 165, which leaves 100M + D. Since the day is never more than 31, the last two digits are the day and whatever is in front is the month. Someone born on the 15th of the eighth month works out 40, then 46, then 184, then 193, then 965, then 980; and 980 − 165 = 815, which reads as month 8 and day 15. Someone born on the 3rd of the first month gets 5, then 11, then 44, then 53, then 265, then 268; and 268 − 165 = 103, which is month 1 and day 3.
Two lessons come out of all this. Testing a trick on a few numbers only tells you about those few numbers. Writing the steps with a letter tells you about every number there is. And when the expression you end up with contains no letter at all, that is a promise that the answer can never depend on what anybody chose.
- Write each instruction of a trick as an expression in x; if x cancels, everyone gets the same answer.
- Double, add 4, halve, subtract the start gives (2x + 4) / 2 - x = 2 whatever x is.
- Adding k instead of 4 in that trick makes the answer k / 2, so adding 10 makes the answer 5.
- Add 7, times 3, subtract 6, divide by 3, subtract the start gives 5, and adding k instead gives k - 2.
- Testing a few numbers only checks those numbers; algebra proves the trick for all of them.
- In the birthday trick the answer is 100M + 165 + D, so subtracting 165 gives back the month and the day.
