// output of ./demo/seq/A368948-demo.cc:
// Description:
//% OEIS sequence A368948:
//% First track of single track permutations with swaps in prefix.

arg 1: 5 == n  [Number of elements to permute]  default=5
0, 1, 2, 2, 1, 0, 1, 0, 0, 1, 2, 2, 3, 3, 3, 3, 3, 3, 2, 2, 1, 0, 0, 1, 2, 2, 1, 0, 0, 1, 0, 1, 2, 2, 1, 0, 1, 0, 0, 1, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 3, 3, 3, 3, 3, 3, 2, 2, 1, 0, 0, 1, 0, 1, 2, 2, 1, 0, 1, 0, 0, 1, 2, 2, 1, 0, 0, 1, 2, 2, 3, 3, 3, 3, 3, 3, 2, 2, 1, 0, 0, 1, 0, 1, 2, 2, 1, 0, 
 ct = 120
