[example: Rotations and Reflections of a Square]
Let $D_8$ be the eight-element symmetry group of a square, with $r$ the rotation by $90^\circ$ and $s$ a reflection. The subscript records the order of the group; some texts write $D_4$ for this same group and reserve $D_8$ for the symmetry group of an octagon. Since four successive $90^\circ$ rotations make one full turn, the powers of $r$ are
\begin{align*}
r^0=e,\quad r^1=r,\quad r^2=\text{rotation by }180^\circ,\quad r^3=\text{rotation by }270^\circ,\quad r^4=e.
\end{align*}
Multiplying by further powers of $r$ only repeats this list, because
\begin{align*}
r^{k+4}=r^k r^4=r^k e=r^k
\end{align*}
for every $k \in \mathbb{Z}$. Hence
\begin{align*}
\langle r\rangle=\{e,r,r^2,r^3\},
\end{align*}
so $r$ generates exactly the four rotations of the square.
A reflection $s$ satisfies $s^2=e$, because applying the same reflection twice restores every point of the square to its original position. Therefore
\begin{align*}
s^0=e,\quad s^1=s,\quad s^2=e,\quad s^3=s^2s=es=s,
\end{align*}
and the powers of $s$ are only $e$ and $s$. More generally, every symmetry of a square is either a rotation $r^i$ or a reflection $r^i s$ with $i \in \{0,1,2,3\}$. The rotations have at most four distinct powers, and each reflection has exactly two distinct powers. Thus no element of $D_8$ has eight distinct powers, so no single element generates all of $D_8$.
[/example]