Skip to content
World 1 · Turn the Cube · 10 min

Moves that do not commute: why order matters

R then U is not the same as U then R

Teaching this? Open projector mode

Put on a sock, then a shoe. Now try it the other way round: shoe, then sock. The results are different. Cube moves behave the same way. Turn R and then U and you get one cube; turn U and then R and you get a different one.

Mathematicians say two moves commute if doing them in either order gives the same result. R and U do not commute, because they both move some of the same pieces: the corner and edge where the right and top faces meet. Opposite faces such as R and L share no pieces at all, so they do commute: R L and L R give the same cube.

Here is a second idea. Take any sequence of moves and repeat it again and again. Sooner or later the cube returns to where it started. The number of repeats needed is called the order of the sequence.

  • R U R' U' has order 6: repeat it six times and the cube is back where it began.
  • R U has order 105: you would have to repeat just those two moves 105 times.
  • R2 L2 U2 D2 F2 B2 has order 2. One go makes a checkerboard pattern on every face, and a second go undoes it.

Why must the cube come back? There are only finitely many positions, and every move can be undone, so a repeated sequence has nowhere else to go but round in a loop that includes the start.

Loading 3D lab…
Loading 3D lab…

What about undoing a sequence? You might say “just do it backwards”. That is half right. To undo A B C you must reverse the order and invert each move: the undo is C' B' A'. Like undoing the sock and the shoe: first take off the shoe, then take off the sock.

Check yourself

Do `R U` and `U R` give the same cube?

Check yourself

A sequence returns the cube to its start after 6 repeats. What happens after 12 repeats?

Check yourself

Which sequence undoes `R U F'`?

0 of 5 required activities complete. Finish each task and quiz.Next lesson →
My notes
Only saved in this browserAll my notes →

Report a mistake

What is wrong?
0 / 2000 · at least 10 characters
Sent along with your report
  • Page
  • About Moves that do not commute: why order matters — Puzzle Algorithms Lab · puzzles/moves-do-not-commute
Plus your browser type. Reports go to our support system; see the privacy notice.