Rubik's cube sequence