I am going to share a magic trick based on binary numbers. It requires no special math knowledge, though I have included the scientific explanation further down for the curious among you. I have tested this effect on several colleagues with strong scientific backgrounds, and not a single one managed to crack the secret.
The Trick:
Ask a friend to think of any random number between 1 and 63 and commit it to memory. Now show them the 6 cards below:

Have your friend sort the cards into two piles: the first pile should contain every card on which their secret number appears, and the second pile should contain the cards where it does not appear. In the blink of an eye, you announce the exact number they were thinking of!
The Secret:
The method is remarkably simple: just add up the first number (in the top-left corner) of every card where their number appeared.
Performance Tips:
As always, dress up the trick with engaging patter and a good story—this should feel like genuine magic, not a math puzzle. Have your spectator hand over or place down the cards containing their number one at a time, rather than all at once. This gives you plenty of time to add the numbers mentally. Once you have the secret number, throw them off the scent with a little misdirection: pretend to hesitate between a couple of possibilities, ask for their favorite color, and then reveal the number they chose!
Variation:
You can also find the secret number by adding up the top-left numbers on the cards the spectator did *not* select, and subtracting that total from 63.
Mathematical Explanation:
Look closely at the card with a `2` in the top-left corner. Here is how the numbers on that card are written in binary:

All of these numbers share one thing in common—the underlined digit in the second position from the right is always a `1`. That means they all include the decimal value 2.
The second key point is that the 6 top-left numbers (`1`, `2`, `4`, `8`, `16`, `32`) correspond to the first 6 bit positions of a binary number. Reminder: `10` is written `1010` in binary because `1×2^3 + 0×2^2 + 1×2^1 + 0×2^0 = 8 + 0 + 2 + 0 = 10`.
So whenever the spectator tells you that a card contains their secret number, you immediately know how that number breaks down: `32×(...) + 16×(...) + 8×(...) + 4×(...) + 2 + 1×(...)`.
Example:
If your friend points out the cards starting with `2`, `16`, `8`, and `1`, then you know the secret number in binary is `011011`. In decimal, that is `32×0 + 16×1 + 8×1 + 4×0 + 2×1 + 1×1`, which equals 27!
Source:
This trick was devised by Gary Kacmarcik, now an engineer at Google.
Enjoy the trick!