The card trick is as follows:
- Place a card face-up to create a pile. If it is a face card or ace, remove it to the bottom of the deck in your hand and begin step 2 again.
- Take note of the current card’s numerical value, call it . Add cards in the pile. You can do this by counting from to 13 by placing a card on each count.
- Repeat steps until you cannot create any more piles.
- Flip over all piles so that they are face-down.
- Choose any piles of cards and turn the top card face-up. Sum the numerical values of those cards and add an extra .
- Discard the total sum you received from the previous step into a discard pile.
- The amount of cards remaining in your hand will be equal to the numerical value of the top card of the unflipped pile, which can be dramatically revealed.
Let’s break down how this works. First, we can simplify this procedure so that we only originally create 3 piles of cards, since every other pile is being returned to our hand anyways.
The optimised procedure for the trick is as follows:
- Place a card face-up to create a pile.
- Take note of the current card’s value (A=1, J=11, Q=12, K=13). Add cards in the pile. You can do this by counting from to 13 by placing a card on each count.
- Repeat steps until you create 3 piles.
- Flip over all piles so that they are face-down.
- Choose any piles of cards and turn the top card face-up. Sum the numerical values of those cards and add an extra .
- Discard the total sum you received from the previous step into a discard pile.
- The amount of cards remaining in your hand will be equal to the numerical value of the top card of the unflipped pile.
Explanation
Let be the “seed card” of each pile. Each seed card is a numerical card from a standard deck. The piles are notated with for each respective seed card.
Each pile has cards in it, because each pile is made by adding cards on top of the seed card.
The reveal of the trick can be represented with the following statement, for any combination of the piles.
What we need to find is the amount of cards in your hand dependent on .
This is where the ‘magic number’ comes from. Now all we have to do is ensure that the equality is true.
Thus the card trick can be reduced to a simple algebra statement.