Author Topic: Hard puzzle  (Read 676 times)

My barber told me this one a long time ago and I never really spent too much time thinking about it. You can find it on my steam profile.

Quote
Two magicians are preforming a magic trick.
One of them stays inside the room while the other goes outside.
While the second magician is outside of the room, the first magician lets a participant pick 5 cards out of a deck of 52 cards.
Then, the magician looks at the cards, chooses one card and puts it in the participant's pocket.
Then, he reorders the remaining 4 cards, and lets the participant hold them.
After that, he calls the second magician to come back into the room.
What happens next is, he tells the participant to read out the 4 cards he was given in the order he was given them.
Using only that information , the second magician manages to "predict" which card is in the participant's pocket.
How did the two magicians manage to preform this magic trick?

because he looked at the cards

theres nothing saying magician number 2 didnt look through a window

Using the four cards the first magician re-ordered, he probably arranged them in a way that the other magician could figure out the fifth card with.
How he arranged them in such a way, I don't know, but that seems like the only logical answer.

they probably used magic

it doesn't specify which magician looked at the cards

It isn't as much a magic trick as it is a stage play. They've been practicing this act for a while. The deck has been forcibly shuffled to have those same four cards every time they perform it. Also, the possibility of a window being used isn't too far-fetched either

This isn't a trick question. I could reduce this problem down to the following problem:

Given the numbers 1-52, you need to devise a method that tells you, for each possible subset of 5 numbers from those numbers, which 4 cards out of the 5 to choose and in what order to put them, and only from those numbers and their order, anyone else knowing your method can deduce what the 5th number is.
« Last Edit: May 22, 2016, 07:28:20 PM by Klarck »

ow this hurts my head