The age card trick behind I Know Your Age looks like magic and is really a counting system. Once you can see the bits, you can rebuild the deck yourself on a piece of paper — or explain to a friend why the game never misses.
One card, one bit
Every card stands for one place in a binary number:
| Card | Bit value |
|---|---|
| 1st | 1 |
| 2nd | 2 |
| 3rd | 4 |
| 4th | 8 |
| 5th | 16 |
| 6th | 32 |
| 7th | 64 |
A card lists every number from 1 to 127 that has its bit switched on. The 1 card therefore starts 1, 3, 5, 7 and the 2 card starts 2, 3, 6, 7. Numbers that share two bits, such as 3, appear on both cards.
Reading the answer back
When you answer the cards, you are telling the game which bits are on. Adding those bits gives your number. Take 45: in binary that is 101101, so it is on the 1, 4, 8 and 32 cards, and 1 + 4 + 8 + 32 = 45. Nothing else is needed — no lookup table, no statistics, no clever deduction.
This is also why the deck stops at 127. Seven bits hold 128 values (0 to 127), and a person's age fits comfortably inside that range. A sixth card would cap the trick at 63.
Doing it with paper
- Write the numbers 1 to 127 on seven strips, putting each number on the strips for the bits it contains. The quick way is to count in binary and drop a number onto every strip whose bit is set.
- Deal the strips to a friend and ask which ones hold their number.
- Add the bits of the strips they name.
The same trick works with any range: eight strips cover 1 to 255, five cover 1 to 31. Magicians have used the smaller versions for a century because the arithmetic is invisible to the audience — they see cards, not binary.
Why the browser version is easier
On paper the trick depends on the person doing the addition correctly, and on the cards being printed without a mistake. The page does both jobs: the seven grids are generated from the bit values, and the total is added as you tap. That is the whole reason I Know Your Age can promise an exact answer instead of a guess.
If you would rather play than read, the cards are on the play page: think of a number and answer seven questions.
Questions
What are the seven cards?
Each card stands for one bit of a binary number: 1, 2, 4, 8, 16, 32 and 64. A card lists every number from 1 to 127 that has its bit switched on, so the 1 card starts 1, 3, 5, 7 and the 2 card starts 2, 3, 6, 7.
Why can't the age card trick get it wrong?
Because it never guesses. Your seven yes-or-no answers are the bits of your number, and adding the cards you said yes to gives that number back exactly. A mistap is the only way to change the answer.
Why does the deck stop at 127?
Seven yes-or-no answers make 128 combinations, enough for every number from 0 to 127. An eighth card would double the range to 255, but no age needs it.