Tuesday Puzzle
Dan Donaldson
Say that I have a machine that will shuffle a deck of cards. It is not actually random, but generates a repeatable pattern, although, the result can be considered shuffled, especially if the input is not known.
The question is:
I have 13 cards of one suit arranged from ace to king. I feed them through the machine, then take the result and feed it through again. After the second pass, the order of the cards is 10,9,Q,8,K,3,4,A,5,J,6,2,7. What was the order after the first pass through the machine?