Home > Riddles > The triple rotation

The triple rotation

Master playsLevel 3/5

Moving three pieces seems like a wide freedom, but it is not so much. The surprise is that a very specific operation leaves intact a property of the complete order.

You start with the line

\[ 1,\ 2,\ 3,\ 4,\ 5. \] The only operation allowed is to choose three consecutive cards and rotate them cyclically: \[ abc\to bca \quad\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\text{or}\quad abc\to cab. \] Is it possible to obtain any permutation of the five cards in this way? \]

Hints

Show hints
  1. Don't try to build the final state by hand: first look for a property that every rotation preserves.
  2. Compare the nature of a three-element rotation with that of a simple two-element swap.
  3. If the final state differs from the initial state in that property, the transformation will be impossible.

Solution

Show full solution

Answer: No, you can't. Each allowed trade is a 3-cycle on consecutive positions. A 3-cycle is an even permutation. Composing only even permutations always produces an even permutation. Going from $(1,2,3,4,5)$ to $(2,1,3,4,5)$ is a single exchange of two elements, that is, an odd permutation. Odd cannot be obtained as a composition of evens.

Related riddles

Keep practicing

If you enjoyed this one, try more pure-logic riddles, explore this theme, browse the full archive, or read the riddle-solving guide.

← Previous: Corredores with a hint false · Next: The coin of two heads →