Identifier
Mp00031:
Dyck paths
—to 312-avoiding permutation⟶
Permutations
Mp00235: Permutations —descent views to invisible inversion bottoms⟶ Permutations
Mp00087: Permutations —inverse first fundamental transformation⟶ Permutations
Mp00130: Permutations —descent tops⟶ Binary words
Mp00235: Permutations —descent views to invisible inversion bottoms⟶ Permutations
Mp00087: Permutations —inverse first fundamental transformation⟶ Permutations
Mp00130: Permutations —descent tops⟶ Binary words
Images
=>
Cc0005;cc-rep-0
[1,0]=>[1]=>[1]=>[1]=>
[1,0,1,0]=>[1,2]=>[1,2]=>[1,2]=>0
[1,1,0,0]=>[2,1]=>[2,1]=>[2,1]=>1
[1,0,1,0,1,0]=>[1,2,3]=>[1,2,3]=>[1,2,3]=>00
[1,0,1,1,0,0]=>[1,3,2]=>[1,3,2]=>[1,3,2]=>01
[1,1,0,0,1,0]=>[2,1,3]=>[2,1,3]=>[2,1,3]=>10
[1,1,0,1,0,0]=>[2,3,1]=>[3,2,1]=>[2,3,1]=>01
[1,1,1,0,0,0]=>[3,2,1]=>[2,3,1]=>[3,1,2]=>01
[1,0,1,0,1,0,1,0]=>[1,2,3,4]=>[1,2,3,4]=>[1,2,3,4]=>000
[1,0,1,0,1,1,0,0]=>[1,2,4,3]=>[1,2,4,3]=>[1,2,4,3]=>001
[1,0,1,1,0,0,1,0]=>[1,3,2,4]=>[1,3,2,4]=>[1,3,2,4]=>010
[1,0,1,1,0,1,0,0]=>[1,3,4,2]=>[1,4,3,2]=>[1,3,4,2]=>001
[1,0,1,1,1,0,0,0]=>[1,4,3,2]=>[1,3,4,2]=>[1,4,2,3]=>001
[1,1,0,0,1,0,1,0]=>[2,1,3,4]=>[2,1,3,4]=>[2,1,3,4]=>100
[1,1,0,0,1,1,0,0]=>[2,1,4,3]=>[2,1,4,3]=>[2,1,4,3]=>101
[1,1,0,1,0,0,1,0]=>[2,3,1,4]=>[3,2,1,4]=>[2,3,1,4]=>010
[1,1,0,1,0,1,0,0]=>[2,3,4,1]=>[4,2,3,1]=>[2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,1,1,0,0,1,0,0]=>[5,4,6,3,7,2,9,8,10,1]=>[10,7,6,5,4,3,2,9,8,1]=>[5,4,6,3,7,2,9,8,10,1]=>000111011
[1,1,1,0,0,1,0,0,1,1,1,0,0,1,1,0,0,1,0,0]=>[3,2,4,1,7,6,9,8,10,5]=>[4,3,2,1,10,7,6,9,8,5]=>[3,2,4,1,7,6,9,8,10,5]=>011001011
[1,1,1,1,0,0,1,0,0,1,1,0,0,1,1,0,0,1,0,0]=>[4,3,5,2,7,6,9,8,10,1]=>[10,5,4,3,2,7,6,9,8,1]=>[4,3,5,2,7,6,9,8,10,1]=>001101011
[1,1,0,0,1,1,0,0,1,1,0,0,1,1,0,0,1,1,0,0,1,1,0,0]=>[2,1,4,3,6,5,8,7,10,9,12,11]=>[2,1,4,3,6,5,8,7,10,9,12,11]=>[2,1,4,3,6,5,8,7,10,9,12,11]=>10101010101
[1,1,1,0,0,1,0,0,1,1,0,0,1,1,0,0,1,1,0,0,1,1,0,0]=>[3,2,4,1,6,5,8,7,10,9,12,11]=>[4,3,2,1,6,5,8,7,10,9,12,11]=>[3,2,4,1,6,5,8,7,10,9,12,11]=>01101010101
[1,1,1,1,0,0,1,0,0,1,0,0,1,1,0,0,1,1,0,0,1,1,0,0]=>[4,3,5,2,6,1,8,7,10,9,12,11]=>[6,5,4,3,2,1,8,7,10,9,12,11]=>[4,3,5,2,6,1,8,7,10,9,12,11]=>00111010101
[1,1,0,0,1,1,1,0,0,1,0,0,1,1,0,0,1,1,0,0,1,1,0,0]=>[2,1,5,4,6,3,8,7,10,9,12,11]=>[2,1,6,5,4,3,8,7,10,9,12,11]=>[2,1,5,4,6,3,8,7,10,9,12,11]=>10011010101
[1,1,1,0,0,1,1,0,0,1,0,0,1,1,0,0,1,1,0,0,1,1,0,0]=>[3,2,5,4,6,1,8,7,10,9,12,11]=>[6,3,2,5,4,1,8,7,10,9,12,11]=>[3,2,5,4,6,1,8,7,10,9,12,11]=>01011010101
[1,1,0,0,1,1,1,1,0,0,1,0,0,1,0,0,1,1,0,0,1,1,0,0]=>[2,1,6,5,7,4,8,3,10,9,12,11]=>[2,1,8,7,6,5,4,3,10,9,12,11]=>[2,1,6,5,7,4,8,3,10,9,12,11]=>10001110101
[1,1,1,0,0,1,1,1,0,0,1,0,0,1,0,0,1,1,0,0,1,1,0,0]=>[3,2,6,5,7,4,8,1,10,9,12,11]=>[8,3,2,7,6,5,4,1,10,9,12,11]=>[3,2,6,5,7,4,8,1,10,9,12,11]=>01001110101
[1,1,1,1,0,0,1,1,0,0,1,0,0,1,0,0,1,1,0,0,1,1,0,0]=>[4,3,6,5,7,2,8,1,10,9,12,11]=>[8,7,4,3,6,5,2,1,10,9,12,11]=>[4,3,6,5,7,2,8,1,10,9,12,11]=>00101110101
[1,1,1,1,1,0,0,1,0,0,1,0,0,1,0,0,1,1,0,0,1,1,0,0]=>[5,4,6,3,7,2,8,1,10,9,12,11]=>[8,7,6,5,4,3,2,1,10,9,12,11]=>[5,4,6,3,7,2,8,1,10,9,12,11]=>00011110101
[1,1,0,0,1,1,0,0,1,1,1,0,0,1,0,0,1,1,0,0,1,1,0,0]=>[2,1,4,3,7,6,8,5,10,9,12,11]=>[2,1,4,3,8,7,6,5,10,9,12,11]=>[2,1,4,3,7,6,8,5,10,9,12,11]=>10100110101
[1,1,1,0,0,1,0,0,1,1,1,0,0,1,0,0,1,1,0,0,1,1,0,0]=>[3,2,4,1,7,6,8,5,10,9,12,11]=>[4,3,2,1,8,7,6,5,10,9,12,11]=>[3,2,4,1,7,6,8,5,10,9,12,11]=>01100110101
[1,1,1,1,0,0,1,0,0,1,1,0,0,1,0,0,1,1,0,0,1,1,0,0]=>[4,3,5,2,7,6,8,1,10,9,12,11]=>[8,5,4,3,2,7,6,1,10,9,12,11]=>[4,3,5,2,7,6,8,1,10,9,12,11]=>00110110101
[1,1,0,0,1,1,1,0,0,1,1,0,0,1,0,0,1,1,0,0,1,1,0,0]=>[2,1,5,4,7,6,8,3,10,9,12,11]=>[2,1,8,5,4,7,6,3,10,9,12,11]=>[2,1,5,4,7,6,8,3,10,9,12,11]=>10010110101
[1,1,1,0,0,1,1,0,0,1,1,0,0,1,0,0,1,1,0,0,1,1,0,0]=>[3,2,5,4,7,6,8,1,10,9,12,11]=>[8,3,2,5,4,7,6,1,10,9,12,11]=>[3,2,5,4,7,6,8,1,10,9,12,11]=>01010110101
[1,1,0,0,1,1,0,0,1,1,1,1,0,0,1,0,0,1,0,0,1,1,0,0]=>[2,1,4,3,8,7,9,6,10,5,12,11]=>[2,1,4,3,10,9,8,7,6,5,12,11]=>[2,1,4,3,8,7,9,6,10,5,12,11]=>10100011101
[1,1,1,0,0,1,0,0,1,1,1,1,0,0,1,0,0,1,0,0,1,1,0,0]=>[3,2,4,1,8,7,9,6,10,5,12,11]=>[4,3,2,1,10,9,8,7,6,5,12,11]=>[3,2,4,1,8,7,9,6,10,5,12,11]=>01100011101
[1,1,1,1,0,0,1,0,0,1,1,1,0,0,1,0,0,1,0,0,1,1,0,0]=>[4,3,5,2,8,7,9,6,10,1,12,11]=>[10,5,4,3,2,9,8,7,6,1,12,11]=>[4,3,5,2,8,7,9,6,10,1,12,11]=>00110011101
[1,1,0,0,1,1,1,0,0,1,1,1,0,0,1,0,0,1,0,0,1,1,0,0]=>[2,1,5,4,8,7,9,6,10,3,12,11]=>[2,1,10,5,4,9,8,7,6,3,12,11]=>[2,1,5,4,8,7,9,6,10,3,12,11]=>10010011101
[1,1,1,0,0,1,1,0,0,1,1,1,0,0,1,0,0,1,0,0,1,1,0,0]=>[3,2,5,4,8,7,9,6,10,1,12,11]=>[10,3,2,5,4,9,8,7,6,1,12,11]=>[3,2,5,4,8,7,9,6,10,1,12,11]=>01010011101
[1,1,1,1,0,0,1,1,0,0,1,1,0,0,1,0,0,1,0,0,1,1,0,0]=>[4,3,6,5,8,7,9,2,10,1,12,11]=>[10,9,4,3,6,5,8,7,2,1,12,11]=>[4,3,6,5,8,7,9,2,10,1,12,11]=>00101011101
[1,1,1,1,1,0,0,1,0,0,1,1,0,0,1,0,0,1,0,0,1,1,0,0]=>[5,4,6,3,8,7,9,2,10,1,12,11]=>[10,9,6,5,4,3,8,7,2,1,12,11]=>[5,4,6,3,8,7,9,2,10,1,12,11]=>00011011101
[1,1,1,1,0,0,1,1,1,0,0,1,0,0,1,0,0,1,0,0,1,1,0,0]=>[4,3,7,6,8,5,9,2,10,1,12,11]=>[10,9,4,3,8,7,6,5,2,1,12,11]=>[4,3,7,6,8,5,9,2,10,1,12,11]=>00100111101
[1,1,1,1,1,0,0,1,1,0,0,1,0,0,1,0,0,1,0,0,1,1,0,0]=>[5,4,7,6,8,3,9,2,10,1,12,11]=>[10,9,8,5,4,7,6,3,2,1,12,11]=>[5,4,7,6,8,3,9,2,10,1,12,11]=>00010111101
[1,1,0,0,1,1,1,1,0,0,1,1,0,0,1,0,0,1,0,0,1,1,0,0]=>[2,1,6,5,8,7,9,4,10,3,12,11]=>[2,1,10,9,6,5,8,7,4,3,12,11]=>[2,1,6,5,8,7,9,4,10,3,12,11]=>10001011101
[1,1,1,0,0,1,1,1,0,0,1,1,0,0,1,0,0,1,0,0,1,1,0,0]=>[3,2,6,5,8,7,9,4,10,1,12,11]=>[10,3,2,9,6,5,8,7,4,1,12,11]=>[3,2,6,5,8,7,9,4,10,1,12,11]=>01001011101
[1,1,1,1,1,1,0,0,1,0,0,1,0,0,1,0,0,1,0,0,1,1,0,0]=>[6,5,7,4,8,3,9,2,10,1,12,11]=>[10,9,8,7,6,5,4,3,2,1,12,11]=>[6,5,7,4,8,3,9,2,10,1,12,11]=>00001111101
[1,1,0,0,1,1,1,1,1,0,0,1,0,0,1,0,0,1,0,0,1,1,0,0]=>[2,1,7,6,8,5,9,4,10,3,12,11]=>[2,1,10,9,8,7,6,5,4,3,12,11]=>[2,1,7,6,8,5,9,4,10,3,12,11]=>10000111101
[1,1,1,0,0,1,1,1,1,0,0,1,0,0,1,0,0,1,0,0,1,1,0,0]=>[3,2,7,6,8,5,9,4,10,1,12,11]=>[10,3,2,9,8,7,6,5,4,1,12,11]=>[3,2,7,6,8,5,9,4,10,1,12,11]=>01000111101
[1,1,0,0,1,1,0,0,1,1,0,0,1,1,1,0,0,1,0,0,1,1,0,0]=>[2,1,4,3,6,5,9,8,10,7,12,11]=>[2,1,4,3,6,5,10,9,8,7,12,11]=>[2,1,4,3,6,5,9,8,10,7,12,11]=>10101001101
[1,1,1,0,0,1,0,0,1,1,0,0,1,1,1,0,0,1,0,0,1,1,0,0]=>[3,2,4,1,6,5,9,8,10,7,12,11]=>[4,3,2,1,6,5,10,9,8,7,12,11]=>[3,2,4,1,6,5,9,8,10,7,12,11]=>01101001101
[1,1,1,1,0,0,1,0,0,1,0,0,1,1,1,0,0,1,0,0,1,1,0,0]=>[4,3,5,2,6,1,9,8,10,7,12,11]=>[6,5,4,3,2,1,10,9,8,7,12,11]=>[4,3,5,2,6,1,9,8,10,7,12,11]=>00111001101
[1,1,0,0,1,1,1,0,0,1,0,0,1,1,1,0,0,1,0,0,1,1,0,0]=>[2,1,5,4,6,3,9,8,10,7,12,11]=>[2,1,6,5,4,3,10,9,8,7,12,11]=>[2,1,5,4,6,3,9,8,10,7,12,11]=>10011001101
[1,1,1,0,0,1,1,0,0,1,0,0,1,1,1,0,0,1,0,0,1,1,0,0]=>[3,2,5,4,6,1,9,8,10,7,12,11]=>[6,3,2,5,4,1,10,9,8,7,12,11]=>[3,2,5,4,6,1,9,8,10,7,12,11]=>01011001101
[1,1,0,0,1,1,1,1,0,0,1,0,0,1,1,0,0,1,0,0,1,1,0,0]=>[2,1,6,5,7,4,9,8,10,3,12,11]=>[2,1,10,7,6,5,4,9,8,3,12,11]=>[2,1,6,5,7,4,9,8,10,3,12,11]=>10001101101
[1,1,1,0,0,1,1,1,0,0,1,0,0,1,1,0,0,1,0,0,1,1,0,0]=>[3,2,6,5,7,4,9,8,10,1,12,11]=>[10,3,2,7,6,5,4,9,8,1,12,11]=>[3,2,6,5,7,4,9,8,10,1,12,11]=>01001101101
[1,1,1,1,0,0,1,1,0,0,1,0,0,1,1,0,0,1,0,0,1,1,0,0]=>[4,3,6,5,7,2,9,8,10,1,12,11]=>[10,7,4,3,6,5,2,9,8,1,12,11]=>[4,3,6,5,7,2,9,8,10,1,12,11]=>00101101101
[1,1,1,1,1,0,0,1,0,0,1,0,0,1,1,0,0,1,0,0,1,1,0,0]=>[5,4,6,3,7,2,9,8,10,1,12,11]=>[10,7,6,5,4,3,2,9,8,1,12,11]=>[5,4,6,3,7,2,9,8,10,1,12,11]=>00011101101
[1,1,0,0,1,1,0,0,1,1,1,0,0,1,1,0,0,1,0,0,1,1,0,0]=>[2,1,4,3,7,6,9,8,10,5,12,11]=>[2,1,4,3,10,7,6,9,8,5,12,11]=>[2,1,4,3,7,6,9,8,10,5,12,11]=>10100101101
[1,1,1,0,0,1,0,0,1,1,1,0,0,1,1,0,0,1,0,0,1,1,0,0]=>[3,2,4,1,7,6,9,8,10,5,12,11]=>[4,3,2,1,10,7,6,9,8,5,12,11]=>[3,2,4,1,7,6,9,8,10,5,12,11]=>01100101101
[1,1,1,1,0,0,1,0,0,1,1,0,0,1,1,0,0,1,0,0,1,1,0,0]=>[4,3,5,2,7,6,9,8,10,1,12,11]=>[10,5,4,3,2,7,6,9,8,1,12,11]=>[4,3,5,2,7,6,9,8,10,1,12,11]=>00110101101
[1,1,0,0,1,1,1,0,0,1,1,0,0,1,1,0,0,1,0,0,1,1,0,0]=>[2,1,5,4,7,6,9,8,10,3,12,11]=>[2,1,10,5,4,7,6,9,8,3,12,11]=>[2,1,5,4,7,6,9,8,10,3,12,11]=>10010101101
[1,1,1,0,0,1,1,0,0,1,1,0,0,1,1,0,0,1,0,0,1,1,0,0]=>[3,2,5,4,7,6,9,8,10,1,12,11]=>[10,3,2,5,4,7,6,9,8,1,12,11]=>[3,2,5,4,7,6,9,8,10,1,12,11]=>01010101101
[1,1,0,0,1,1,0,0,1,1,0,0,1,1,1,1,0,0,1,0,0,1,0,0]=>[2,1,4,3,6,5,10,9,11,8,12,7]=>[2,1,4,3,6,5,12,11,10,9,8,7]=>[2,1,4,3,6,5,10,9,11,8,12,7]=>10101000111
[1,1,1,0,0,1,0,0,1,1,0,0,1,1,1,1,0,0,1,0,0,1,0,0]=>[3,2,4,1,6,5,10,9,11,8,12,7]=>[4,3,2,1,6,5,12,11,10,9,8,7]=>[3,2,4,1,6,5,10,9,11,8,12,7]=>01101000111
[1,1,1,1,0,0,1,0,0,1,0,0,1,1,1,1,0,0,1,0,0,1,0,0]=>[4,3,5,2,6,1,10,9,11,8,12,7]=>[6,5,4,3,2,1,12,11,10,9,8,7]=>[4,3,5,2,6,1,10,9,11,8,12,7]=>00111000111
[1,1,0,0,1,1,1,0,0,1,0,0,1,1,1,1,0,0,1,0,0,1,0,0]=>[2,1,5,4,6,3,10,9,11,8,12,7]=>[2,1,6,5,4,3,12,11,10,9,8,7]=>[2,1,5,4,6,3,10,9,11,8,12,7]=>10011000111
[1,1,1,0,0,1,1,0,0,1,0,0,1,1,1,1,0,0,1,0,0,1,0,0]=>[3,2,5,4,6,1,10,9,11,8,12,7]=>[6,3,2,5,4,1,12,11,10,9,8,7]=>[3,2,5,4,6,1,10,9,11,8,12,7]=>01011000111
[1,1,0,0,1,1,1,1,0,0,1,0,0,1,1,1,0,0,1,0,0,1,0,0]=>[2,1,6,5,7,4,10,9,11,8,12,3]=>[2,1,12,7,6,5,4,11,10,9,8,3]=>[2,1,6,5,7,4,10,9,11,8,12,3]=>10001100111
[1,1,1,0,0,1,1,1,0,0,1,0,0,1,1,1,0,0,1,0,0,1,0,0]=>[3,2,6,5,7,4,10,9,11,8,12,1]=>[12,3,2,7,6,5,4,11,10,9,8,1]=>[3,2,6,5,7,4,10,9,11,8,12,1]=>01001100111
[1,1,1,1,0,0,1,1,0,0,1,0,0,1,1,1,0,0,1,0,0,1,0,0]=>[4,3,6,5,7,2,10,9,11,8,12,1]=>[12,7,4,3,6,5,2,11,10,9,8,1]=>[4,3,6,5,7,2,10,9,11,8,12,1]=>00101100111
[1,1,1,1,1,0,0,1,0,0,1,0,0,1,1,1,0,0,1,0,0,1,0,0]=>[5,4,6,3,7,2,10,9,11,8,12,1]=>[12,7,6,5,4,3,2,11,10,9,8,1]=>[5,4,6,3,7,2,10,9,11,8,12,1]=>00011100111
[1,1,0,0,1,1,0,0,1,1,1,0,0,1,1,1,0,0,1,0,0,1,0,0]=>[2,1,4,3,7,6,10,9,11,8,12,5]=>[2,1,4,3,12,7,6,11,10,9,8,5]=>[2,1,4,3,7,6,10,9,11,8,12,5]=>10100100111
[1,1,1,0,0,1,0,0,1,1,1,0,0,1,1,1,0,0,1,0,0,1,0,0]=>[3,2,4,1,7,6,10,9,11,8,12,5]=>[4,3,2,1,12,7,6,11,10,9,8,5]=>[3,2,4,1,7,6,10,9,11,8,12,5]=>01100100111
[1,1,1,1,0,0,1,0,0,1,1,0,0,1,1,1,0,0,1,0,0,1,0,0]=>[4,3,5,2,7,6,10,9,11,8,12,1]=>[12,5,4,3,2,7,6,11,10,9,8,1]=>[4,3,5,2,7,6,10,9,11,8,12,1]=>00110100111
[1,1,0,0,1,1,1,0,0,1,1,0,0,1,1,1,0,0,1,0,0,1,0,0]=>[2,1,5,4,7,6,10,9,11,8,12,3]=>[2,1,12,5,4,7,6,11,10,9,8,3]=>[2,1,5,4,7,6,10,9,11,8,12,3]=>10010100111
[1,1,1,0,0,1,1,0,0,1,1,0,0,1,1,1,0,0,1,0,0,1,0,0]=>[3,2,5,4,7,6,10,9,11,8,12,1]=>[12,3,2,5,4,7,6,11,10,9,8,1]=>[3,2,5,4,7,6,10,9,11,8,12,1]=>01010100111
[1,1,0,0,1,1,1,1,0,0,1,1,0,0,1,1,0,0,1,0,0,1,0,0]=>[2,1,6,5,8,7,10,9,11,4,12,3]=>[2,1,12,11,6,5,8,7,10,9,4,3]=>[2,1,6,5,8,7,10,9,11,4,12,3]=>10001010111
[1,1,1,0,0,1,1,1,0,0,1,1,0,0,1,1,0,0,1,0,0,1,0,0]=>[3,2,6,5,8,7,10,9,11,4,12,1]=>[12,3,2,11,6,5,8,7,10,9,4,1]=>[3,2,6,5,8,7,10,9,11,4,12,1]=>01001010111
[1,1,1,1,1,1,0,0,1,0,0,1,0,0,1,1,0,0,1,0,0,1,0,0]=>[6,5,7,4,8,3,10,9,11,2,12,1]=>[12,11,8,7,6,5,4,3,10,9,2,1]=>[6,5,7,4,8,3,10,9,11,2,12,1]=>00001110111
[1,1,0,0,1,1,1,1,1,0,0,1,0,0,1,1,0,0,1,0,0,1,0,0]=>[2,1,7,6,8,5,10,9,11,4,12,3]=>[2,1,12,11,8,7,6,5,10,9,4,3]=>[2,1,7,6,8,5,10,9,11,4,12,3]=>10000110111
[1,1,1,0,0,1,1,1,1,0,0,1,0,0,1,1,0,0,1,0,0,1,0,0]=>[3,2,7,6,8,5,10,9,11,4,12,1]=>[12,3,2,11,8,7,6,5,10,9,4,1]=>[3,2,7,6,8,5,10,9,11,4,12,1]=>01000110111
[1,1,0,0,1,1,1,1,0,0,1,1,1,0,0,1,0,0,1,0,0,1,0,0]=>[2,1,6,5,9,8,10,7,11,4,12,3]=>[2,1,12,11,6,5,10,9,8,7,4,3]=>[2,1,6,5,9,8,10,7,11,4,12,3]=>10001001111
[1,1,1,0,0,1,1,1,0,0,1,1,1,0,0,1,0,0,1,0,0,1,0,0]=>[3,2,6,5,9,8,10,7,11,4,12,1]=>[12,3,2,11,6,5,10,9,8,7,4,1]=>[3,2,6,5,9,8,10,7,11,4,12,1]=>01001001111
[1,1,1,1,1,1,0,0,1,0,0,1,1,0,0,1,0,0,1,0,0,1,0,0]=>[6,5,7,4,9,8,10,3,11,2,12,1]=>[12,11,10,7,6,5,4,9,8,3,2,1]=>[6,5,7,4,9,8,10,3,11,2,12,1]=>00001101111
[1,1,0,0,1,1,1,1,1,0,0,1,1,0,0,1,0,0,1,0,0,1,0,0]=>[2,1,7,6,9,8,10,5,11,4,12,3]=>[2,1,12,11,10,7,6,9,8,5,4,3]=>[2,1,7,6,9,8,10,5,11,4,12,3]=>10000101111
[1,1,1,0,0,1,1,1,1,0,0,1,1,0,0,1,0,0,1,0,0,1,0,0]=>[3,2,7,6,9,8,10,5,11,4,12,1]=>[12,3,2,11,10,7,6,9,8,5,4,1]=>[3,2,7,6,9,8,10,5,11,4,12,1]=>01000101111
[1,1,1,1,0,0,1,1,0,0,1,1,0,0,1,1,0,0,1,0,0,1,0,0]=>[4,3,6,5,8,7,10,9,11,2,12,1]=>[12,11,4,3,6,5,8,7,10,9,2,1]=>[4,3,6,5,8,7,10,9,11,2,12,1]=>00101010111
[1,1,1,1,0,0,1,1,1,0,0,1,0,0,1,1,0,0,1,0,0,1,0,0]=>[4,3,7,6,8,5,10,9,11,2,12,1]=>[12,11,4,3,8,7,6,5,10,9,2,1]=>[4,3,7,6,8,5,10,9,11,2,12,1]=>00100110111
[1,1,1,1,1,0,0,1,0,0,1,1,0,0,1,1,0,0,1,0,0,1,0,0]=>[5,4,6,3,8,7,10,9,11,2,12,1]=>[12,11,6,5,4,3,8,7,10,9,2,1]=>[5,4,6,3,8,7,10,9,11,2,12,1]=>00011010111
[1,1,1,1,1,0,0,1,1,0,0,1,0,0,1,1,0,0,1,0,0,1,0,0]=>[5,4,7,6,8,3,10,9,11,2,12,1]=>[12,11,8,5,4,7,6,3,10,9,2,1]=>[5,4,7,6,8,3,10,9,11,2,12,1]=>00010110111
[1,1,1,1,1,1,0,0,1,1,0,0,1,0,0,1,0,0,1,0,0,1,0,0]=>[6,5,8,7,9,4,10,3,11,2,12,1]=>[12,11,10,9,6,5,8,7,4,3,2,1]=>[6,5,8,7,9,4,10,3,11,2,12,1]=>00001011111
[1,1,1,1,1,1,1,0,0,1,0,0,1,0,0,1,0,0,1,0,0,1,0,0]=>[7,6,8,5,9,4,10,3,11,2,12,1]=>[12,11,10,9,8,7,6,5,4,3,2,1]=>[7,6,8,5,9,4,10,3,11,2,12,1]=>00000111111
[1,1,1,1,0,0,1,1,0,0,1,1,1,0,0,1,0,0,1,0,0,1,0,0]=>[4,3,6,5,9,8,10,7,11,2,12,1]=>[12,11,4,3,6,5,10,9,8,7,2,1]=>[4,3,6,5,9,8,10,7,11,2,12,1]=>00101001111
[1,1,1,1,0,0,1,1,1,0,0,1,1,0,0,1,0,0,1,0,0,1,0,0]=>[4,3,7,6,9,8,10,5,11,2,12,1]=>[12,11,4,3,10,7,6,9,8,5,2,1]=>[4,3,7,6,9,8,10,5,11,2,12,1]=>00100101111
[1,1,1,1,1,0,0,1,0,0,1,1,1,0,0,1,0,0,1,0,0,1,0,0]=>[5,4,6,3,9,8,10,7,11,2,12,1]=>[12,11,6,5,4,3,10,9,8,7,2,1]=>[5,4,6,3,9,8,10,7,11,2,12,1]=>00011001111
[1,1,1,1,1,0,0,1,1,0,0,1,1,0,0,1,0,0,1,0,0,1,0,0]=>[5,4,7,6,9,8,10,3,11,2,12,1]=>[12,11,10,5,4,7,6,9,8,3,2,1]=>[5,4,7,6,9,8,10,3,11,2,12,1]=>00010101111
[1,1,0,0,1,1,0,0,1,1,1,1,0,0,1,1,0,0,1,0,0,1,0,0]=>[2,1,4,3,8,7,10,9,11,6,12,5]=>[2,1,4,3,12,11,8,7,10,9,6,5]=>[2,1,4,3,8,7,10,9,11,6,12,5]=>10100010111
[1,1,1,0,0,1,0,0,1,1,1,1,0,0,1,1,0,0,1,0,0,1,0,0]=>[3,2,4,1,8,7,10,9,11,6,12,5]=>[4,3,2,1,12,11,8,7,10,9,6,5]=>[3,2,4,1,8,7,10,9,11,6,12,5]=>01100010111
[1,1,1,1,0,0,1,0,0,1,1,1,0,0,1,1,0,0,1,0,0,1,0,0]=>[4,3,5,2,8,7,10,9,11,6,12,1]=>[12,5,4,3,2,11,8,7,10,9,6,1]=>[4,3,5,2,8,7,10,9,11,6,12,1]=>00110010111
[1,1,0,0,1,1,1,0,0,1,1,1,0,0,1,1,0,0,1,0,0,1,0,0]=>[2,1,5,4,8,7,10,9,11,6,12,3]=>[2,1,12,5,4,11,8,7,10,9,6,3]=>[2,1,5,4,8,7,10,9,11,6,12,3]=>10010010111
[1,1,1,0,0,1,1,0,0,1,1,1,0,0,1,1,0,0,1,0,0,1,0,0]=>[3,2,5,4,8,7,10,9,11,6,12,1]=>[12,3,2,5,4,11,8,7,10,9,6,1]=>[3,2,5,4,8,7,10,9,11,6,12,1]=>01010010111
[1,1,0,0,1,1,1,1,1,1,0,0,1,0,0,1,0,0,1,0,0,1,0,0]=>[2,1,8,7,9,6,10,5,11,4,12,3]=>[2,1,12,11,10,9,8,7,6,5,4,3]=>[2,1,8,7,9,6,10,5,11,4,12,3]=>10000011111
[1,1,1,0,0,1,1,1,1,1,0,0,1,0,0,1,0,0,1,0,0,1,0,0]=>[3,2,8,7,9,6,10,5,11,4,12,1]=>[12,3,2,11,10,9,8,7,6,5,4,1]=>[3,2,8,7,9,6,10,5,11,4,12,1]=>01000011111
[1,1,1,1,0,0,1,1,1,1,0,0,1,0,0,1,0,0,1,0,0,1,0,0]=>[4,3,8,7,9,6,10,5,11,2,12,1]=>[12,11,4,3,10,9,8,7,6,5,2,1]=>[4,3,8,7,9,6,10,5,11,2,12,1]=>00100011111
[1,1,1,1,1,0,0,1,1,1,0,0,1,0,0,1,0,0,1,0,0,1,0,0]=>[5,4,8,7,9,6,10,3,11,2,12,1]=>[12,11,10,5,4,9,8,7,6,3,2,1]=>[5,4,8,7,9,6,10,3,11,2,12,1]=>00010011111
[1,1,0,0,1,1,0,0,1,1,1,1,1,0,0,1,0,0,1,0,0,1,0,0]=>[2,1,4,3,9,8,10,7,11,6,12,5]=>[2,1,4,3,12,11,10,9,8,7,6,5]=>[2,1,4,3,9,8,10,7,11,6,12,5]=>10100001111
[1,1,1,0,0,1,0,0,1,1,1,1,1,0,0,1,0,0,1,0,0,1,0,0]=>[3,2,4,1,9,8,10,7,11,6,12,5]=>[4,3,2,1,12,11,10,9,8,7,6,5]=>[3,2,4,1,9,8,10,7,11,6,12,5]=>01100001111
[1,1,1,1,0,0,1,0,0,1,1,1,1,0,0,1,0,0,1,0,0,1,0,0]=>[4,3,5,2,9,8,10,7,11,6,12,1]=>[12,5,4,3,2,11,10,9,8,7,6,1]=>[4,3,5,2,9,8,10,7,11,6,12,1]=>00110001111
[1,1,0,0,1,1,1,0,0,1,1,1,1,0,0,1,0,0,1,0,0,1,0,0]=>[2,1,5,4,9,8,10,7,11,6,12,3]=>[2,1,12,5,4,11,10,9,8,7,6,3]=>[2,1,5,4,9,8,10,7,11,6,12,3]=>10010001111
[1,1,1,0,0,1,1,0,0,1,1,1,1,0,0,1,0,0,1,0,0,1,0,0]=>[3,2,5,4,9,8,10,7,11,6,12,1]=>[12,3,2,5,4,11,10,9,8,7,6,1]=>[3,2,5,4,9,8,10,7,11,6,12,1]=>01010001111
[1,1,0,0,1,1,0,0,1,1,0,0,1,1,0,0,1,1,1,0,0,1,0,0]=>[2,1,4,3,6,5,8,7,11,10,12,9]=>[2,1,4,3,6,5,8,7,12,11,10,9]=>[2,1,4,3,6,5,8,7,11,10,12,9]=>10101010011
[1,1,1,0,0,1,0,0,1,1,0,0,1,1,0,0,1,1,1,0,0,1,0,0]=>[3,2,4,1,6,5,8,7,11,10,12,9]=>[4,3,2,1,6,5,8,7,12,11,10,9]=>[3,2,4,1,6,5,8,7,11,10,12,9]=>01101010011
[1,1,1,1,0,0,1,0,0,1,0,0,1,1,0,0,1,1,1,0,0,1,0,0]=>[4,3,5,2,6,1,8,7,11,10,12,9]=>[6,5,4,3,2,1,8,7,12,11,10,9]=>[4,3,5,2,6,1,8,7,11,10,12,9]=>00111010011
[1,1,0,0,1,1,1,0,0,1,0,0,1,1,0,0,1,1,1,0,0,1,0,0]=>[2,1,5,4,6,3,8,7,11,10,12,9]=>[2,1,6,5,4,3,8,7,12,11,10,9]=>[2,1,5,4,6,3,8,7,11,10,12,9]=>10011010011
[1,1,1,0,0,1,1,0,0,1,0,0,1,1,0,0,1,1,1,0,0,1,0,0]=>[3,2,5,4,6,1,8,7,11,10,12,9]=>[6,3,2,5,4,1,8,7,12,11,10,9]=>[3,2,5,4,6,1,8,7,11,10,12,9]=>01011010011
[1,1,0,0,1,1,1,1,0,0,1,0,0,1,0,0,1,1,1,0,0,1,0,0]=>[2,1,6,5,7,4,8,3,11,10,12,9]=>[2,1,8,7,6,5,4,3,12,11,10,9]=>[2,1,6,5,7,4,8,3,11,10,12,9]=>10001110011
[1,1,1,0,0,1,1,1,0,0,1,0,0,1,0,0,1,1,1,0,0,1,0,0]=>[3,2,6,5,7,4,8,1,11,10,12,9]=>[8,3,2,7,6,5,4,1,12,11,10,9]=>[3,2,6,5,7,4,8,1,11,10,12,9]=>01001110011
[1,1,1,1,0,0,1,1,0,0,1,0,0,1,0,0,1,1,1,0,0,1,0,0]=>[4,3,6,5,7,2,8,1,11,10,12,9]=>[8,7,4,3,6,5,2,1,12,11,10,9]=>[4,3,6,5,7,2,8,1,11,10,12,9]=>00101110011
[1,1,1,1,1,0,0,1,0,0,1,0,0,1,0,0,1,1,1,0,0,1,0,0]=>[5,4,6,3,7,2,8,1,11,10,12,9]=>[8,7,6,5,4,3,2,1,12,11,10,9]=>[5,4,6,3,7,2,8,1,11,10,12,9]=>00011110011
[1,1,0,0,1,1,0,0,1,1,1,0,0,1,0,0,1,1,1,0,0,1,0,0]=>[2,1,4,3,7,6,8,5,11,10,12,9]=>[2,1,4,3,8,7,6,5,12,11,10,9]=>[2,1,4,3,7,6,8,5,11,10,12,9]=>10100110011
[1,1,1,0,0,1,0,0,1,1,1,0,0,1,0,0,1,1,1,0,0,1,0,0]=>[3,2,4,1,7,6,8,5,11,10,12,9]=>[4,3,2,1,8,7,6,5,12,11,10,9]=>[3,2,4,1,7,6,8,5,11,10,12,9]=>01100110011
[1,1,1,1,0,0,1,0,0,1,1,0,0,1,0,0,1,1,1,0,0,1,0,0]=>[4,3,5,2,7,6,8,1,11,10,12,9]=>[8,5,4,3,2,7,6,1,12,11,10,9]=>[4,3,5,2,7,6,8,1,11,10,12,9]=>00110110011
[1,1,0,0,1,1,1,0,0,1,1,0,0,1,0,0,1,1,1,0,0,1,0,0]=>[2,1,5,4,7,6,8,3,11,10,12,9]=>[2,1,8,5,4,7,6,3,12,11,10,9]=>[2,1,5,4,7,6,8,3,11,10,12,9]=>10010110011
[1,1,1,0,0,1,1,0,0,1,1,0,0,1,0,0,1,1,1,0,0,1,0,0]=>[3,2,5,4,7,6,8,1,11,10,12,9]=>[8,3,2,5,4,7,6,1,12,11,10,9]=>[3,2,5,4,7,6,8,1,11,10,12,9]=>01010110011
[1,1,0,0,1,1,0,0,1,1,1,1,0,0,1,0,0,1,1,0,0,1,0,0]=>[2,1,4,3,8,7,9,6,11,10,12,5]=>[2,1,4,3,12,9,8,7,6,11,10,5]=>[2,1,4,3,8,7,9,6,11,10,12,5]=>10100011011
[1,1,1,0,0,1,0,0,1,1,1,1,0,0,1,0,0,1,1,0,0,1,0,0]=>[3,2,4,1,8,7,9,6,11,10,12,5]=>[4,3,2,1,12,9,8,7,6,11,10,5]=>[3,2,4,1,8,7,9,6,11,10,12,5]=>01100011011
[1,1,1,1,0,0,1,0,0,1,1,1,0,0,1,0,0,1,1,0,0,1,0,0]=>[4,3,5,2,8,7,9,6,11,10,12,1]=>[12,5,4,3,2,9,8,7,6,11,10,1]=>[4,3,5,2,8,7,9,6,11,10,12,1]=>00110011011
[1,1,0,0,1,1,1,0,0,1,1,1,0,0,1,0,0,1,1,0,0,1,0,0]=>[2,1,5,4,8,7,9,6,11,10,12,3]=>[2,1,12,5,4,9,8,7,6,11,10,3]=>[2,1,5,4,8,7,9,6,11,10,12,3]=>10010011011
[1,1,1,0,0,1,1,0,0,1,1,1,0,0,1,0,0,1,1,0,0,1,0,0]=>[3,2,5,4,8,7,9,6,11,10,12,1]=>[12,3,2,5,4,9,8,7,6,11,10,1]=>[3,2,5,4,8,7,9,6,11,10,12,1]=>01010011011
[1,1,1,1,0,0,1,1,0,0,1,1,0,0,1,0,0,1,1,0,0,1,0,0]=>[4,3,6,5,8,7,9,2,11,10,12,1]=>[12,9,4,3,6,5,8,7,2,11,10,1]=>[4,3,6,5,8,7,9,2,11,10,12,1]=>00101011011
[1,1,1,1,1,0,0,1,0,0,1,1,0,0,1,0,0,1,1,0,0,1,0,0]=>[5,4,6,3,8,7,9,2,11,10,12,1]=>[12,9,6,5,4,3,8,7,2,11,10,1]=>[5,4,6,3,8,7,9,2,11,10,12,1]=>00011011011
[1,1,1,1,0,0,1,1,1,0,0,1,0,0,1,0,0,1,1,0,0,1,0,0]=>[4,3,7,6,8,5,9,2,11,10,12,1]=>[12,9,4,3,8,7,6,5,2,11,10,1]=>[4,3,7,6,8,5,9,2,11,10,12,1]=>00100111011
[1,1,1,1,1,0,0,1,1,0,0,1,0,0,1,0,0,1,1,0,0,1,0,0]=>[5,4,7,6,8,3,9,2,11,10,12,1]=>[12,9,8,5,4,7,6,3,2,11,10,1]=>[5,4,7,6,8,3,9,2,11,10,12,1]=>00010111011
[1,1,0,0,1,1,1,1,0,0,1,1,0,0,1,0,0,1,1,0,0,1,0,0]=>[2,1,6,5,8,7,9,4,11,10,12,3]=>[2,1,12,9,6,5,8,7,4,11,10,3]=>[2,1,6,5,8,7,9,4,11,10,12,3]=>10001011011
[1,1,1,0,0,1,1,1,0,0,1,1,0,0,1,0,0,1,1,0,0,1,0,0]=>[3,2,6,5,8,7,9,4,11,10,12,1]=>[12,3,2,9,6,5,8,7,4,11,10,1]=>[3,2,6,5,8,7,9,4,11,10,12,1]=>01001011011
[1,1,1,1,1,1,0,0,1,0,0,1,0,0,1,0,0,1,1,0,0,1,0,0]=>[6,5,7,4,8,3,9,2,11,10,12,1]=>[12,9,8,7,6,5,4,3,2,11,10,1]=>[6,5,7,4,8,3,9,2,11,10,12,1]=>00001111011
[1,1,0,0,1,1,1,1,1,0,0,1,0,0,1,0,0,1,1,0,0,1,0,0]=>[2,1,7,6,8,5,9,4,11,10,12,3]=>[2,1,12,9,8,7,6,5,4,11,10,3]=>[2,1,7,6,8,5,9,4,11,10,12,3]=>10000111011
[1,1,1,0,0,1,1,1,1,0,0,1,0,0,1,0,0,1,1,0,0,1,0,0]=>[3,2,7,6,8,5,9,4,11,10,12,1]=>[12,3,2,9,8,7,6,5,4,11,10,1]=>[3,2,7,6,8,5,9,4,11,10,12,1]=>01000111011
[1,1,0,0,1,1,0,0,1,1,0,0,1,1,1,0,0,1,1,0,0,1,0,0]=>[2,1,4,3,6,5,9,8,11,10,12,7]=>[2,1,4,3,6,5,12,9,8,11,10,7]=>[2,1,4,3,6,5,9,8,11,10,12,7]=>10101001011
[1,1,1,0,0,1,0,0,1,1,0,0,1,1,1,0,0,1,1,0,0,1,0,0]=>[3,2,4,1,6,5,9,8,11,10,12,7]=>[4,3,2,1,6,5,12,9,8,11,10,7]=>[3,2,4,1,6,5,9,8,11,10,12,7]=>01101001011
[1,1,1,1,0,0,1,0,0,1,0,0,1,1,1,0,0,1,1,0,0,1,0,0]=>[4,3,5,2,6,1,9,8,11,10,12,7]=>[6,5,4,3,2,1,12,9,8,11,10,7]=>[4,3,5,2,6,1,9,8,11,10,12,7]=>00111001011
[1,1,0,0,1,1,1,0,0,1,0,0,1,1,1,0,0,1,1,0,0,1,0,0]=>[2,1,5,4,6,3,9,8,11,10,12,7]=>[2,1,6,5,4,3,12,9,8,11,10,7]=>[2,1,5,4,6,3,9,8,11,10,12,7]=>10011001011
[1,1,1,0,0,1,1,0,0,1,0,0,1,1,1,0,0,1,1,0,0,1,0,0]=>[3,2,5,4,6,1,9,8,11,10,12,7]=>[6,3,2,5,4,1,12,9,8,11,10,7]=>[3,2,5,4,6,1,9,8,11,10,12,7]=>01011001011
[1,1,0,0,1,1,1,1,0,0,1,0,0,1,1,0,0,1,1,0,0,1,0,0]=>[2,1,6,5,7,4,9,8,11,10,12,3]=>[2,1,12,7,6,5,4,9,8,11,10,3]=>[2,1,6,5,7,4,9,8,11,10,12,3]=>10001101011
[1,1,1,0,0,1,1,1,0,0,1,0,0,1,1,0,0,1,1,0,0,1,0,0]=>[3,2,6,5,7,4,9,8,11,10,12,1]=>[12,3,2,7,6,5,4,9,8,11,10,1]=>[3,2,6,5,7,4,9,8,11,10,12,1]=>01001101011
[1,1,1,1,0,0,1,1,0,0,1,0,0,1,1,0,0,1,1,0,0,1,0,0]=>[4,3,6,5,7,2,9,8,11,10,12,1]=>[12,7,4,3,6,5,2,9,8,11,10,1]=>[4,3,6,5,7,2,9,8,11,10,12,1]=>00101101011
[1,1,1,1,1,0,0,1,0,0,1,0,0,1,1,0,0,1,1,0,0,1,0,0]=>[5,4,6,3,7,2,9,8,11,10,12,1]=>[12,7,6,5,4,3,2,9,8,11,10,1]=>[5,4,6,3,7,2,9,8,11,10,12,1]=>00011101011
[1,1,0,0,1,1,0,0,1,1,1,0,0,1,1,0,0,1,1,0,0,1,0,0]=>[2,1,4,3,7,6,9,8,11,10,12,5]=>[2,1,4,3,12,7,6,9,8,11,10,5]=>[2,1,4,3,7,6,9,8,11,10,12,5]=>10100101011
[1,1,1,0,0,1,0,0,1,1,1,0,0,1,1,0,0,1,1,0,0,1,0,0]=>[3,2,4,1,7,6,9,8,11,10,12,5]=>[4,3,2,1,12,7,6,9,8,11,10,5]=>[3,2,4,1,7,6,9,8,11,10,12,5]=>01100101011
[1,1,1,1,0,0,1,0,0,1,1,0,0,1,1,0,0,1,1,0,0,1,0,0]=>[4,3,5,2,7,6,9,8,11,10,12,1]=>[12,5,4,3,2,7,6,9,8,11,10,1]=>[4,3,5,2,7,6,9,8,11,10,12,1]=>00110101011
[1,1,0,0,1,1,1,0,0,1,1,0,0,1,1,0,0,1,1,0,0,1,0,0]=>[2,1,5,4,7,6,9,8,11,10,12,3]=>[2,1,12,5,4,7,6,9,8,11,10,3]=>[2,1,5,4,7,6,9,8,11,10,12,3]=>10010101011
[1,1,1,0,0,1,1,0,0,1,1,0,0,1,1,0,0,1,1,0,0,1,0,0]=>[3,2,5,4,7,6,9,8,11,10,12,1]=>[12,3,2,5,4,7,6,9,8,11,10,1]=>[3,2,5,4,7,6,9,8,11,10,12,1]=>01010101011
[1,1,1,1,1,1,1,1,1,1,0,0,0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0,1,0,0,1,0,0,1,0,1,0]=>[4,5,3,6,2,7,1,8,9]=>[7,6,5,4,3,2,1,8,9]=>[4,5,3,6,2,7,1,8,9]=>00011100
[1,1,0,1,0,1,0,0,1,1,0,0,1,1,0,0,1,1,0,0]=>[2,3,4,1,6,5,8,7,10,9]=>[4,2,3,1,6,5,8,7,10,9]=>[2,3,4,1,6,5,8,7,10,9]=>001010101
Map
to 312-avoiding permutation
Description
Map
descent views to invisible inversion bottoms
Description
Return a permutation whose multiset of invisible inversion bottoms is the multiset of descent views of the given permutation.
An invisible inversion of a permutation $\sigma$ is a pair $i < j$ such that $i < \sigma(j) < \sigma(i)$. The element $\sigma(j)$ is then an invisible inversion bottom.
A descent view in a permutation $\pi$ is an element $\pi(j)$ such that $\pi(i+1) < \pi(j) < \pi(i)$, and additionally the smallest element in the decreasing run containing $\pi(i)$ is smaller than the smallest element in the decreasing run containing $\pi(j)$.
This map is a bijection $\chi:\mathfrak S_n \to \mathfrak S_n$, such that
An invisible inversion of a permutation $\sigma$ is a pair $i < j$ such that $i < \sigma(j) < \sigma(i)$. The element $\sigma(j)$ is then an invisible inversion bottom.
A descent view in a permutation $\pi$ is an element $\pi(j)$ such that $\pi(i+1) < \pi(j) < \pi(i)$, and additionally the smallest element in the decreasing run containing $\pi(i)$ is smaller than the smallest element in the decreasing run containing $\pi(j)$.
This map is a bijection $\chi:\mathfrak S_n \to \mathfrak S_n$, such that
- the multiset of descent views in $\pi$ is the multiset of invisible inversion bottoms in $\chi(\pi)$,
- the set of left-to-right maxima of $\pi$ is the set of maximal elements in the cycles of $\chi(\pi)$,
- the set of global ascent of $\pi$ is the set of global ascent of $\chi(\pi)$,
- the set of maximal elements in the decreasing runs of $\pi$ is the set of weak deficiency positions of $\chi(\pi)$, and
- the set of minimal elements in the decreasing runs of $\pi$ is the set of weak deficiency values of $\chi(\pi)$.
Map
inverse first fundamental transformation
Description
Let $\sigma = (i_{11}\cdots i_{1k_1})\cdots(i_{\ell 1}\cdots i_{\ell k_\ell})$ be a permutation given by cycle notation such that every cycle starts with its maximal entry, and all cycles are ordered increasingly by these maximal entries.
Maps $\sigma$ to the permutation $[i_{11},\ldots,i_{1k_1},\ldots,i_{\ell 1},\ldots,i_{\ell k_\ell}]$ in one-line notation.
In other words, this map sends the maximal entries of the cycles to the left-to-right maxima, and the sequences between two left-to-right maxima are given by the cycles.
Maps $\sigma$ to the permutation $[i_{11},\ldots,i_{1k_1},\ldots,i_{\ell 1},\ldots,i_{\ell k_\ell}]$ in one-line notation.
In other words, this map sends the maximal entries of the cycles to the left-to-right maxima, and the sequences between two left-to-right maxima are given by the cycles.
Map
descent tops
Description
The descent tops of a permutation as a binary word.
Since 1 is never a descent top, it is omitted and the first letter of the word corresponds to the element 2.
Since 1 is never a descent top, it is omitted and the first letter of the word corresponds to the element 2.
searching the database
Sorry, this map was not found in the database.