Identifier
Mp00199:
Dyck paths
—prime Dyck path⟶
Dyck paths
Mp00031: Dyck paths —to 312-avoiding permutation⟶ Permutations
Mp00109: Permutations —descent word⟶ Binary words
Mp00031: Dyck paths —to 312-avoiding permutation⟶ Permutations
Mp00109: Permutations —descent word⟶ Binary words
Images
=>
Cc0005;cc-rep-0Cc0005;cc-rep-1
[1,0]=>[1,1,0,0]=>[2,1]=>1
[1,0,1,0]=>[1,1,0,1,0,0]=>[2,3,1]=>01
[1,1,0,0]=>[1,1,1,0,0,0]=>[3,2,1]=>11
[1,0,1,0,1,0]=>[1,1,0,1,0,1,0,0]=>[2,3,4,1]=>001
[1,0,1,1,0,0]=>[1,1,0,1,1,0,0,0]=>[2,4,3,1]=>011
[1,1,0,0,1,0]=>[1,1,1,0,0,1,0,0]=>[3,2,4,1]=>101
[1,1,0,1,0,0]=>[1,1,1,0,1,0,0,0]=>[3,4,2,1]=>011
[1,1,1,0,0,0]=>[1,1,1,1,0,0,0,0]=>[4,3,2,1]=>111
[1,0,1,0,1,0,1,0]=>[1,1,0,1,0,1,0,1,0,0]=>[2,3,4,5,1]=>0001
[1,0,1,0,1,1,0,0]=>[1,1,0,1,0,1,1,0,0,0]=>[2,3,5,4,1]=>0011
[1,0,1,1,0,0,1,0]=>[1,1,0,1,1,0,0,1,0,0]=>[2,4,3,5,1]=>0101
[1,0,1,1,0,1,0,0]=>[1,1,0,1,1,0,1,0,0,0]=>[2,4,5,3,1]=>0011
[1,0,1,1,1,0,0,0]=>[1,1,0,1,1,1,0,0,0,0]=>[2,5,4,3,1]=>0111
[1,1,0,0,1,0,1,0]=>[1,1,1,0,0,1,0,1,0,0]=>[3,2,4,5,1]=>1001
[1,1,0,0,1,1,0,0]=>[1,1,1,0,0,1,1,0,0,0]=>[3,2,5,4,1]=>1011
[1,1,0,1,0,0,1,0]=>[1,1,1,0,1,0,0,1,0,0]=>[3,4,2,5,1]=>0101
[1,1,0,1,0,1,0,0]=>[1,1,1,0,1,0,1,0,0,0]=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[1,0,1,1,0,1,0,1,0,0,1,0,1,0,1,0,1,0]=>[1,1,0,1,1,0,1,0,1,0,0,1,0,1,0,1,0,1,0,0]=>[2,4,5,6,3,7,8,9,10,1]=>000100001
[1,0,1,0,1,1,0,1,0,0,1,0,1,0,1,0,1,0]=>[1,1,0,1,0,1,1,0,1,0,0,1,0,1,0,1,0,1,0,0]=>[2,3,5,6,4,7,8,9,10,1]=>000100001
[1,1,1,1,1,0,0,1,0,0,1,0,0,1,0,0,1,0]=>[1,1,1,1,1,1,0,0,1,0,0,1,0,0,1,0,0,1,0,0]=>[6,5,7,4,8,3,9,2,10,1]=>101010101
Map
prime Dyck path
Description
Return the Dyck path obtained by adding an initial up and a final down step.
Map
to 312-avoiding permutation
Description
Map
descent word
Description
The descent positions of a permutation as a binary word.
For a permutation $\pi$ of $n$ letters and each $1\leq i\leq n-1$ such that $\pi(i) > \pi(i+1)$ we set $w_i=1$, otherwise $w_i=0$.
Thus, the length of the word is one less the size of the permutation. In particular, the descent word is undefined for the empty permutation.
For a permutation $\pi$ of $n$ letters and each $1\leq i\leq n-1$ such that $\pi(i) > \pi(i+1)$ we set $w_i=1$, otherwise $w_i=0$.
Thus, the length of the word is one less the size of the permutation. In particular, the descent word is undefined for the empty permutation.
searching the database
Sorry, this map was not found in the database.