The trick
Ask a friend to think of a number and keep it secret. Tell them: double it. Add 10. Halve the result. Now subtract the number you first thought of. Then announce, with great confidence: “You are thinking of 5.” You will be right every time, whatever number they chose.
Try it on 3: double is 6, add 10 gives 16, halve gives 8, subtract the original 3 gives 5. Try it on 100: 200, 210, 105, minus 100 — 5 again. The starting number seems to matter enormously and actually matters not at all.
Why it cannot fail
Call the secret number n. Doubling gives 2n. Adding 10 gives 2n + 10. Halving gives n + 5. Subtracting the original n leaves 5 — the n cancels itself, which is why the trick works for 3, for 100, and for a million.
Every trick of this family is built the same way: the instructions quietly arrange for the secret number to be subtracted from itself, while a few harmless-looking additions decide what the final answer will be. Change “add 10” to “add 14” and the answer becomes 7 instead.
Try it: build your own
Design a trick with a target answer of your choice. Start with n, double it, add double your target, halve, subtract n — and you will land on your target. Dress it up with silly extra steps (multiply by 1! think of a colour!) to hide the machinery.
Perform it once, then reveal the secret and watch your audience immediately start building tricks of their own. That moment — magic turning into algebra — is the whole point.

