1/2
I want to find a particular sequence of permutations. The requirements are:
* you start with the identity
* each permutation differs from the next by a permutation with only adjacent transpositions
* each number appears in every position at least once.
For example, for $n = 4$, here's an example:
1234,2143,2413,4231,4321,3412
What's the shortest such sequence as a function of $n$?
I have one algorithm that produces such a sequence that is length $2n +2$ for even $n$, and $2n-1$ for odd $n$. The attached photo should make the algorithm clear. But I don't have a good proof that this is optimal.
This is related to some #crochet I'm working on, surprisingly enough.