years of bringing joy to children and adults alike.Besides the pleasure of solving it,it also has a lot of mathematics to it too.Today the Rubik's cube celebrates
Consider a solved Rubik's cube. The six faces of the cube are named , , , , and respectively. An elementary move of the Rubik's cube is rotating a face by clockwise or anticlockwise. Any valid state of the Rubik's cube can be reached by applying these elementary operations one after the other.
An elementary move is denoted in the following fashion. If a given face is rotated by clockwise about the axis passing from the center of the face to the center of the cube, the move is denoted by the first letter of the name of the face. If the rotation is anticlockwise by , the letter is followed by an apostrophe (').These are all the elementary moves:
Given a single string of elementary moves let denote the number of times the sequence should be applied repeatedly to the solved cube to get back the original cube.
Consider the following ten strings
Find for the ten strings above.