Dihedral group (source code)

= Dihedral group
{title2=$D_{2n}$}
{wiki}

For $n\geq3$, the <dihedral group> is the <symmetry group> of a regular $n$-gon, including <rotations> and <reflections>. Using the convention that the subscript gives the <group order>,
$$
D_{2n}=\langle r,s\mid r^n=s^2=1,\ srs=r^{-1}\rangle.
$$
Its $2n$ elements are $r^j$ and $r^js$, with $0\leq j<n$: the first are <rotations>, the second <reflections>. The relation $sr=r^{-1}s$ reduces every word to one of these forms. Geometrically the image of one vertex and a choice of direction around the polygon distinguish all $2n$ forms.

Another common convention writes $D_n$ for this same <group>, indexing by polygon vertices. For example the <symmetry group of a square> has eight elements and may be called either $D_8$ or $D_4$. The <group order> or <group presentation> resolves that notation difference. Its <rotation> <subgroup> is a <cyclic group> of index two, and a <reflection> conjugates each <rotation> to its inverse.