I was going through Janet Chen's "Group Theory and the Rubik's Cube" (PDF), and I came across this question:
Let $D$ denote a clockwise quarter turn on the downward face and $R$ denote a quarter turn on the rightmost face clockwise (We have the 6 faces: front (facing us), back, down, up, left, right.) Let $\mathbb{G}$ be the group formed by all possible moves on the Rubik's cube. Let $H$ be the subgroup of $\mathbb{G}$ generated by $D^2$, $R^2$. (Here, $D^2$ is taken as the composition of two $D$ moves.) Find the number of elements of $H$.
I have listed out $D^2$, $R^2$ in disjoint cycle notation but I am stuck.
Would appreciate if anyone could help, thanks.
$H$ is generated by $d=D^2$ and $r=R^2$. We have that $d^2=r^2=e$ is the identity, so each element of $H$ may be written on one of four forms: $$ drdr\cdots dr\\ rdrd\cdots rd\\ drdr\cdots rd\\ rdrd\cdots dr $$ ($d$ itself is of the third form, and $r$ of the fourth.)
At some point, repeating $rd$ takes you back to the identity. This puts a limit to how long these chains can be.
Finally, note that some of the chains described above, even below the "identity length", are equal. For instance, the chain $drdr\cdots rd$ that is only one $r$ short of being the identity, is actually equal to the chain $r$ (by virtue of $r=r^{-1}$).
Taking all this into account, you will have found $|H|$.