Let x 1 x 2…xi xi+1 …xn be a permutation of {1,2,…,n} written in one line notation. An "i-adjacent interchange" applied to this permutation produces the permutation x 1 x 2…xi+1 xi …xn obtained from the first permutation by interchanging the symbols in positions i and i+1. We denote such an interchange by (i,i+1), where i=1,…,n−1. The permutation x 1 x 2…xi+1 xi …xn results from x 1 x 2…xi xi+1 …xn by right multiplication by the transposition (i,i+1) in the symmetric group Sn . Two adjacent transpositions (i,i+1) and (j,j+1) are themselves adjacent if either i=j+1 or j=i+1. In this paper, we show that that for every n≥3, there is an n long sequence (f(1),f(1)+1),…,(f(n!),f(n!)+1) of adjacent transpositions, each except the first adjacent to its predecessor, the first adjacent to the last, and such that the set of products of transpositions {πt:πt=(f(1),f(1)+1)…(f(t),f(t)+1)t=1,…,n!} is Sn , with the final product πn equal to the identity. We call such a sequence of transpositions a doubly adjacent Gray code for the symmetric group Sn . We give a procedure for constructing such a Gray code. The existence of such a code (Theorem 6.2) seems to be a very nontrivial problem. As a consequence of the existence of this code we resolve an open problem in the theory of Cayley graphs of the symmetric group by showing that the Cayley graph of Sn with generators {(l,2),(l,…,n),(n,…,l)} has a Hamiltonian cyclen≥3 (Corollary 6.5). Our procedure shows how to braid n strands.
Read more