login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A368948
First track of a certain single track permutation.
1
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
OFFSET
0,3
COMMENTS
Generate permutations of [0,1,2,3,...,n] by counting in the (rising) factorial number system and let j be its track incremented, then do the following swaps corresponding to j:
j: swaps (elements in permutation, or positions in inverse permutation)
0: (0,1)
1: (1,2)
2: (0,1) (2,3) once every 3! = 6 times
3: (1,2) (3,4)
4: (0,1) (2,3) (4,5) once every 5! = 120 times
5: (1,2) (3,4) (5,6)
6: (0,1) (2,3) (4,5) (6,7) once every 7! = 5040 times
j: (m, m+1) (m+2, m+3) ... (j, j+1) where m = j%2
(the average number of swaps is 1 + 1/3!*(1 + 1/5!*(1 + 1/7!*(...))) = 1.16805...).
The resulting permutations have the single track property: all tracks (columns under "permutation" in the example) are cyclic shifts of the first track.
EXAMPLE
In the following dots denote zeros.
permutation inverse factorial j: swaps
permutation number
0: [ . 1 2 3 ] [ . 1 2 3 ] [ . . . ]
1: [ 1 . 2 3 ] [ 1 . 2 3 ] [ 1 . . ] 0: (0,1)
2: [ 2 . 1 3 ] [ 1 2 . 3 ] [ . 1 . ] 1: (1,2)
3: [ 2 1 . 3 ] [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