Repeat the same moves and you always get back to the start
If you keep repeating one move sequence on a solved cube, it eventually returns to the solved state, no matter how scrambled it looks along the way. You can work out how many repeats it takes without turning the cube at all, using the least common multiple.
How to read the notation: U (up) · D (down) · L (left) · R (right) · F (front) · B (back). A single letter means turning that face 90° clockwise as you look straight at it. An apostrophe, as in R', means counterclockwise, and a 2, as in R2, means 180°. The small picture next to the 3D cube is the cube unfolded into a net (middle row from left: L · F · R · B).
1. Turn it yourself
Press the buttons to turn the faces. Drag the cube to look at it from any side. Notice that the center squares never move.
Net view: shows the hidden faces too
Turns 0
2. How many repeats until it comes back?
Pick a move sequence or type your own. First calculate how many repeats it should take, then turn the cube to check that it really comes back after exactly that many.
Net view: shows the hidden faces too
Starting from the solved state
Why the least common multiple? Each time you do the sequence, every sticker moves to a fixed new spot. Follow one sticker and you'll see it travels around a cycle of spots. A sticker in a cycle of length 3 is home every 3 repeats, and one in a cycle of length 7 is home every 7 repeats. All stickers are home at the same time only on a common multiple of all the cycle lengths, and the first time that happens is the least common multiple.
Why R U has a cycle of length 15: after 5 corner pieces go once around and return to their spots, they are twisted, so the sticker colors are still wrong. A corner piece has 3 stickers, so it takes three trips around (5 × 3 = 15 repeats) before the colors match too.
3. How many states can the cube be in?
If you count piece by piece, the multiplication principle gives the number of states. Multiply one row at a time.
Ways to arrange the 8 corner pieces in 8 spots (8!)
40,320
Orientation of the corners (3 ways each). The last one is fixed once the other 7 are set, so 37
2,187
Ways to arrange the 12 edge pieces in 12 spots (12!)
479,001,600
Orientation of the edges (2 ways each). The last one is fixed automatically, so 211
2,048
You can never swap just two pieces (the same parity rule as the 15 puzzle), so only half are possible ÷ 2