Solution (source code)

= Solution

Direct multiplication gives
$$
MRM=
\begin{pmatrix}\cos\theta&\sin\theta\\
-\sin\theta&\cos\theta\end{pmatrix}
=R^{-1}.
$$
Hence
$$
\boxed{MRM=R^a\quad\text{with }a=-1}.
$$
This is the defining conjugation relation between a rotation and reflection in a <dihedral group>.