Happy 40th anniversary Rubik's Cube!

Today the Rubik's cube celebrates 4040 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.

Consider a solved 3×33 \times 3 Rubik's cube. The six faces of the cube are named FRONTFRONT, BACKBACK, UPUP, DOWNDOWN, LEFTLEFT and RIGHTRIGHT respectively. An elementary move of the Rubik's cube is rotating a face by 90°90° clockwise or 90°90° 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 90°90° 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 90°90°, the letter is followed by an apostrophe (').These are all the elementary moves: RRUULLDDBBFFR R' U U' L L' D D' B B' F F'

Given a single string of elementary moves SS let F(s)F(s) 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 DFD F' BRUFDB R' U' F' D' BFBB' F' B' FLUBF L' U B FBULF B U L' DUFD U F FFF F' UBLU' B' L BRRUFB' R' R' U' F' BLBLB L' B L'

Find F(S)\sum F(S) for the ten strings above.

Explicit examples

F(LB)=63F(LB')=63

F(RR)=1F(RR')=1

F(FUB)=90F(FUB)=90

×

Problem Loading...

Note Loading...

Set Loading...