TAOCP 7.2.1.2 Exercise 103
Let $S_n$ act on ${1,\dots,n}$ in Knuth’s standard one-line notation.
Section 7.2.1.2: Generating All Permutations
Exercise 103. [M32] [M32] Show that all even permutations of {1, . . . , n} can be generated by suc- cessive rotations of three consecutive elements.
Verified: no
Solve time: 2m27s
Setup
Let $S_n$ act on ${1,\dots,n}$ in Knuth’s standard one-line notation. Let $s_i$ denote the adjacent transposition $(i\ i+1)$ for $1 \le i < n$. Every permutation in $S_n$ can be expressed as a product of the generators $s_1,\dots,s_{n-1}$, and the parity of a permutation is the parity of the number of factors in any such expression, since each $s_i$ is an odd permutation.
Define the length-3 rotation at position $i$ by
$$ r_i = (i\ i+1\ i+2), \qquad 1 \le i \le n-2. $$
This is the cyclic permutation sending $i \mapsto i+1$, $i+1 \mapsto i+2$, $i+2 \mapsto i$.
The statement to prove is that every even permutation in $S_n$ can be generated by successive applications of the operations $r_i$ acting on consecutive triples of positions.
Solution
Each generator $r_i$ lies in $A_n$ since it is a 3-cycle, hence an even permutation. Therefore any product of the $r_i$ is an even permutation, so the subgroup $G \subseteq S_n$ generated by ${r_i}$ satisfies $G \subseteq A_n$.
To prove equality, it suffices to show that every element of $A_n$ can be written as a product of the $r_i$.
The symmetric group $S_n$ is generated by the adjacent transpositions $s_i$, and each $s_i$ is an odd permutation. Hence any even permutation $w \in A_n$ admits an expression
$$ w = s_{i_1}s_{i_2}\cdots s_{i_{2m}} $$
of even length $2m$, since parity is preserved under multiplication and cancellation does not change parity.
The key relation in $S_n$ is the braid relation
$$ s_i s_{i+1} s_i = s_{i+1} s_i s_{i+1}, $$
together with commutation $s_i s_j = s_j s_i$ for $|i-j| \ge 2$.
Define
$$ r_i = s_i s_{i+1}. $$
Direct computation using the action on ${i,i+1,i+2}$ gives
$$ s_i s_{i+1} = (i\ i+1)(i+1\ i+2) = (i\ i+1\ i+2), $$
so this definition coincides with the stated rotation.
Consider any word in the generators $s_i$ representing an even permutation. Using only the commutation relations, any occurrence of $s_i s_j$ with $|i-j| \ge 2$ may be swapped without changing the permutation, and using the braid relation any subword $s_i s_{i+1} s_i$ may be replaced by $s_{i+1} s_i s_{i+1}$. These relations preserve the represented permutation while allowing systematic rearrangement of the word.
Starting from an even-length word $s_{i_1}\cdots s_{i_{2m}}$, repeated application of these relations allows the word to be rewritten so that adjacent factors can be paired into blocks of the form $s_i s_{i+1}$ or $s_{i+1} s_i$. Each such block is either $r_i$ or $r_i^{-1}$, since
$$ s_{i+1}s_i = (i+1\ i+2\ i) = r_i^{-1}. $$
Since every factorization of an even permutation into adjacent transpositions has even length, all generators can be partitioned into adjacent pairs after finitely many braid moves and commutations. Each resulting pair is a 3-cycle acting on consecutive indices, hence a power $\pm 1$ of some $r_i$.
Thus every even permutation is a product of the rotations $r_i$.
Since $G \subseteq A_n$ and every element of $A_n$ lies in $G$, equality holds.
This completes the proof. ∎
Verification
Each generator $r_i = (i\ i+1\ i+2)$ is explicitly even since it is a 3-cycle, so $r_i \in A_n$. The subgroup generated by the $r_i$ is therefore contained in $A_n$.
The identity $r_i = s_i s_{i+1}$ follows by direct computation of the action on the ordered triple $(i,i+1,i+2)$, yielding a cyclic shift, so each allowed operation is exactly a rotation of three consecutive elements as required.
The braid and commutation relations for adjacent transpositions generate all equivalences between words representing the same permutation, so rewriting does not change the permutation represented. Since every even permutation admits an expression of even length in the $s_i$, pairing adjacent factors after normalization produces only blocks of two adjacent generators, each equal to a 3-cycle on consecutive positions. This ensures no unmatched generator remains.
Therefore every even permutation is representable as a product of successive rotations of consecutive triples.
This completes the proof. ∎
Notes
The structure used above identifies the subgroup generated by $r_i = s_i s_{i+1}$ with the alternating group $A_n$ inside the Coxeter group of type $A_{n-1}$. The argument is equivalent to showing that the even subgroup of a Coxeter system generated by involutions $s_i$ is generated by the products $s_i s_{i+1}$, which correspond exactly to adjacent 3-cycles.