Processing math: 80%

Your data matches 63 different statistics following compositions of up to 3 maps.
(click to perform a complete search on your data)
Mp00127: Permutations left-to-right-maxima to Dyck pathDyck paths
Mp00137: Dyck paths to symmetric ASMAlternating sign matrices
Mp00002: Alternating sign matrices to left key permutationPermutations
St000374: Permutations ⟶ ℤResult quality: 100% values known / values provided: 100%distinct values known / distinct values provided: 100%
Values
[1] => [1,0]
=> [[1]]
=> [1] => 0
[1,2] => [1,0,1,0]
=> [[1,0],[0,1]]
=> [1,2] => 0
[2,1] => [1,1,0,0]
=> [[0,1],[1,0]]
=> [2,1] => 1
[1,2,3] => [1,0,1,0,1,0]
=> [[1,0,0],[0,1,0],[0,0,1]]
=> [1,2,3] => 0
[1,3,2] => [1,0,1,1,0,0]
=> [[1,0,0],[0,0,1],[0,1,0]]
=> [1,3,2] => 1
[2,1,3] => [1,1,0,0,1,0]
=> [[0,1,0],[1,0,0],[0,0,1]]
=> [2,1,3] => 1
[2,3,1] => [1,1,0,1,0,0]
=> [[0,1,0],[1,-1,1],[0,1,0]]
=> [1,3,2] => 1
[3,1,2] => [1,1,1,0,0,0]
=> [[0,0,1],[0,1,0],[1,0,0]]
=> [3,2,1] => 1
[3,2,1] => [1,1,1,0,0,0]
=> [[0,0,1],[0,1,0],[1,0,0]]
=> [3,2,1] => 1
[1,2,3,4] => [1,0,1,0,1,0,1,0]
=> [[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]]
=> [1,2,3,4] => 0
[1,2,4,3] => [1,0,1,0,1,1,0,0]
=> [[1,0,0,0],[0,1,0,0],[0,0,0,1],[0,0,1,0]]
=> [1,2,4,3] => 1
[1,3,2,4] => [1,0,1,1,0,0,1,0]
=> [[1,0,0,0],[0,0,1,0],[0,1,0,0],[0,0,0,1]]
=> [1,3,2,4] => 1
[1,3,4,2] => [1,0,1,1,0,1,0,0]
=> [[1,0,0,0],[0,0,1,0],[0,1,-1,1],[0,0,1,0]]
=> [1,2,4,3] => 1
[1,4,2,3] => [1,0,1,1,1,0,0,0]
=> [[1,0,0,0],[0,0,0,1],[0,0,1,0],[0,1,0,0]]
=> [1,4,3,2] => 1
[1,4,3,2] => [1,0,1,1,1,0,0,0]
=> [[1,0,0,0],[0,0,0,1],[0,0,1,0],[0,1,0,0]]
=> [1,4,3,2] => 1
[2,1,3,4] => [1,1,0,0,1,0,1,0]
=> [[0,1,0,0],[1,0,0,0],[0,0,1,0],[0,0,0,1]]
=> [2,1,3,4] => 1
[2,1,4,3] => [1,1,0,0,1,1,0,0]
=> [[0,1,0,0],[1,0,0,0],[0,0,0,1],[0,0,1,0]]
=> [2,1,4,3] => 2
[2,3,1,4] => [1,1,0,1,0,0,1,0]
=> [[0,1,0,0],[1,-1,1,0],[0,1,0,0],[0,0,0,1]]
=> [1,3,2,4] => 1
[2,3,4,1] => [1,1,0,1,0,1,0,0]
=> [[0,1,0,0],[1,-1,1,0],[0,1,-1,1],[0,0,1,0]]
=> [1,2,4,3] => 1
[2,4,1,3] => [1,1,0,1,1,0,0,0]
=> [[0,1,0,0],[1,-1,0,1],[0,0,1,0],[0,1,0,0]]
=> [1,4,3,2] => 1
[2,4,3,1] => [1,1,0,1,1,0,0,0]
=> [[0,1,0,0],[1,-1,0,1],[0,0,1,0],[0,1,0,0]]
=> [1,4,3,2] => 1
[3,1,2,4] => [1,1,1,0,0,0,1,0]
=> [[0,0,1,0],[0,1,0,0],[1,0,0,0],[0,0,0,1]]
=> [3,2,1,4] => 1
[3,1,4,2] => [1,1,1,0,0,1,0,0]
=> [[0,0,1,0],[0,1,0,0],[1,0,-1,1],[0,0,1,0]]
=> [2,1,4,3] => 2
[3,2,1,4] => [1,1,1,0,0,0,1,0]
=> [[0,0,1,0],[0,1,0,0],[1,0,0,0],[0,0,0,1]]
=> [3,2,1,4] => 1
[3,2,4,1] => [1,1,1,0,0,1,0,0]
=> [[0,0,1,0],[0,1,0,0],[1,0,-1,1],[0,0,1,0]]
=> [2,1,4,3] => 2
[3,4,1,2] => [1,1,1,0,1,0,0,0]
=> [[0,0,1,0],[0,1,-1,1],[1,-1,1,0],[0,1,0,0]]
=> [1,4,3,2] => 1
[3,4,2,1] => [1,1,1,0,1,0,0,0]
=> [[0,0,1,0],[0,1,-1,1],[1,-1,1,0],[0,1,0,0]]
=> [1,4,3,2] => 1
[4,1,2,3] => [1,1,1,1,0,0,0,0]
=> [[0,0,0,1],[0,0,1,0],[0,1,0,0],[1,0,0,0]]
=> [4,3,2,1] => 1
[4,1,3,2] => [1,1,1,1,0,0,0,0]
=> [[0,0,0,1],[0,0,1,0],[0,1,0,0],[1,0,0,0]]
=> [4,3,2,1] => 1
[4,2,1,3] => [1,1,1,1,0,0,0,0]
=> [[0,0,0,1],[0,0,1,0],[0,1,0,0],[1,0,0,0]]
=> [4,3,2,1] => 1
[4,2,3,1] => [1,1,1,1,0,0,0,0]
=> [[0,0,0,1],[0,0,1,0],[0,1,0,0],[1,0,0,0]]
=> [4,3,2,1] => 1
[4,3,1,2] => [1,1,1,1,0,0,0,0]
=> [[0,0,0,1],[0,0,1,0],[0,1,0,0],[1,0,0,0]]
=> [4,3,2,1] => 1
[4,3,2,1] => [1,1,1,1,0,0,0,0]
=> [[0,0,0,1],[0,0,1,0],[0,1,0,0],[1,0,0,0]]
=> [4,3,2,1] => 1
[1,2,3,4,5] => [1,0,1,0,1,0,1,0,1,0]
=> [[1,0,0,0,0],[0,1,0,0,0],[0,0,1,0,0],[0,0,0,1,0],[0,0,0,0,1]]
=> [1,2,3,4,5] => 0
[1,2,3,5,4] => [1,0,1,0,1,0,1,1,0,0]
=> [[1,0,0,0,0],[0,1,0,0,0],[0,0,1,0,0],[0,0,0,0,1],[0,0,0,1,0]]
=> [1,2,3,5,4] => 1
[1,2,4,3,5] => [1,0,1,0,1,1,0,0,1,0]
=> [[1,0,0,0,0],[0,1,0,0,0],[0,0,0,1,0],[0,0,1,0,0],[0,0,0,0,1]]
=> [1,2,4,3,5] => 1
[1,2,4,5,3] => [1,0,1,0,1,1,0,1,0,0]
=> [[1,0,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,0,1,0,0],[0,1,0,0,0],[0,0,0,0,1]]
=> [1,4,3,2,5] => 1
[1,4,2,5,3] => [1,0,1,1,1,0,0,1,0,0]
=> [[1,0,0,0,0],[0,0,0,1,0],[0,0,1,0,0],[0,1,0,-1,1],[0,0,0,1,0]]
=> [1,3,2,5,4] => 2
[1,4,3,2,5] => [1,0,1,1,1,0,0,0,1,0]
=> [[1,0,0,0,0],[0,0,0,1,0],[0,0,1,0,0],[0,1,0,0,0],[0,0,0,0,1]]
=> [1,4,3,2,5] => 1
[1,4,3,5,2] => [1,0,1,1,1,0,0,1,0,0]
=> [[1,0,0,0,0],[0,0,0,1,0],[0,0,1,0,0],[0,1,0,-1,1],[0,0,0,1,0]]
=> [1,3,2,5,4] => 2
[1,4,5,2,3] => [1,0,1,1,1,0,1,0,0,0]
=> [[1,0,0,0,0],[0,0,0,1,0],[0,0,1,-1,1],[0,1,-1,1,0],[0,0,1,0,0]]
=> [1,2,5,4,3] => 1
Description
The number of exclusive right-to-left minima of a permutation. This is the number of right-to-left minima that are not left-to-right maxima. This is also the number of non weak exceedences of a permutation that are also not mid-points of a decreasing subsequence of length 3. Given a permutation π=[π1,,πn], this statistic counts the number of position j such that πj<j and there do not exist indices i,k with i<j<k and πi>πj>πk. See also [[St000213]] and [[St000119]].
Mp00127: Permutations left-to-right-maxima to Dyck pathDyck paths
Mp00137: Dyck paths to symmetric ASMAlternating sign matrices
Mp00002: Alternating sign matrices to left key permutationPermutations
St000996: Permutations ⟶ ℤResult quality: 100% values known / values provided: 100%distinct values known / distinct values provided: 100%
Values
[1] => [1,0]
=> [[1]]
=> [1] => 0
[1,2] => [1,0,1,0]
=> [[1,0],[0,1]]
=> [1,2] => 0
[2,1] => [1,1,0,0]
=> [[0,1],[1,0]]
=> [2,1] => 1
[1,2,3] => [1,0,1,0,1,0]
=> [[1,0,0],[0,1,0],[0,0,1]]
=> [1,2,3] => 0
[1,3,2] => [1,0,1,1,0,0]
=> [[1,0,0],[0,0,1],[0,1,0]]
=> [1,3,2] => 1
[2,1,3] => [1,1,0,0,1,0]
=> [[0,1,0],[1,0,0],[0,0,1]]
=> [2,1,3] => 1
[2,3,1] => [1,1,0,1,0,0]
=> [[0,1,0],[1,-1,1],[0,1,0]]
=> [1,3,2] => 1
[3,1,2] => [1,1,1,0,0,0]
=> [[0,0,1],[0,1,0],[1,0,0]]
=> [3,2,1] => 1
[3,2,1] => [1,1,1,0,0,0]
=> [[0,0,1],[0,1,0],[1,0,0]]
=> [3,2,1] => 1
[1,2,3,4] => [1,0,1,0,1,0,1,0]
=> [[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]]
=> [1,2,3,4] => 0
[1,2,4,3] => [1,0,1,0,1,1,0,0]
=> [[1,0,0,0],[0,1,0,0],[0,0,0,1],[0,0,1,0]]
=> [1,2,4,3] => 1
[1,3,2,4] => [1,0,1,1,0,0,1,0]
=> [[1,0,0,0],[0,0,1,0],[0,1,0,0],[0,0,0,1]]
=> [1,3,2,4] => 1
[1,3,4,2] => [1,0,1,1,0,1,0,0]
=> [[1,0,0,0],[0,0,1,0],[0,1,-1,1],[0,0,1,0]]
=> [1,2,4,3] => 1
[1,4,2,3] => [1,0,1,1,1,0,0,0]
=> [[1,0,0,0],[0,0,0,1],[0,0,1,0],[0,1,0,0]]
=> [1,4,3,2] => 1
[1,4,3,2] => [1,0,1,1,1,0,0,0]
=> [[1,0,0,0],[0,0,0,1],[0,0,1,0],[0,1,0,0]]
=> [1,4,3,2] => 1
[2,1,3,4] => [1,1,0,0,1,0,1,0]
=> [[0,1,0,0],[1,0,0,0],[0,0,1,0],[0,0,0,1]]
=> [2,1,3,4] => 1
[2,1,4,3] => [1,1,0,0,1,1,0,0]
=> [[0,1,0,0],[1,0,0,0],[0,0,0,1],[0,0,1,0]]
=> [2,1,4,3] => 2
[2,3,1,4] => [1,1,0,1,0,0,1,0]
=> [[0,1,0,0],[1,-1,1,0],[0,1,0,0],[0,0,0,1]]
=> [1,3,2,4] => 1
[2,3,4,1] => [1,1,0,1,0,1,0,0]
=> [[0,1,0,0],[1,-1,1,0],[0,1,-1,1],[0,0,1,0]]
=> [1,2,4,3] => 1
[2,4,1,3] => [1,1,0,1,1,0,0,0]
=> [[0,1,0,0],[1,-1,0,1],[0,0,1,0],[0,1,0,0]]
=> [1,4,3,2] => 1
[2,4,3,1] => [1,1,0,1,1,0,0,0]
=> [[0,1,0,0],[1,-1,0,1],[0,0,1,0],[0,1,0,0]]
=> [1,4,3,2] => 1
[3,1,2,4] => [1,1,1,0,0,0,1,0]
=> [[0,0,1,0],[0,1,0,0],[1,0,0,0],[0,0,0,1]]
=> [3,2,1,4] => 1
[3,1,4,2] => [1,1,1,0,0,1,0,0]
=> [[0,0,1,0],[0,1,0,0],[1,0,-1,1],[0,0,1,0]]
=> [2,1,4,3] => 2
[3,2,1,4] => [1,1,1,0,0,0,1,0]
=> [[0,0,1,0],[0,1,0,0],[1,0,0,0],[0,0,0,1]]
=> [3,2,1,4] => 1
[3,2,4,1] => [1,1,1,0,0,1,0,0]
=> [[0,0,1,0],[0,1,0,0],[1,0,-1,1],[0,0,1,0]]
=> [2,1,4,3] => 2
[3,4,1,2] => [1,1,1,0,1,0,0,0]
=> [[0,0,1,0],[0,1,-1,1],[1,-1,1,0],[0,1,0,0]]
=> [1,4,3,2] => 1
[3,4,2,1] => [1,1,1,0,1,0,0,0]
=> [[0,0,1,0],[0,1,-1,1],[1,-1,1,0],[0,1,0,0]]
=> [1,4,3,2] => 1
[4,1,2,3] => [1,1,1,1,0,0,0,0]
=> [[0,0,0,1],[0,0,1,0],[0,1,0,0],[1,0,0,0]]
=> [4,3,2,1] => 1
[4,1,3,2] => [1,1,1,1,0,0,0,0]
=> [[0,0,0,1],[0,0,1,0],[0,1,0,0],[1,0,0,0]]
=> [4,3,2,1] => 1
[4,2,1,3] => [1,1,1,1,0,0,0,0]
=> [[0,0,0,1],[0,0,1,0],[0,1,0,0],[1,0,0,0]]
=> [4,3,2,1] => 1
[4,2,3,1] => [1,1,1,1,0,0,0,0]
=> [[0,0,0,1],[0,0,1,0],[0,1,0,0],[1,0,0,0]]
=> [4,3,2,1] => 1
[4,3,1,2] => [1,1,1,1,0,0,0,0]
=> [[0,0,0,1],[0,0,1,0],[0,1,0,0],[1,0,0,0]]
=> [4,3,2,1] => 1
[4,3,2,1] => [1,1,1,1,0,0,0,0]
=> [[0,0,0,1],[0,0,1,0],[0,1,0,0],[1,0,0,0]]
=> [4,3,2,1] => 1
[1,2,3,4,5] => [1,0,1,0,1,0,1,0,1,0]
=> [[1,0,0,0,0],[0,1,0,0,0],[0,0,1,0,0],[0,0,0,1,0],[0,0,0,0,1]]
=> [1,2,3,4,5] => 0
[1,2,3,5,4] => [1,0,1,0,1,0,1,1,0,0]
=> [[1,0,0,0,0],[0,1,0,0,0],[0,0,1,0,0],[0,0,0,0,1],[0,0,0,1,0]]
=> [1,2,3,5,4] => 1
[1,2,4,3,5] => [1,0,1,0,1,1,0,0,1,0]
=> [[1,0,0,0,0],[0,1,0,0,0],[0,0,0,1,0],[0,0,1,0,0],[0,0,0,0,1]]
=> [1,2,4,3,5] => 1
[1,2,4,5,3] => [1,0,1,0,1,1,0,1,0,0]
=> [[1,0,0,0,0],[0,1,0,0,0],[0,0,0,1,0],[0,0,1,-1,1],[0,0,0,1,0]]
=> [1,2,3,5,4] => 1
[1,2,5,3,4] => [1,0,1,0,1,1,1,0,0,0]
=> [[1,0,0,0,0],[0,1,0,0,0],[0,0,0,0,1],[0,0,0,1,0],[0,0,1,0,0]]
=> [1,2,5,4,3] => 1
[1,2,5,4,3] => [1,0,1,0,1,1,1,0,0,0]
=> [[1,0,0,0,0],[0,1,0,0,0],[0,0,0,0,1],[0,0,0,1,0],[0,0,1,0,0]]
=> [1,2,5,4,3] => 1
[1,3,2,4,5] => [1,0,1,1,0,0,1,0,1,0]
=> [[1,0,0,0,0],[0,0,1,0,0],[0,1,0,0,0],[0,0,0,1,0],[0,0,0,0,1]]
=> [1,3,2,4,5] => 1
[1,3,2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,1,0,0,0]
=> [[1,0,0,0,0],[0,0,0,1,0],[0,0,1,-1,1],[0,1,-1,1,0],[0,0,1,0,0]]
=> [1,2,5,4,3] => 1
Description
The number of exclusive left-to-right maxima of a permutation. This is the number of left-to-right maxima that are not right-to-left minima.
Matching statistic: St000390
Mp00127: Permutations left-to-right-maxima to Dyck pathDyck paths
Mp00031: Dyck paths to 312-avoiding permutationPermutations
Mp00109: Permutations descent wordBinary words
St000390: Binary words ⟶ ℤResult quality: 100% values known / values provided: 100%distinct values known / distinct values provided: 100%
Values
[1] => [1,0]
=> [1] => => ? = 0
[1,2] => [1,0,1,0]
=> [1,2] => 0 => 0
[2,1] => [1,1,0,0]
=> [2,1] => 1 => 1
[1,2,3] => [1,0,1,0,1,0]
=> [1,2,3] => 00 => 0
[1,3,2] => [1,0,1,1,0,0]
=> [1,3,2] => 01 => 1
[2,1,3] => [1,1,0,0,1,0]
=> [2,1,3] => 10 => 1
[2,3,1] => [1,1,0,1,0,0]
=> [2,3,1] => 01 => 1
[3,1,2] => [1,1,1,0,0,0]
=> [3,2,1] => 11 => 1
[3,2,1] => [1,1,1,0,0,0]
=> [3,2,1] => 11 => 1
[1,2,3,4] => [1,0,1,0,1,0,1,0]
=> [1,2,3,4] => 000 => 0
[1,2,4,3] => [1,0,1,0,1,1,0,0]
=> [1,2,4,3] => 001 => 1
[1,3,2,4] => [1,0,1,1,0,0,1,0]
=> [1,3,2,4] => 010 => 1
[1,3,4,2] => [1,0,1,1,0,1,0,0]
=> [1,3,4,2] => 001 => 1
[1,4,2,3] => [1,0,1,1,1,0,0,0]
=> [1,4,3,2] => 011 => 1
[1,4,3,2] => [1,0,1,1,1,0,0,0]
=> [1,4,3,2] => 011 => 1
[2,1,3,4] => [1,1,0,0,1,0,1,0]
=> [2,1,3,4] => 100 => 1
[2,1,4,3] => [1,1,0,0,1,1,0,0]
=> [2,1,4,3] => 101 => 2
[2,3,1,4] => [1,1,0,1,0,0,1,0]
=> [2,3,1,4] => 010 => 1
[2,3,4,1] => [1,1,0,1,0,1,0,0]
=> [2,3,4,1] => 001 => 1
[2,4,1,3] => [1,1,0,1,1,0,0,0]
=> [2,4,3,1] => 011 => 1
[2,4,3,1] => [1,1,0,1,1,0,0,0]
=> [2,4,3,1] => 011 => 1
[3,1,2,4] => [1,1,1,0,0,0,1,0]
=> [3,2,1,4] => 110 => 1
[3,1,4,2] => [1,1,1,0,0,1,0,0]
=> [3,2,4,1] => 101 => 2
[3,2,1,4] => [1,1,1,0,0,0,1,0]
=> [3,2,1,4] => 110 => 1
[3,2,4,1] => [1,1,1,0,0,1,0,0]
=> [3,2,4,1] => 101 => 2
[3,4,1,2] => [1,1,1,0,1,0,0,0]
=> [3,4,2,1] => 011 => 1
[3,4,2,1] => [1,1,1,0,1,0,0,0]
=> [3,4,2,1] => 011 => 1
[4,1,2,3] => [1,1,1,1,0,0,0,0]
=> [4,3,2,1] => 111 => 1
[4,1,3,2] => [1,1,1,1,0,0,0,0]
=> [4,3,2,1] => 111 => 1
[4,2,1,3] => [1,1,1,1,0,0,0,0]
=> [4,3,2,1] => 111 => 1
[4,2,3,1] => [1,1,1,1,0,0,0,0]
=> [4,3,2,1] => 111 => 1
[4,3,1,2] => [1,1,1,1,0,0,0,0]
=> [4,3,2,1] => 111 => 1
[4,3,2,1] => [1,1,1,1,0,0,0,0]
=> [4,3,2,1] => 111 => 1
[1,2,3,4,5] => [1,0,1,0,1,0,1,0,1,0]
=> [1,2,3,4,5] => 0000 => 0
[1,2,3,5,4] => [1,0,1,0,1,0,1,1,0,0]
=> [1,2,3,5,4] => 0001 => 1
[1,2,4,3,5] => [1,0,1,0,1,1,0,0,1,0]
=> [1,2,4,3,5] => 0010 => 1
[1,2,4,5,3] => [1,0,1,0,1,1,0,1,0,0]
=> [1,2,4,5,3] => 0001 => 1
[1,2,5,3,4] => [1,0,1,0,1,1,1,0,0,0]
=> [1,2,5,4,3] => 0011 => 1
[1,2,5,4,3] => [1,0,1,0,1,1,1,0,0,0]
=> [1,2,5,4,3] => 0011 => 1
[1,3,2,4,5] => [1,0,1,1,0,0,1,0,1,0]
=> [1,3,2,4,5] => 0100 => 1
[1,3,2,5,4] => [1,0,1,1,0,0,1,1,0,0]
=> [1,3,2,5,4] => 0101 => 2
[1,3,4,2,5] => [1,0,1,1,0,1,0,0,1,0]
=> [1,3,4,2,5] => 0010 => 1
[1,3,4,5,2] => [1,0,1,1,0,1,0,1,0,0]
=> [1,3,4,5,2] => 0001 => 1
[1,3,5,2,4] => [1,0,1,1,0,1,1,0,0,0]
=> [1,3,5,4,2] => 0011 => 1
[1,3,5,4,2] => [1,0,1,1,0,1,1,0,0,0]
=> [1,3,5,4,2] => 0011 => 1
[1,4,2,3,5] => [1,0,1,1,1,0,0,0,1,0]
=> [1,4,3,2,5] => 0110 => 1
[1,4,2,5,3] => [1,0,1,1,1,0,0,1,0,0]
=> [1,4,3,5,2] => 0101 => 2
[1,4,3,2,5] => [1,0,1,1,1,0,0,0,1,0]
=> [1,4,3,2,5] => 0110 => 1
[1,4,3,5,2] => [1,0,1,1,1,0,0,1,0,0]
=> [1,4,3,5,2] => 0101 => 2
[1,4,5,2,3] => [1,0,1,1,1,0,1,0,0,0]
=> [1,4,5,3,2] => 0011 => 1
[1,4,5,3,2] => [1,0,1,1,1,0,1,0,0,0]
=> [1,4,5,3,2] => 0011 => 1
Description
The number of runs of ones in a binary word.
Mp00127: Permutations left-to-right-maxima to Dyck pathDyck paths
Mp00035: Dyck paths to alternating sign matrixAlternating sign matrices
Mp00002: Alternating sign matrices to left key permutationPermutations
St000884: Permutations ⟶ ℤResult quality: 92% values known / values provided: 92%distinct values known / distinct values provided: 100%
Values
[1] => [1,0]
=> [[1]]
=> [1] => 0
[1,2] => [1,0,1,0]
=> [[1,0],[0,1]]
=> [1,2] => 0
[2,1] => [1,1,0,0]
=> [[0,1],[1,0]]
=> [2,1] => 1
[1,2,3] => [1,0,1,0,1,0]
=> [[1,0,0],[0,1,0],[0,0,1]]
=> [1,2,3] => 0
[1,3,2] => [1,0,1,1,0,0]
=> [[1,0,0],[0,0,1],[0,1,0]]
=> [1,3,2] => 1
[2,1,3] => [1,1,0,0,1,0]
=> [[0,1,0],[1,0,0],[0,0,1]]
=> [2,1,3] => 1
[2,3,1] => [1,1,0,1,0,0]
=> [[0,1,0],[1,-1,1],[0,1,0]]
=> [1,3,2] => 1
[3,1,2] => [1,1,1,0,0,0]
=> [[0,0,1],[1,0,0],[0,1,0]]
=> [3,1,2] => 1
[3,2,1] => [1,1,1,0,0,0]
=> [[0,0,1],[1,0,0],[0,1,0]]
=> [3,1,2] => 1
[1,2,3,4] => [1,0,1,0,1,0,1,0]
=> [[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]]
=> [1,2,3,4] => 0
[1,2,4,3] => [1,0,1,0,1,1,0,0]
=> [[1,0,0,0],[0,1,0,0],[0,0,0,1],[0,0,1,0]]
=> [1,2,4,3] => 1
[1,3,2,4] => [1,0,1,1,0,0,1,0]
=> [[1,0,0,0],[0,0,1,0],[0,1,0,0],[0,0,0,1]]
=> [1,3,2,4] => 1
[1,3,4,2] => [1,0,1,1,0,1,0,0]
=> [[1,0,0,0],[0,0,1,0],[0,1,-1,1],[0,0,1,0]]
=> [1,2,4,3] => 1
[1,4,2,3] => [1,0,1,1,1,0,0,0]
=> [[1,0,0,0],[0,0,0,1],[0,1,0,0],[0,0,1,0]]
=> [1,4,2,3] => 1
[1,4,3,2] => [1,0,1,1,1,0,0,0]
=> [[1,0,0,0],[0,0,0,1],[0,1,0,0],[0,0,1,0]]
=> [1,4,2,3] => 1
[2,1,3,4] => [1,1,0,0,1,0,1,0]
=> [[0,1,0,0],[1,0,0,0],[0,0,1,0],[0,0,0,1]]
=> [2,1,3,4] => 1
[2,1,4,3] => [1,1,0,0,1,1,0,0]
=> [[0,1,0,0],[1,0,0,0],[0,0,0,1],[0,0,1,0]]
=> [2,1,4,3] => 2
[2,3,1,4] => [1,1,0,1,0,0,1,0]
=> [[0,1,0,0],[1,-1,1,0],[0,1,0,0],[0,0,0,1]]
=> [1,3,2,4] => 1
[2,3,4,1] => [1,1,0,1,0,1,0,0]
=> [[0,1,0,0],[1,-1,1,0],[0,1,-1,1],[0,0,1,0]]
=> [1,2,4,3] => 1
[2,4,1,3] => [1,1,0,1,1,0,0,0]
=> [[0,1,0,0],[1,-1,0,1],[0,1,0,0],[0,0,1,0]]
=> [1,4,2,3] => 1
[2,4,3,1] => [1,1,0,1,1,0,0,0]
=> [[0,1,0,0],[1,-1,0,1],[0,1,0,0],[0,0,1,0]]
=> [1,4,2,3] => 1
[3,1,2,4] => [1,1,1,0,0,0,1,0]
=> [[0,0,1,0],[1,0,0,0],[0,1,0,0],[0,0,0,1]]
=> [3,1,2,4] => 1
[3,1,4,2] => [1,1,1,0,0,1,0,0]
=> [[0,0,1,0],[1,0,0,0],[0,1,-1,1],[0,0,1,0]]
=> [2,1,4,3] => 2
[3,2,1,4] => [1,1,1,0,0,0,1,0]
=> [[0,0,1,0],[1,0,0,0],[0,1,0,0],[0,0,0,1]]
=> [3,1,2,4] => 1
[3,2,4,1] => [1,1,1,0,0,1,0,0]
=> [[0,0,1,0],[1,0,0,0],[0,1,-1,1],[0,0,1,0]]
=> [2,1,4,3] => 2
[3,4,1,2] => [1,1,1,0,1,0,0,0]
=> [[0,0,1,0],[1,0,-1,1],[0,1,0,0],[0,0,1,0]]
=> [1,4,2,3] => 1
[3,4,2,1] => [1,1,1,0,1,0,0,0]
=> [[0,0,1,0],[1,0,-1,1],[0,1,0,0],[0,0,1,0]]
=> [1,4,2,3] => 1
[4,1,2,3] => [1,1,1,1,0,0,0,0]
=> [[0,0,0,1],[1,0,0,0],[0,1,0,0],[0,0,1,0]]
=> [4,1,2,3] => 1
[4,1,3,2] => [1,1,1,1,0,0,0,0]
=> [[0,0,0,1],[1,0,0,0],[0,1,0,0],[0,0,1,0]]
=> [4,1,2,3] => 1
[4,2,1,3] => [1,1,1,1,0,0,0,0]
=> [[0,0,0,1],[1,0,0,0],[0,1,0,0],[0,0,1,0]]
=> [4,1,2,3] => 1
[4,2,3,1] => [1,1,1,1,0,0,0,0]
=> [[0,0,0,1],[1,0,0,0],[0,1,0,0],[0,0,1,0]]
=> [4,1,2,3] => 1
[4,3,1,2] => [1,1,1,1,0,0,0,0]
=> [[0,0,0,1],[1,0,0,0],[0,1,0,0],[0,0,1,0]]
=> [4,1,2,3] => 1
[4,3,2,1] => [1,1,1,1,0,0,0,0]
=> [[0,0,0,1],[1,0,0,0],[0,1,0,0],[0,0,1,0]]
=> [4,1,2,3] => 1
[1,2,3,4,5] => [1,0,1,0,1,0,1,0,1,0]
=> [[1,0,0,0,0],[0,1,0,0,0],[0,0,1,0,0],[0,0,0,1,0],[0,0,0,0,1]]
=> [1,2,3,4,5] => 0
[1,2,3,5,4] => [1,0,1,0,1,0,1,1,0,0]
=> [[1,0,0,0,0],[0,1,0,0,0],[0,0,1,0,0],[0,0,0,0,1],[0,0,0,1,0]]
=> [1,2,3,5,4] => 1
[1,2,4,3,5] => [1,0,1,0,1,1,0,0,1,0]
=> [[1,0,0,0,0],[0,1,0,0,0],[0,0,0,1,0],[0,0,1,0,0],[0,0,0,0,1]]
=> [1,2,4,3,5] => 1
[1,2,4,5,3] => [1,0,1,0,1,1,0,1,0,0]
=> [[1,0,0,0,0],[0,1,0,0,0],[0,0,0,1,0],[0,0,1,-1,1],[0,0,0,1,0]]
=> [1,2,3,5,4] => 1
[1,2,5,3,4] => [1,0,1,0,1,1,1,0,0,0]
=> [[1,0,0,0,0],[0,1,0,0,0],[0,0,0,0,1],[0,0,1,0,0],[0,0,0,1,0]]
=> [1,2,5,3,4] => 1
[1,2,5,4,3] => [1,0,1,0,1,1,1,0,0,0]
=> [[1,0,0,0,0],[0,1,0,0,0],[0,0,0,0,1],[0,0,1,0,0],[0,0,0,1,0]]
=> [1,2,5,3,4] => 1
[1,3,2,4,5] => [1,0,1,1,0,0,1,0,1,0]
=> [[1,0,0,0,0],[0,0,1,0,0],[0,1,0,0,0],[0,0,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,7] => ? = 2
[7,5,6,8,1,2,3,4] => [1,1,1,1,1,1,1,0,0,0,1,0,0,0,0,0]
=> [[0,0,0,0,0,0,1,0],[1,0,0,0,0,0,0,0],[0,1,0,0,0,0,0,0],[0,0,1,0,0,0,-1,1],[0,0,0,1,0,0,0,0],[0,0,0,0,1,0,0,0],[0,0,0,0,0,1,0,0],[0,0,0,0,0,0,1,0]]
=> [3,1,2,8,4,5,6,7] => ? = 2
[4,3,2,1,5,6,7,8] => [1,1,1,1,0,0,0,0,1,0,1,0,1,0,1,0]
=> [[0,0,0,1,0,0,0,0],[1,0,0,0,0,0,0,0],[0,1,0,0,0,0,0,0],[0,0,1,0,0,0,0,0],[0,0,0,0,1,0,0,0],[0,0,0,0,0,1,0,0],[0,0,0,0,0,0,1,0],[0,0,0,0,0,0,0,1]]
=> [4,1,2,3,5,6,7,8] => ? = 1
[4,2,3,1,5,6,7,8] => [1,1,1,1,0,0,0,0,1,0,1,0,1,0,1,0]
=> [[0,0,0,1,0,0,0,0],[1,0,0,0,0,0,0,0],[0,1,0,0,0,0,0,0],[0,0,1,0,0,0,0,0],[0,0,0,0,1,0,0,0],[0,0,0,0,0,1,0,0],[0,0,0,0,0,0,1,0],[0,0,0,0,0,0,0,1]]
=> [4,1,2,3,5,6,7,8] => ? = 1
[4,3,1,2,5,6,7,8] => [1,1,1,1,0,0,0,0,1,0,1,0,1,0,1,0]
=> [[0,0,0,1,0,0,0,0],[1,0,0,0,0,0,0,0],[0,1,0,0,0,0,0,0],[0,0,1,0,0,0,0,0],[0,0,0,0,1,0,0,0],[0,0,0,0,0,1,0,0],[0,0,0,0,0,0,1,0],[0,0,0,0,0,0,0,1]]
=> [4,1,2,3,5,6,7,8] => ? = 1
Description
The number of isolated descents of a permutation. A descent i is isolated if neither i+1 nor i1 are descents. If a permutation has only isolated descents, then it is called primitive in [1].
Mp00127: Permutations left-to-right-maxima to Dyck pathDyck paths
Mp00035: Dyck paths to alternating sign matrixAlternating sign matrices
Mp00002: Alternating sign matrices to left key permutationPermutations
St000994: Permutations ⟶ ℤResult quality: 92% values known / values provided: 92%distinct values known / distinct values provided: 100%
Values
[1] => [1,0]
=> [[1]]
=> [1] => 0
[1,2] => [1,0,1,0]
=> [[1,0],[0,1]]
=> [1,2] => 0
[2,1] => [1,1,0,0]
=> [[0,1],[1,0]]
=> [2,1] => 1
[1,2,3] => [1,0,1,0,1,0]
=> [[1,0,0],[0,1,0],[0,0,1]]
=> [1,2,3] => 0
[1,3,2] => [1,0,1,1,0,0]
=> [[1,0,0],[0,0,1],[0,1,0]]
=> [1,3,2] => 1
[2,1,3] => [1,1,0,0,1,0]
=> [[0,1,0],[1,0,0],[0,0,1]]
=> [2,1,3] => 1
[2,3,1] => [1,1,0,1,0,0]
=> [[0,1,0],[1,-1,1],[0,1,0]]
=> [1,3,2] => 1
[3,1,2] => [1,1,1,0,0,0]
=> [[0,0,1],[1,0,0],[0,1,0]]
=> [3,1,2] => 1
[3,2,1] => [1,1,1,0,0,0]
=> [[0,0,1],[1,0,0],[0,1,0]]
=> [3,1,2] => 1
[1,2,3,4] => [1,0,1,0,1,0,1,0]
=> [[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]]
=> [1,2,3,4] => 0
[1,2,4,3] => [1,0,1,0,1,1,0,0]
=> [[1,0,0,0],[0,1,0,0],[0,0,0,1],[0,0,1,0]]
=> [1,2,4,3] => 1
[1,3,2,4] => [1,0,1,1,0,0,1,0]
=> [[1,0,0,0],[0,0,1,0],[0,1,0,0],[0,0,0,1]]
=> [1,3,2,4] => 1
[1,3,4,2] => [1,0,1,1,0,1,0,0]
=> [[1,0,0,0],[0,0,1,0],[0,1,-1,1],[0,0,1,0]]
=> [1,2,4,3] => 1
[1,4,2,3] => [1,0,1,1,1,0,0,0]
=> [[1,0,0,0],[0,0,0,1],[0,1,0,0],[0,0,1,0]]
=> [1,4,2,3] => 1
[1,4,3,2] => [1,0,1,1,1,0,0,0]
=> [[1,0,0,0],[0,0,0,1],[0,1,0,0],[0,0,1,0]]
=> [1,4,2,3] => 1
[2,1,3,4] => [1,1,0,0,1,0,1,0]
=> [[0,1,0,0],[1,0,0,0],[0,0,1,0],[0,0,0,1]]
=> [2,1,3,4] => 1
[2,1,4,3] => [1,1,0,0,1,1,0,0]
=> [[0,1,0,0],[1,0,0,0],[0,0,0,1],[0,0,1,0]]
=> [2,1,4,3] => 2
[2,3,1,4] => [1,1,0,1,0,0,1,0]
=> [[0,1,0,0],[1,-1,1,0],[0,1,0,0],[0,0,0,1]]
=> [1,3,2,4] => 1
[2,3,4,1] => [1,1,0,1,0,1,0,0]
=> [[0,1,0,0],[1,-1,1,0],[0,1,-1,1],[0,0,1,0]]
=> [1,2,4,3] => 1
[2,4,1,3] => [1,1,0,1,1,0,0,0]
=> [[0,1,0,0],[1,-1,0,1],[0,1,0,0],[0,0,1,0]]
=> [1,4,2,3] => 1
[2,4,3,1] => [1,1,0,1,1,0,0,0]
=> [[0,1,0,0],[1,-1,0,1],[0,1,0,0],[0,0,1,0]]
=> [1,4,2,3] => 1
[3,1,2,4] => [1,1,1,0,0,0,1,0]
=> [[0,0,1,0],[1,0,0,0],[0,1,0,0],[0,0,0,1]]
=> [3,1,2,4] => 1
[3,1,4,2] => [1,1,1,0,0,1,0,0]
=> [[0,0,1,0],[1,0,0,0],[0,1,-1,1],[0,0,1,0]]
=> [2,1,4,3] => 2
[3,2,1,4] => [1,1,1,0,0,0,1,0]
=> [[0,0,1,0],[1,0,0,0],[0,1,0,0],[0,0,0,1]]
=> [3,1,2,4] => 1
[3,2,4,1] => [1,1,1,0,0,1,0,0]
=> [[0,0,1,0],[1,0,0,0],[0,1,-1,1],[0,0,1,0]]
=> [2,1,4,3] => 2
[3,4,1,2] => [1,1,1,0,1,0,0,0]
=> [[0,0,1,0],[1,0,-1,1],[0,1,0,0],[0,0,1,0]]
=> [1,4,2,3] => 1
[3,4,2,1] => [1,1,1,0,1,0,0,0]
=> [[0,0,1,0],[1,0,-1,1],[0,1,0,0],[0,0,1,0]]
=> [1,4,2,3] => 1
[4,1,2,3] => [1,1,1,1,0,0,0,0]
=> [[0,0,0,1],[1,0,0,0],[0,1,0,0],[0,0,1,0]]
=> [4,1,2,3] => 1
[4,1,3,2] => [1,1,1,1,0,0,0,0]
=> [[0,0,0,1],[1,0,0,0],[0,1,0,0],[0,0,1,0]]
=> [4,1,2,3] => 1
[4,2,1,3] => [1,1,1,1,0,0,0,0]
=> [[0,0,0,1],[1,0,0,0],[0,1,0,0],[0,0,1,0]]
=> [4,1,2,3] => 1
[4,2,3,1] => [1,1,1,1,0,0,0,0]
=> [[0,0,0,1],[1,0,0,0],[0,1,0,0],[0,0,1,0]]
=> [4,1,2,3] => 1
[4,3,1,2] => [1,1,1,1,0,0,0,0]
=> [[0,0,0,1],[1,0,0,0],[0,1,0,0],[0,0,1,0]]
=> [4,1,2,3] => 1
[4,3,2,1] => [1,1,1,1,0,0,0,0]
=> [[0,0,0,1],[1,0,0,0],[0,1,0,0],[0,0,1,0]]
=> [4,1,2,3] => 1
[1,2,3,4,5] => [1,0,1,0,1,0,1,0,1,0]
=> [[1,0,0,0,0],[0,1,0,0,0],[0,0,1,0,0],[0,0,0,1,0],[0,0,0,0,1]]
=> [1,2,3,4,5] => 0
[1,2,3,5,4] => [1,0,1,0,1,0,1,1,0,0]
=> [[1,0,0,0,0],[0,1,0,0,0],[0,0,1,0,0],[0,0,0,0,1],[0,0,0,1,0]]
=> [1,2,3,5,4] => 1
[1,2,4,3,5] => [1,0,1,0,1,1,0,0,1,0]
=> [[1,0,0,0,0],[0,1,0,0,0],[0,0,0,1,0],[0,0,1,0,0],[0,0,0,0,1]]
=> [1,2,4,3,5] => 1
[1,2,4,5,3] => [1,0,1,0,1,1,0,1,0,0]
=> [[1,0,0,0,0],[0,1,0,0,0],[0,0,0,1,0],[0,0,1,-1,1],[0,0,0,1,0]]
=> [1,2,3,5,4] => 1
[1,2,5,3,4] => [1,0,1,0,1,1,1,0,0,0]
=> [[1,0,0,0,0],[0,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,1,0,0,0,0,0],[0,0,0,0,1,0,0,0],[0,0,0,0,0,1,0,0],[0,0,0,0,0,0,1,0],[0,0,0,0,0,0,0,1]]
=> [4,1,2,3,5,6,7,8] => ? = 1
Description
The number of cycle peaks and the number of cycle valleys of a permutation. A '''cycle peak''' of a permutation π is an index i such that π1(i)<i>π(i). Analogously, a '''cycle valley''' is an index i such that π1(i)>i<π(i). Clearly, every cycle of π contains as many peaks as valleys.
Mp00127: Permutations left-to-right-maxima to Dyck pathDyck paths
Mp00137: Dyck paths to symmetric ASMAlternating sign matrices
Mp00002: Alternating sign matrices to left key permutationPermutations
St000035: Permutations ⟶ ℤResult quality: 91% values known / values provided: 91%distinct values known / distinct values provided: 100%
Values
[1] => [1,0]
=> [[1]]
=> [1] => 0
[1,2] => [1,0,1,0]
=> [[1,0],[0,1]]
=> [1,2] => 0
[2,1] => [1,1,0,0]
=> [[0,1],[1,0]]
=> [2,1] => 1
[1,2,3] => [1,0,1,0,1,0]
=> [[1,0,0],[0,1,0],[0,0,1]]
=> [1,2,3] => 0
[1,3,2] => [1,0,1,1,0,0]
=> [[1,0,0],[0,0,1],[0,1,0]]
=> [1,3,2] => 1
[2,1,3] => [1,1,0,0,1,0]
=> [[0,1,0],[1,0,0],[0,0,1]]
=> [2,1,3] => 1
[2,3,1] => [1,1,0,1,0,0]
=> [[0,1,0],[1,-1,1],[0,1,0]]
=> [1,3,2] => 1
[3,1,2] => [1,1,1,0,0,0]
=> [[0,0,1],[0,1,0],[1,0,0]]
=> [3,2,1] => 1
[3,2,1] => [1,1,1,0,0,0]
=> [[0,0,1],[0,1,0],[1,0,0]]
=> [3,2,1] => 1
[1,2,3,4] => [1,0,1,0,1,0,1,0]
=> [[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]]
=> [1,2,3,4] => 0
[1,2,4,3] => [1,0,1,0,1,1,0,0]
=> [[1,0,0,0],[0,1,0,0],[0,0,0,1],[0,0,1,0]]
=> [1,2,4,3] => 1
[1,3,2,4] => [1,0,1,1,0,0,1,0]
=> [[1,0,0,0],[0,0,1,0],[0,1,0,0],[0,0,0,1]]
=> [1,3,2,4] => 1
[1,3,4,2] => [1,0,1,1,0,1,0,0]
=> [[1,0,0,0],[0,0,1,0],[0,1,-1,1],[0,0,1,0]]
=> [1,2,4,3] => 1
[1,4,2,3] => [1,0,1,1,1,0,0,0]
=> [[1,0,0,0],[0,0,0,1],[0,0,1,0],[0,1,0,0]]
=> [1,4,3,2] => 1
[1,4,3,2] => [1,0,1,1,1,0,0,0]
=> [[1,0,0,0],[0,0,0,1],[0,0,1,0],[0,1,0,0]]
=> [1,4,3,2] => 1
[2,1,3,4] => [1,1,0,0,1,0,1,0]
=> [[0,1,0,0],[1,0,0,0],[0,0,1,0],[0,0,0,1]]
=> [2,1,3,4] => 1
[2,1,4,3] => [1,1,0,0,1,1,0,0]
=> [[0,1,0,0],[1,0,0,0],[0,0,0,1],[0,0,1,0]]
=> [2,1,4,3] => 2
[2,3,1,4] => [1,1,0,1,0,0,1,0]
=> [[0,1,0,0],[1,-1,1,0],[0,1,0,0],[0,0,0,1]]
=> [1,3,2,4] => 1
[2,3,4,1] => [1,1,0,1,0,1,0,0]
=> [[0,1,0,0],[1,-1,1,0],[0,1,-1,1],[0,0,1,0]]
=> [1,2,4,3] => 1
[2,4,1,3] => [1,1,0,1,1,0,0,0]
=> [[0,1,0,0],[1,-1,0,1],[0,0,1,0],[0,1,0,0]]
=> [1,4,3,2] => 1
[2,4,3,1] => [1,1,0,1,1,0,0,0]
=> [[0,1,0,0],[1,-1,0,1],[0,0,1,0],[0,1,0,0]]
=> [1,4,3,2] => 1
[3,1,2,4] => [1,1,1,0,0,0,1,0]
=> [[0,0,1,0],[0,1,0,0],[1,0,0,0],[0,0,0,1]]
=> [3,2,1,4] => 1
[3,1,4,2] => [1,1,1,0,0,1,0,0]
=> [[0,0,1,0],[0,1,0,0],[1,0,-1,1],[0,0,1,0]]
=> [2,1,4,3] => 2
[3,2,1,4] => [1,1,1,0,0,0,1,0]
=> [[0,0,1,0],[0,1,0,0],[1,0,0,0],[0,0,0,1]]
=> [3,2,1,4] => 1
[3,2,4,1] => [1,1,1,0,0,1,0,0]
=> [[0,0,1,0],[0,1,0,0],[1,0,-1,1],[0,0,1,0]]
=> [2,1,4,3] => 2
[3,4,1,2] => [1,1,1,0,1,0,0,0]
=> [[0,0,1,0],[0,1,-1,1],[1,-1,1,0],[0,1,0,0]]
=> [1,4,3,2] => 1
[3,4,2,1] => [1,1,1,0,1,0,0,0]
=> [[0,0,1,0],[0,1,-1,1],[1,-1,1,0],[0,1,0,0]]
=> [1,4,3,2] => 1
[4,1,2,3] => [1,1,1,1,0,0,0,0]
=> [[0,0,0,1],[0,0,1,0],[0,1,0,0],[1,0,0,0]]
=> [4,3,2,1] => 1
[4,1,3,2] => [1,1,1,1,0,0,0,0]
=> [[0,0,0,1],[0,0,1,0],[0,1,0,0],[1,0,0,0]]
=> [4,3,2,1] => 1
[4,2,1,3] => [1,1,1,1,0,0,0,0]
=> [[0,0,0,1],[0,0,1,0],[0,1,0,0],[1,0,0,0]]
=> [4,3,2,1] => 1
[4,2,3,1] => [1,1,1,1,0,0,0,0]
=> [[0,0,0,1],[0,0,1,0],[0,1,0,0],[1,0,0,0]]
=> [4,3,2,1] => 1
[4,3,1,2] => [1,1,1,1,0,0,0,0]
=> [[0,0,0,1],[0,0,1,0],[0,1,0,0],[1,0,0,0]]
=> [4,3,2,1] => 1
[4,3,2,1] => [1,1,1,1,0,0,0,0]
=> [[0,0,0,1],[0,0,1,0],[0,1,0,0],[1,0,0,0]]
=> [4,3,2,1] => 1
[1,2,3,4,5] => [1,0,1,0,1,0,1,0,1,0]
=> [[1,0,0,0,0],[0,1,0,0,0],[0,0,1,0,0],[0,0,0,1,0],[0,0,0,0,1]]
=> [1,2,3,4,5] => 0
[1,2,3,5,4] => [1,0,1,0,1,0,1,1,0,0]
=> [[1,0,0,0,0],[0,1,0,0,0],[0,0,1,0,0],[0,0,0,0,1],[0,0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0,0]
=> [[1,0,0,0,0,0,0],[0,1,0,0,0,0,0],[0,0,0,0,1,0,0],[0,0,0,1,0,0,0],[0,0,1,0,0,0,0],[0,0,0,0,0,0,1],[0,0,0,0,0,1,0]]
=> [1,2,5,4,3,7,6] => ? = 2
[1,2,5,4,6,3,7] => [1,0,1,0,1,1,1,0,0,1,0,0,1,0]
=> [[1,0,0,0,0,0,0],[0,1,0,0,0,0,0],[0,0,0,0,1,0,0],[0,0,0,1,0,0,0],[0,0,1,0,-1,1,0],[0,0,0,0,1,0,0],[0,0,0,0,0,0,1]]
=> [1,2,4,3,6,5,7] => ? = 2
[1,2,5,4,6,7,3] => [1,0,1,0,1,1,1,0,0,1,0,1,0,0]
=> [[1,0,0,0,0,0,0],[0,1,0,0,0,0,0],[0,0,0,0,1,0,0],[0,0,0,1,0,0,0],[0,0,1,0,-1,1,0],[0,0,0,0,1,-1,1],[0,0,0,0,0,1,0]]
=> [1,2,4,3,5,7,6] => ? = 2
Description
The number of left outer peaks of a permutation. A left outer peak in a permutation w=[w1,...,wn] is either a position i such that wi1<wi>wi+1 or 1 if w1>w2. In other words, it is a peak in the word [0,w1,...,wn]. This appears in [1, def.3.1]. The joint distribution with [[St000366]] is studied in [3], where left outer peaks are called ''exterior peaks''.
Matching statistic: St000670
Mp00127: Permutations left-to-right-maxima to Dyck pathDyck paths
Mp00137: Dyck paths to symmetric ASMAlternating sign matrices
Mp00002: Alternating sign matrices to left key permutationPermutations
St000670: Permutations ⟶ ℤResult quality: 90% values known / values provided: 90%distinct values known / distinct values provided: 100%
Values
[1] => [1,0]
=> [[1]]
=> [1] => 0
[1,2] => [1,0,1,0]
=> [[1,0],[0,1]]
=> [1,2] => 0
[2,1] => [1,1,0,0]
=> [[0,1],[1,0]]
=> [2,1] => 1
[1,2,3] => [1,0,1,0,1,0]
=> [[1,0,0],[0,1,0],[0,0,1]]
=> [1,2,3] => 0
[1,3,2] => [1,0,1,1,0,0]
=> [[1,0,0],[0,0,1],[0,1,0]]
=> [1,3,2] => 1
[2,1,3] => [1,1,0,0,1,0]
=> [[0,1,0],[1,0,0],[0,0,1]]
=> [2,1,3] => 1
[2,3,1] => [1,1,0,1,0,0]
=> [[0,1,0],[1,-1,1],[0,1,0]]
=> [1,3,2] => 1
[3,1,2] => [1,1,1,0,0,0]
=> [[0,0,1],[0,1,0],[1,0,0]]
=> [3,2,1] => 1
[3,2,1] => [1,1,1,0,0,0]
=> [[0,0,1],[0,1,0],[1,0,0]]
=> [3,2,1] => 1
[1,2,3,4] => [1,0,1,0,1,0,1,0]
=> [[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]]
=> [1,2,3,4] => 0
[1,2,4,3] => [1,0,1,0,1,1,0,0]
=> [[1,0,0,0],[0,1,0,0],[0,0,0,1],[0,0,1,0]]
=> [1,2,4,3] => 1
[1,3,2,4] => [1,0,1,1,0,0,1,0]
=> [[1,0,0,0],[0,0,1,0],[0,1,0,0],[0,0,0,1]]
=> [1,3,2,4] => 1
[1,3,4,2] => [1,0,1,1,0,1,0,0]
=> [[1,0,0,0],[0,0,1,0],[0,1,-1,1],[0,0,1,0]]
=> [1,2,4,3] => 1
[1,4,2,3] => [1,0,1,1,1,0,0,0]
=> [[1,0,0,0],[0,0,0,1],[0,0,1,0],[0,1,0,0]]
=> [1,4,3,2] => 1
[1,4,3,2] => [1,0,1,1,1,0,0,0]
=> [[1,0,0,0],[0,0,0,1],[0,0,1,0],[0,1,0,0]]
=> [1,4,3,2] => 1
[2,1,3,4] => [1,1,0,0,1,0,1,0]
=> [[0,1,0,0],[1,0,0,0],[0,0,1,0],[0,0,0,1]]
=> [2,1,3,4] => 1
[2,1,4,3] => [1,1,0,0,1,1,0,0]
=> [[0,1,0,0],[1,0,0,0],[0,0,0,1],[0,0,1,0]]
=> [2,1,4,3] => 2
[2,3,1,4] => [1,1,0,1,0,0,1,0]
=> [[0,1,0,0],[1,-1,1,0],[0,1,0,0],[0,0,0,1]]
=> [1,3,2,4] => 1
[2,3,4,1] => [1,1,0,1,0,1,0,0]
=> [[0,1,0,0],[1,-1,1,0],[0,1,-1,1],[0,0,1,0]]
=> [1,2,4,3] => 1
[2,4,1,3] => [1,1,0,1,1,0,0,0]
=> [[0,1,0,0],[1,-1,0,1],[0,0,1,0],[0,1,0,0]]
=> [1,4,3,2] => 1
[2,4,3,1] => [1,1,0,1,1,0,0,0]
=> [[0,1,0,0],[1,-1,0,1],[0,0,1,0],[0,1,0,0]]
=> [1,4,3,2] => 1
[3,1,2,4] => [1,1,1,0,0,0,1,0]
=> [[0,0,1,0],[0,1,0,0],[1,0,0,0],[0,0,0,1]]
=> [3,2,1,4] => 1
[3,1,4,2] => [1,1,1,0,0,1,0,0]
=> [[0,0,1,0],[0,1,0,0],[1,0,-1,1],[0,0,1,0]]
=> [2,1,4,3] => 2
[3,2,1,4] => [1,1,1,0,0,0,1,0]
=> [[0,0,1,0],[0,1,0,0],[1,0,0,0],[0,0,0,1]]
=> [3,2,1,4] => 1
[3,2,4,1] => [1,1,1,0,0,1,0,0]
=> [[0,0,1,0],[0,1,0,0],[1,0,-1,1],[0,0,1,0]]
=> [2,1,4,3] => 2
[3,4,1,2] => [1,1,1,0,1,0,0,0]
=> [[0,0,1,0],[0,1,-1,1],[1,-1,1,0],[0,1,0,0]]
=> [1,4,3,2] => 1
[3,4,2,1] => [1,1,1,0,1,0,0,0]
=> [[0,0,1,0],[0,1,-1,1],[1,-1,1,0],[0,1,0,0]]
=> [1,4,3,2] => 1
[4,1,2,3] => [1,1,1,1,0,0,0,0]
=> [[0,0,0,1],[0,0,1,0],[0,1,0,0],[1,0,0,0]]
=> [4,3,2,1] => 1
[4,1,3,2] => [1,1,1,1,0,0,0,0]
=> [[0,0,0,1],[0,0,1,0],[0,1,0,0],[1,0,0,0]]
=> [4,3,2,1] => 1
[4,2,1,3] => [1,1,1,1,0,0,0,0]
=> [[0,0,0,1],[0,0,1,0],[0,1,0,0],[1,0,0,0]]
=> [4,3,2,1] => 1
[4,2,3,1] => [1,1,1,1,0,0,0,0]
=> [[0,0,0,1],[0,0,1,0],[0,1,0,0],[1,0,0,0]]
=> [4,3,2,1] => 1
[4,3,1,2] => [1,1,1,1,0,0,0,0]
=> [[0,0,0,1],[0,0,1,0],[0,1,0,0],[1,0,0,0]]
=> [4,3,2,1] => 1
[4,3,2,1] => [1,1,1,1,0,0,0,0]
=> [[0,0,0,1],[0,0,1,0],[0,1,0,0],[1,0,0,0]]
=> [4,3,2,1] => 1
[1,2,3,4,5] => [1,0,1,0,1,0,1,0,1,0]
=> [[1,0,0,0,0],[0,1,0,0,0],[0,0,1,0,0],[0,0,0,1,0],[0,0,0,0,1]]
=> [1,2,3,4,5] => 0
[1,2,3,5,4] => [1,0,1,0,1,0,1,1,0,0]
=> [[1,0,0,0,0],[0,1,0,0,0],[0,0,1,0,0],[0,0,0,0,1],[0,0,0,1,0]]
=> [1,2,3,5,4] => 1
[1,2,4,3,5] => [1,0,1,0,1,1,0,0,1,0]
=> [[1,0,0,0,0],[0,1,0,0,0],[0,0,0,1,0],[0,0,1,0,0],[0,0,0,0,1]]
=> [1,2,4,3,5] => 1
[1,2,4,5,3] => [1,0,1,0,1,1,0,1,0,0]
=> [[1,0,0,0,0],[0,1,0,0,0],[0,0,0,1,0],[0,0,1,-1,1],[0,0,0,1,0]]
=> [1,2,3,5,4] => 1
[1,2,5,3,4] => [1,0,1,0,1,1,1,0,0,0]
=> [[1,0,0,0,0],[0,1,0,0,0],[0,0,0,0,1],[0,0,0,1,0],[0,0,1,0,0]]
=> [1,2,5,4,3] => 1
[1,2,5,4,3] => [1,0,1,0,1,1,1,0,0,0]
=> [[1,0,0,0,0],[0,1,0,0,0],[0,0,0,0,1],[0,0,0,1,0],[0,0,1,0,0]]
=> [1,2,5,4,3] => 1
[1,3,2,4,5] => [1,0,1,1,0,0,1,0,1,0]
=> [[1,0,0,0,0],[0,0,1,0,0],[0,1,0,0,0],[0,0,0,1,0],[0,0,0,0,1]]
=> [1,3,2,4,5] => 1
[1,3,2,5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,0],[0,0,0,1,0,0,0,0,0],[0,0,1,0,0,0,0,0,0],[0,1,0,0,0,0,0,0,0],[1,0,0,0,0,0,0,0,0]]
=> [9,8,7,6,5,4,3,2,1] => ? = 1
[9,1,4,5,6,7,2,3,8] => [1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0]
=> [[0,0,0,0,0,0,0,0,1],[0,0,0,0,0,0,0,1,0],[0,0,0,0,0,0,1,0,0],[0,0,0,0,0,1,0,0,0],[0,0,0,0,1,0,0,0,0],[0,0,0,1,0,0,0,0,0],[0,0,1,0,0,0,0,0,0],[0,1,0,0,0,0,0,0,0],[1,0,0,0,0,0,0,0,0]]
=> [9,8,7,6,5,4,3,2,1] => ? = 1
Description
The reversal length of a permutation. A reversal in a permutation π=[π1,,πn] is a reversal of a subsequence of the form reversali,j(π)=[π1,,πi1,πj,πj1,,πi+1,πi,πj+1,,πn] for 1i<jn. This statistic is then given by the minimal number of reversals needed to sort a permutation. The reversal distance between two permutations plays an important role in studying DNA structures.
Mp00127: Permutations left-to-right-maxima to Dyck pathDyck paths
Mp00138: Dyck paths to noncrossing partitionSet partitions
Mp00217: Set partitions Wachs-White-rho Set partitions
St000251: Set partitions ⟶ ℤResult quality: 87% values known / values provided: 87%distinct values known / distinct values provided: 100%
Values
[1] => [1,0]
=> {{1}}
=> {{1}}
=> ? = 0
[1,2] => [1,0,1,0]
=> {{1},{2}}
=> {{1},{2}}
=> 0
[2,1] => [1,1,0,0]
=> {{1,2}}
=> {{1,2}}
=> 1
[1,2,3] => [1,0,1,0,1,0]
=> {{1},{2},{3}}
=> {{1},{2},{3}}
=> 0
[1,3,2] => [1,0,1,1,0,0]
=> {{1},{2,3}}
=> {{1},{2,3}}
=> 1
[2,1,3] => [1,1,0,0,1,0]
=> {{1,2},{3}}
=> {{1,2},{3}}
=> 1
[2,3,1] => [1,1,0,1,0,0]
=> {{1,3},{2}}
=> {{1,3},{2}}
=> 1
[3,1,2] => [1,1,1,0,0,0]
=> {{1,2,3}}
=> {{1,2,3}}
=> 1
[3,2,1] => [1,1,1,0,0,0]
=> {{1,2,3}}
=> {{1,2,3}}
=> 1
[1,2,3,4] => [1,0,1,0,1,0,1,0]
=> {{1},{2},{3},{4}}
=> {{1},{2},{3},{4}}
=> 0
[1,2,4,3] => [1,0,1,0,1,1,0,0]
=> {{1},{2},{3,4}}
=> {{1},{2},{3,4}}
=> 1
[1,3,2,4] => [1,0,1,1,0,0,1,0]
=> {{1},{2,3},{4}}
=> {{1},{2,3},{4}}
=> 1
[1,3,4,2] => [1,0,1,1,0,1,0,0]
=> {{1},{2,4},{3}}
=> {{1},{2,4},{3}}
=> 1
[1,4,2,3] => [1,0,1,1,1,0,0,0]
=> {{1},{2,3,4}}
=> {{1},{2,3,4}}
=> 1
[1,4,3,2] => [1,0,1,1,1,0,0,0]
=> {{1},{2,3,4}}
=> {{1},{2,3,4}}
=> 1
[2,1,3,4] => [1,1,0,0,1,0,1,0]
=> {{1,2},{3},{4}}
=> {{1,2},{3},{4}}
=> 1
[2,1,4,3] => [1,1,0,0,1,1,0,0]
=> {{1,2},{3,4}}
=> {{1,2},{3,4}}
=> 2
[2,3,1,4] => [1,1,0,1,0,0,1,0]
=> {{1,3},{2},{4}}
=> {{1,3},{2},{4}}
=> 1
[2,3,4,1] => [1,1,0,1,0,1,0,0]
=> {{1,4},{2},{3}}
=> {{1,4},{2},{3}}
=> 1
[2,4,1,3] => [1,1,0,1,1,0,0,0]
=> {{1,3,4},{2}}
=> {{1,3,4},{2}}
=> 1
[2,4,3,1] => [1,1,0,1,1,0,0,0]
=> {{1,3,4},{2}}
=> {{1,3,4},{2}}
=> 1
[3,1,2,4] => [1,1,1,0,0,0,1,0]
=> {{1,2,3},{4}}
=> {{1,2,3},{4}}
=> 1
[3,1,4,2] => [1,1,1,0,0,1,0,0]
=> {{1,4},{2,3}}
=> {{1,3},{2,4}}
=> 2
[3,2,1,4] => [1,1,1,0,0,0,1,0]
=> {{1,2,3},{4}}
=> {{1,2,3},{4}}
=> 1
[3,2,4,1] => [1,1,1,0,0,1,0,0]
=> {{1,4},{2,3}}
=> {{1,3},{2,4}}
=> 2
[3,4,1,2] => [1,1,1,0,1,0,0,0]
=> {{1,2,4},{3}}
=> {{1,2,4},{3}}
=> 1
[3,4,2,1] => [1,1,1,0,1,0,0,0]
=> {{1,2,4},{3}}
=> {{1,2,4},{3}}
=> 1
[4,1,2,3] => [1,1,1,1,0,0,0,0]
=> {{1,2,3,4}}
=> {{1,2,3,4}}
=> 1
[4,1,3,2] => [1,1,1,1,0,0,0,0]
=> {{1,2,3,4}}
=> {{1,2,3,4}}
=> 1
[4,2,1,3] => [1,1,1,1,0,0,0,0]
=> {{1,2,3,4}}
=> {{1,2,3,4}}
=> 1
[4,2,3,1] => [1,1,1,1,0,0,0,0]
=> {{1,2,3,4}}
=> {{1,2,3,4}}
=> 1
[4,3,1,2] => [1,1,1,1,0,0,0,0]
=> {{1,2,3,4}}
=> {{1,2,3,4}}
=> 1
[4,3,2,1] => [1,1,1,1,0,0,0,0]
=> {{1,2,3,4}}
=> {{1,2,3,4}}
=> 1
[1,2,3,4,5] => [1,0,1,0,1,0,1,0,1,0]
=> {{1},{2},{3},{4},{5}}
=> {{1},{2},{3},{4},{5}}
=> 0
[1,2,3,5,4] => [1,0,1,0,1,0,1,1,0,0]
=> {{1},{2},{3},{4,5}}
=> {{1},{2},{3},{4,5}}
=> 1
[1,2,4,3,5] => [1,0,1,0,1,1,0,0,1,0]
=> {{1},{2},{3,4},{5}}
=> {{1},{2},{3,4},{5}}
=> 1
[1,2,4,5,3] => [1,0,1,0,1,1,0,1,0,0]
=> {{1},{2},{3,5},{4}}
=> {{1},{2},{3,5},{4}}
=> 1
[1,2,5,3,4] => [1,0,1,0,1,1,1,0,0,0]
=> {{1},{2},{3,4,5}}
=> {{1},{2},{3,4,5}}
=> 1
[1,2,5,4,3] => [1,0,1,0,1,1,1,0,0,0]
=> {{1},{2},{3,4,5}}
=> {{1},{2},{3,4,5}}
=> 1
[1,3,2,4,5] => [1,0,1,1,0,0,1,0,1,0]
=> {{1},{2,3},{4},{5}}
=> {{1},{2,3},{4},{5}}
=> 1
[1,3,2,5,4] => [1,0,1,1,0,0,1,1,0,0]
=> {{1},{2,3},{4,5}}
=> {{1},{2,3},{4,5}}
=> 2
[1,3,4,2,5] => [1,0,1,1,0,1,0,0,1,0]
=> {{1},{2,4},{3},{5}}
=> {{1},{2,4},{3},{5}}
=> 1
[1,3,4,5,2] => [1,0,1,1,0,1,0,1,0,0]
=> {{1},{2,5},{3},{4}}
=> {{1},{2,5},{3},{4}}
=> 1
[1,3,5,2,4] => [1,0,1,1,0,1,1,0,0,0]
=> {{1},{2,4,5},{3}}
=> {{1},{2,4,5},{3}}
=> 1
[1,3,5,4,2] => [1,0,1,1,0,1,1,0,0,0]
=> {{1},{2,4,5},{3}}
=> {{1},{2,4,5},{3}}
=> 1
[1,4,2,3,5] => [1,0,1,1,1,0,0,0,1,0]
=> {{1},{2,3,4},{5}}
=> {{1},{2,3,4},{5}}
=> 1
[1,4,2,5,3] => [1,0,1,1,1,0,0,1,0,0]
=> {{1},{2,5},{3,4}}
=> {{1},{2,4},{3,5}}
=> 2
[1,4,3,2,5] => [1,0,1,1,1,0,0,0,1,0]
=> {{1},{2,3,4},{5}}
=> {{1},{2,3,4},{5}}
=> 1
[1,4,3,5,2] => [1,0,1,1,1,0,0,1,0,0]
=> {{1},{2,5},{3,4}}
=> {{1},{2,4},{3,5}}
=> 2
[1,4,5,2,3] => [1,0,1,1,1,0,1,0,0,0]
=> {{1},{2,3,5},{4}}
=> {{1},{2,3,5},{4}}
=> 1
[1,4,5,3,2] => [1,0,1,1,1,0,1,0,0,0]
=> {{1},{2,3,5},{4}}
=> {{1},{2,3,5},{4}}
=> 1
[6,5,7,4,8,3,2,1] => [1,1,1,1,1,1,0,0,1,0,0,1,0,0,0,0]
=> {{1,2,3,8},{4,7},{5,6}}
=> {{1,2,3,6},{4,7},{5,8}}
=> ? = 3
[6,5,7,4,8,2,3,1] => [1,1,1,1,1,1,0,0,1,0,0,1,0,0,0,0]
=> {{1,2,3,8},{4,7},{5,6}}
=> {{1,2,3,6},{4,7},{5,8}}
=> ? = 3
[6,5,7,4,3,2,8,1] => [1,1,1,1,1,1,0,0,1,0,0,0,0,1,0,0]
=> {{1,8},{2,3,4,7},{5,6}}
=> {{1,3,4,6},{2,7},{5,8}}
=> ? = 3
[6,5,7,3,4,2,8,1] => [1,1,1,1,1,1,0,0,1,0,0,0,0,1,0,0]
=> {{1,8},{2,3,4,7},{5,6}}
=> {{1,3,4,6},{2,7},{5,8}}
=> ? = 3
[6,5,7,4,2,3,8,1] => [1,1,1,1,1,1,0,0,1,0,0,0,0,1,0,0]
=> {{1,8},{2,3,4,7},{5,6}}
=> {{1,3,4,6},{2,7},{5,8}}
=> ? = 3
[6,5,7,3,2,4,8,1] => [1,1,1,1,1,1,0,0,1,0,0,0,0,1,0,0]
=> {{1,8},{2,3,4,7},{5,6}}
=> {{1,3,4,6},{2,7},{5,8}}
=> ? = 3
[3,2,4,5,6,7,8,1] => [1,1,1,0,0,1,0,1,0,1,0,1,0,1,0,0]
=> {{1,8},{2,3},{4},{5},{6},{7}}
=> {{1,3},{2,8},{4},{5},{6},{7}}
=> ? = 2
[2,3,4,5,6,7,8,1] => [1,1,0,1,0,1,0,1,0,1,0,1,0,1,0,0]
=> {{1,8},{2},{3},{4},{5},{6},{7}}
=> {{1,8},{2},{3},{4},{5},{6},{7}}
=> ? = 1
[6,5,7,4,8,3,1,2] => [1,1,1,1,1,1,0,0,1,0,0,1,0,0,0,0]
=> {{1,2,3,8},{4,7},{5,6}}
=> {{1,2,3,6},{4,7},{5,8}}
=> ? = 3
[6,5,7,4,8,2,1,3] => [1,1,1,1,1,1,0,0,1,0,0,1,0,0,0,0]
=> {{1,2,3,8},{4,7},{5,6}}
=> {{1,2,3,6},{4,7},{5,8}}
=> ? = 3
[6,5,7,4,8,1,2,3] => [1,1,1,1,1,1,0,0,1,0,0,1,0,0,0,0]
=> {{1,2,3,8},{4,7},{5,6}}
=> {{1,2,3,6},{4,7},{5,8}}
=> ? = 3
[3,4,2,5,6,7,1,8] => [1,1,1,0,1,0,0,1,0,1,0,1,0,0,1,0]
=> {{1,7},{2,4},{3},{5},{6},{8}}
=> {{1,4},{2,7},{3},{5},{6},{8}}
=> ? = 2
[2,3,4,5,6,7,1,8] => [1,1,0,1,0,1,0,1,0,1,0,1,0,0,1,0]
=> {{1,7},{2},{3},{4},{5},{6},{8}}
=> {{1,7},{2},{3},{4},{5},{6},{8}}
=> ? = 1
[6,5,4,3,2,1,7,8] => [1,1,1,1,1,1,0,0,0,0,0,0,1,0,1,0]
=> {{1,2,3,4,5,6},{7},{8}}
=> {{1,2,3,4,5,6},{7},{8}}
=> ? = 1
[6,5,3,4,2,1,7,8] => [1,1,1,1,1,1,0,0,0,0,0,0,1,0,1,0]
=> {{1,2,3,4,5,6},{7},{8}}
=> {{1,2,3,4,5,6},{7},{8}}
=> ? = 1
[6,3,4,5,2,1,7,8] => [1,1,1,1,1,1,0,0,0,0,0,0,1,0,1,0]
=> {{1,2,3,4,5,6},{7},{8}}
=> {{1,2,3,4,5,6},{7},{8}}
=> ? = 1
[6,5,2,3,4,1,7,8] => [1,1,1,1,1,1,0,0,0,0,0,0,1,0,1,0]
=> {{1,2,3,4,5,6},{7},{8}}
=> {{1,2,3,4,5,6},{7},{8}}
=> ? = 1
[6,4,3,2,5,1,7,8] => [1,1,1,1,1,1,0,0,0,0,0,0,1,0,1,0]
=> {{1,2,3,4,5,6},{7},{8}}
=> {{1,2,3,4,5,6},{7},{8}}
=> ? = 1
[6,2,3,4,5,1,7,8] => [1,1,1,1,1,1,0,0,0,0,0,0,1,0,1,0]
=> {{1,2,3,4,5,6},{7},{8}}
=> {{1,2,3,4,5,6},{7},{8}}
=> ? = 1
[3,4,5,2,6,1,7,8] => [1,1,1,0,1,0,1,0,0,1,0,0,1,0,1,0]
=> {{1,6},{2,5},{3},{4},{7},{8}}
=> {{1,5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
=> {{1,2,3,4,5},{6},{7},{8}}
=> ? = 1
[5,3,4,2,1,6,7,8] => [1,1,1,1,1,0,0,0,0,0,1,0,1,0,1,0]
=> {{1,2,3,4,5},{6},{7},{8}}
=> {{1,2,3,4,5},{6},{7},{8}}
=> ? = 1
[5,4,2,3,1,6,7,8] => [1,1,1,1,1,0,0,0,0,0,1,0,1,0,1,0]
=> {{1,2,3,4,5},{6},{7},{8}}
=> {{1,2,3,4,5},{6},{7},{8}}
=> ? = 1
[5,3,2,4,1,6,7,8] => [1,1,1,1,1,0,0,0,0,0,1,0,1,0,1,0]
=> {{1,2,3,4,5},{6},{7},{8}}
=> {{1,2,3,4,5},{6},{7},{8}}
=> ? = 1
[5,2,3,4,1,6,7,8] => [1,1,1,1,1,0,0,0,0,0,1,0,1,0,1,0]
=> {{1,2,3,4,5},{6},{7},{8}}
=> {{1,2,3,4,5},{6},{7},{8}}
=> ? = 1
[2,3,4,5,1,6,7,8] => [1,1,0,1,0,1,0,1,0,0,1,0,1,0,1,0]
=> {{1,5},{2},{3},{4},{6},{7},{8}}
=> {{1,5},{2},{3},{4},{6},{7},{8}}
=> ? = 1
[5,4,3,1,2,6,7,8] => [1,1,1,1,1,0,0,0,0,0,1,0,1,0,1,0]
=> {{1,2,3,4,5},{6},{7},{8}}
=> {{1,2,3,4,5},{6},{7},{8}}
=> ? = 1
[5,3,4,1,2,6,7,8] => [1,1,1,1,1,0,0,0,0,0,1,0,1,0,1,0]
=> {{1,2,3,4,5},{6},{7},{8}}
=> {{1,2,3,4,5},{6},{7},{8}}
=> ? = 1
[5,4,2,1,3,6,7,8] => [1,1,1,1,1,0,0,0,0,0,1,0,1,0,1,0]
=> {{1,2,3,4,5},{6},{7},{8}}
=> {{1,2,3,4,5},{6},{7},{8}}
=> ? = 1
[5,4,1,2,3,6,7,8] => [1,1,1,1,1,0,0,0,0,0,1,0,1,0,1,0]
=> {{1,2,3,4,5},{6},{7},{8}}
=> {{1,2,3,4,5},{6},{7},{8}}
=> ? = 1
[5,3,2,1,4,6,7,8] => [1,1,1,1,1,0,0,0,0,0,1,0,1,0,1,0]
=> {{1,2,3,4,5},{6},{7},{8}}
=> {{1,2,3,4,5},{6},{7},{8}}
=> ? = 1
Description
The number of nonsingleton blocks of a set partition.
Mp00069: Permutations complementPermutations
Mp00068: Permutations Simion-Schmidt mapPermutations
Mp00204: Permutations LLPSInteger partitions
St000010: Integer partitions ⟶ ℤResult quality: 79% values known / values provided: 79%distinct values known / distinct values provided: 100%
Values
[1] => [1] => [1] => [1]
=> 1 = 0 + 1
[1,2] => [2,1] => [2,1] => [2]
=> 1 = 0 + 1
[2,1] => [1,2] => [1,2] => [1,1]
=> 2 = 1 + 1
[1,2,3] => [3,2,1] => [3,2,1] => [3]
=> 1 = 0 + 1
[1,3,2] => [3,1,2] => [3,1,2] => [2,1]
=> 2 = 1 + 1
[2,1,3] => [2,3,1] => [2,3,1] => [2,1]
=> 2 = 1 + 1
[2,3,1] => [2,1,3] => [2,1,3] => [2,1]
=> 2 = 1 + 1
[3,1,2] => [1,3,2] => [1,3,2] => [2,1]
=> 2 = 1 + 1
[3,2,1] => [1,2,3] => [1,3,2] => [2,1]
=> 2 = 1 + 1
[1,2,3,4] => [4,3,2,1] => [4,3,2,1] => [4]
=> 1 = 0 + 1
[1,2,4,3] => [4,3,1,2] => [4,3,1,2] => [3,1]
=> 2 = 1 + 1
[1,3,2,4] => [4,2,3,1] => [4,2,3,1] => [3,1]
=> 2 = 1 + 1
[1,3,4,2] => [4,2,1,3] => [4,2,1,3] => [3,1]
=> 2 = 1 + 1
[1,4,2,3] => [4,1,3,2] => [4,1,3,2] => [3,1]
=> 2 = 1 + 1
[1,4,3,2] => [4,1,2,3] => [4,1,3,2] => [3,1]
=> 2 = 1 + 1
[2,1,3,4] => [3,4,2,1] => [3,4,2,1] => [3,1]
=> 2 = 1 + 1
[2,1,4,3] => [3,4,1,2] => [3,4,1,2] => [2,1,1]
=> 3 = 2 + 1
[2,3,1,4] => [3,2,4,1] => [3,2,4,1] => [3,1]
=> 2 = 1 + 1
[2,3,4,1] => [3,2,1,4] => [3,2,1,4] => [3,1]
=> 2 = 1 + 1
[2,4,1,3] => [3,1,4,2] => [3,1,4,2] => [2,2]
=> 2 = 1 + 1
[2,4,3,1] => [3,1,2,4] => [3,1,4,2] => [2,2]
=> 2 = 1 + 1
[3,1,2,4] => [2,4,3,1] => [2,4,3,1] => [3,1]
=> 2 = 1 + 1
[3,1,4,2] => [2,4,1,3] => [2,4,1,3] => [2,1,1]
=> 3 = 2 + 1
[3,2,1,4] => [2,3,4,1] => [2,4,3,1] => [3,1]
=> 2 = 1 + 1
[3,2,4,1] => [2,3,1,4] => [2,4,1,3] => [2,1,1]
=> 3 = 2 + 1
[3,4,1,2] => [2,1,4,3] => [2,1,4,3] => [2,2]
=> 2 = 1 + 1
[3,4,2,1] => [2,1,3,4] => [2,1,4,3] => [2,2]
=> 2 = 1 + 1
[4,1,2,3] => [1,4,3,2] => [1,4,3,2] => [3,1]
=> 2 = 1 + 1
[4,1,3,2] => [1,4,2,3] => [1,4,3,2] => [3,1]
=> 2 = 1 + 1
[4,2,1,3] => [1,3,4,2] => [1,4,3,2] => [3,1]
=> 2 = 1 + 1
[4,2,3,1] => [1,3,2,4] => [1,4,3,2] => [3,1]
=> 2 = 1 + 1
[4,3,1,2] => [1,2,4,3] => [1,4,3,2] => [3,1]
=> 2 = 1 + 1
[4,3,2,1] => [1,2,3,4] => [1,4,3,2] => [3,1]
=> 2 = 1 + 1
[1,2,3,4,5] => [5,4,3,2,1] => [5,4,3,2,1] => [5]
=> 1 = 0 + 1
[1,2,3,5,4] => [5,4,3,1,2] => [5,4,3,1,2] => [4,1]
=> 2 = 1 + 1
[1,2,4,3,5] => [5,4,2,3,1] => [5,4,2,3,1] => [4,1]
=> 2 = 1 + 1
[1,2,4,5,3] => [5,4,2,1,3] => [5,4,2,1,3] => [4,1]
=> 2 = 1 + 1
[1,2,5,3,4] => [5,4,1,3,2] => [5,4,1,3,2] => [4,1]
=> 2 = 1 + 1
[1,2,5,4,3] => [5,4,1,2,3] => [5,4,1,3,2] => [4,1]
=> 2 = 1 + 1
[1,3,2,4,5] => [5,3,4,2,1] => [5,3,4,2,1] => [4,1]
=> 2 = 1 + 1
[1,3,2,5,4] => [5,3,4,1,2] => [5,3,4,1,2] => [3,1,1]
=> 3 = 2 + 1
[1,3,4,2,5] => [5,3,2,4,1] => [5,3,2,4,1] => [4,1]
=> 2 = 1 + 1
[1,3,4,5,2] => [5,3,2,1,4] => [5,3,2,1,4] => [4,1]
=> 2 = 1 + 1
[1,3,5,2,4] => [5,3,1,4,2] => [5,3,1,4,2] => [3,2]
=> 2 = 1 + 1
[1,3,5,4,2] => [5,3,1,2,4] => [5,3,1,4,2] => [3,2]
=> 2 = 1 + 1
[1,4,2,3,5] => [5,2,4,3,1] => [5,2,4,3,1] => [4,1]
=> 2 = 1 + 1
[1,4,2,5,3] => [5,2,4,1,3] => [5,2,4,1,3] => [3,1,1]
=> 3 = 2 + 1
[1,4,3,2,5] => [5,2,3,4,1] => [5,2,4,3,1] => [4,1]
=> 2 = 1 + 1
[1,4,3,5,2] => [5,2,3,1,4] => [5,2,4,1,3] => [3,1,1]
=> 3 = 2 + 1
[1,4,5,2,3] => [5,2,1,4,3] => [5,2,1,4,3] => [3,2]
=> 2 = 1 + 1
[8,6,4,5,7,3,2,1] => [1,3,5,4,2,6,7,8] => ? => ?
=> ? = 1 + 1
[8,4,5,6,7,3,2,1] => [1,5,4,3,2,6,7,8] => ? => ?
=> ? = 1 + 1
[7,6,8,5,3,4,2,1] => [2,3,1,4,6,5,7,8] => ? => ?
=> ? = 2 + 1
[8,5,6,7,3,4,2,1] => [1,4,3,2,6,5,7,8] => ? => ?
=> ? = 1 + 1
[8,7,6,4,3,5,2,1] => [1,2,3,5,6,4,7,8] => ? => ?
=> ? = 1 + 1
[7,8,6,4,3,5,2,1] => [2,1,3,5,6,4,7,8] => ? => ?
=> ? = 1 + 1
[8,6,7,4,3,5,2,1] => [1,3,2,5,6,4,7,8] => ? => ?
=> ? = 1 + 1
[8,7,6,3,4,5,2,1] => [1,2,3,6,5,4,7,8] => ? => ?
=> ? = 1 + 1
[7,8,6,3,4,5,2,1] => [2,1,3,6,5,4,7,8] => ? => ?
=> ? = 1 + 1
[8,6,7,3,4,5,2,1] => [1,3,2,6,5,4,7,8] => ? => ?
=> ? = 1 + 1
[7,8,5,4,3,6,2,1] => [2,1,4,5,6,3,7,8] => ? => ?
=> ? = 1 + 1
[8,7,4,5,3,6,2,1] => [1,2,5,4,6,3,7,8] => ? => ?
=> ? = 1 + 1
[7,8,3,4,5,6,2,1] => [2,1,6,5,4,3,7,8] => ? => ?
=> ? = 1 + 1
[8,5,3,4,6,7,2,1] => [1,4,6,5,3,2,7,8] => ? => ?
=> ? = 1 + 1
[7,5,6,4,3,8,2,1] => [2,4,3,5,6,1,7,8] => ? => ?
=> ? = 2 + 1
[7,5,4,6,3,8,2,1] => [2,4,5,3,6,1,7,8] => ? => ?
=> ? = 2 + 1
[7,4,5,6,3,8,2,1] => [2,5,4,3,6,1,7,8] => ? => ?
=> ? = 2 + 1
[7,3,4,5,6,8,2,1] => [2,6,5,4,3,1,7,8] => ? => ?
=> ? = 2 + 1
[8,6,5,7,4,2,3,1] => [1,3,4,2,5,7,6,8] => ? => ?
=> ? = 1 + 1
[8,5,6,7,4,2,3,1] => [1,4,3,2,5,7,6,8] => ? => ?
=> ? = 1 + 1
[7,5,6,8,4,2,3,1] => [2,4,3,1,5,7,6,8] => ? => ?
=> ? = 2 + 1
[8,7,4,5,6,2,3,1] => [1,2,5,4,3,7,6,8] => ? => ?
=> ? = 1 + 1
[8,4,5,6,7,2,3,1] => [1,5,4,3,2,7,6,8] => ? => ?
=> ? = 1 + 1
[8,6,7,5,2,3,4,1] => [1,3,2,4,7,6,5,8] => ? => ?
=> ? = 1 + 1
[7,6,8,5,2,3,4,1] => [2,3,1,4,7,6,5,8] => ? => ?
=> ? = 2 + 1
[8,7,5,6,2,3,4,1] => [1,2,4,3,7,6,5,8] => ? => ?
=> ? = 1 + 1
[7,8,5,6,2,3,4,1] => [2,1,4,3,7,6,5,8] => ? => ?
=> ? = 1 + 1
[8,6,5,7,2,3,4,1] => [1,3,4,2,7,6,5,8] => ? => ?
=> ? = 1 + 1
[7,8,6,4,3,2,5,1] => [2,1,3,5,6,7,4,8] => ? => ?
=> ? = 1 + 1
[7,8,6,3,4,2,5,1] => [2,1,3,6,5,7,4,8] => ? => ?
=> ? = 1 + 1
[7,6,8,4,2,3,5,1] => [2,3,1,5,7,6,4,8] => ? => ?
=> ? = 2 + 1
[8,6,7,3,2,4,5,1] => [1,3,2,6,7,5,4,8] => ? => ?
=> ? = 1 + 1
[7,8,6,2,3,4,5,1] => [2,1,3,7,6,5,4,8] => ? => ?
=> ? = 1 + 1
[8,6,7,2,3,4,5,1] => [1,3,2,7,6,5,4,8] => ? => ?
=> ? = 1 + 1
[7,6,8,2,3,4,5,1] => [2,3,1,7,6,5,4,8] => ? => ?
=> ? = 2 + 1
[7,8,5,3,4,2,6,1] => [2,1,4,6,5,7,3,8] => ? => ?
=> ? = 1 + 1
[7,8,4,3,5,2,6,1] => [2,1,5,6,4,7,3,8] => ? => ?
=> ? = 1 + 1
[8,7,5,4,2,3,6,1] => [1,2,4,5,7,6,3,8] => ? => ?
=> ? = 1 + 1
[7,8,3,4,2,5,6,1] => [2,1,6,5,7,4,3,8] => ? => ?
=> ? = 1 + 1
[7,8,4,2,3,5,6,1] => [2,1,5,7,6,4,3,8] => ? => ?
=> ? = 1 + 1
[8,6,4,5,3,2,7,1] => [1,3,5,4,6,7,2,8] => ? => ?
=> ? = 1 + 1
[8,4,3,5,6,2,7,1] => [1,5,6,4,3,7,2,8] => ? => ?
=> ? = 1 + 1
[8,3,4,5,6,2,7,1] => [1,6,5,4,3,7,2,8] => ? => ?
=> ? = 1 + 1
[8,3,4,5,2,6,7,1] => [1,6,5,4,7,3,2,8] => ? => ?
=> ? = 1 + 1
[8,5,4,2,3,6,7,1] => [1,4,5,7,6,3,2,8] => ? => ?
=> ? = 1 + 1
[8,5,2,3,4,6,7,1] => [1,4,7,6,5,3,2,8] => ? => ?
=> ? = 1 + 1
[8,4,2,3,5,6,7,1] => [1,5,7,6,4,3,2,8] => ? => ?
=> ? = 1 + 1
[7,6,3,4,5,2,8,1] => [2,3,6,5,4,7,1,8] => ? => ?
=> ? = 2 + 1
[7,5,3,4,6,2,8,1] => [2,4,6,5,3,7,1,8] => ? => ?
=> ? = 2 + 1
[7,3,4,5,6,2,8,1] => [2,6,5,4,3,7,1,8] => ? => ?
=> ? = 2 + 1
Description
The length of the partition.
Matching statistic: St000507
Mp00069: Permutations complementPermutations
Mp00068: Permutations Simion-Schmidt mapPermutations
Mp00070: Permutations Robinson-Schensted recording tableauStandard tableaux
St000507: Standard tableaux ⟶ ℤResult quality: 79% values known / values provided: 79%distinct values known / distinct values provided: 100%
Values
[1] => [1] => [1] => [[1]]
=> 1 = 0 + 1
[1,2] => [2,1] => [2,1] => [[1],[2]]
=> 1 = 0 + 1
[2,1] => [1,2] => [1,2] => [[1,2]]
=> 2 = 1 + 1
[1,2,3] => [3,2,1] => [3,2,1] => [[1],[2],[3]]
=> 1 = 0 + 1
[1,3,2] => [3,1,2] => [3,1,2] => [[1,3],[2]]
=> 2 = 1 + 1
[2,1,3] => [2,3,1] => [2,3,1] => [[1,2],[3]]
=> 2 = 1 + 1
[2,3,1] => [2,1,3] => [2,1,3] => [[1,3],[2]]
=> 2 = 1 + 1
[3,1,2] => [1,3,2] => [1,3,2] => [[1,2],[3]]
=> 2 = 1 + 1
[3,2,1] => [1,2,3] => [1,3,2] => [[1,2],[3]]
=> 2 = 1 + 1
[1,2,3,4] => [4,3,2,1] => [4,3,2,1] => [[1],[2],[3],[4]]
=> 1 = 0 + 1
[1,2,4,3] => [4,3,1,2] => [4,3,1,2] => [[1,4],[2],[3]]
=> 2 = 1 + 1
[1,3,2,4] => [4,2,3,1] => [4,2,3,1] => [[1,3],[2],[4]]
=> 2 = 1 + 1
[1,3,4,2] => [4,2,1,3] => [4,2,1,3] => [[1,4],[2],[3]]
=> 2 = 1 + 1
[1,4,2,3] => [4,1,3,2] => [4,1,3,2] => [[1,3],[2],[4]]
=> 2 = 1 + 1
[1,4,3,2] => [4,1,2,3] => [4,1,3,2] => [[1,3],[2],[4]]
=> 2 = 1 + 1
[2,1,3,4] => [3,4,2,1] => [3,4,2,1] => [[1,2],[3],[4]]
=> 2 = 1 + 1
[2,1,4,3] => [3,4,1,2] => [3,4,1,2] => [[1,2],[3,4]]
=> 3 = 2 + 1
[2,3,1,4] => [3,2,4,1] => [3,2,4,1] => [[1,3],[2],[4]]
=> 2 = 1 + 1
[2,3,4,1] => [3,2,1,4] => [3,2,1,4] => [[1,4],[2],[3]]
=> 2 = 1 + 1
[2,4,1,3] => [3,1,4,2] => [3,1,4,2] => [[1,3],[2,4]]
=> 2 = 1 + 1
[2,4,3,1] => [3,1,2,4] => [3,1,4,2] => [[1,3],[2,4]]
=> 2 = 1 + 1
[3,1,2,4] => [2,4,3,1] => [2,4,3,1] => [[1,2],[3],[4]]
=> 2 = 1 + 1
[3,1,4,2] => [2,4,1,3] => [2,4,1,3] => [[1,2],[3,4]]
=> 3 = 2 + 1
[3,2,1,4] => [2,3,4,1] => [2,4,3,1] => [[1,2],[3],[4]]
=> 2 = 1 + 1
[3,2,4,1] => [2,3,1,4] => [2,4,1,3] => [[1,2],[3,4]]
=> 3 = 2 + 1
[3,4,1,2] => [2,1,4,3] => [2,1,4,3] => [[1,3],[2,4]]
=> 2 = 1 + 1
[3,4,2,1] => [2,1,3,4] => [2,1,4,3] => [[1,3],[2,4]]
=> 2 = 1 + 1
[4,1,2,3] => [1,4,3,2] => [1,4,3,2] => [[1,2],[3],[4]]
=> 2 = 1 + 1
[4,1,3,2] => [1,4,2,3] => [1,4,3,2] => [[1,2],[3],[4]]
=> 2 = 1 + 1
[4,2,1,3] => [1,3,4,2] => [1,4,3,2] => [[1,2],[3],[4]]
=> 2 = 1 + 1
[4,2,3,1] => [1,3,2,4] => [1,4,3,2] => [[1,2],[3],[4]]
=> 2 = 1 + 1
[4,3,1,2] => [1,2,4,3] => [1,4,3,2] => [[1,2],[3],[4]]
=> 2 = 1 + 1
[4,3,2,1] => [1,2,3,4] => [1,4,3,2] => [[1,2],[3],[4]]
=> 2 = 1 + 1
[1,2,3,4,5] => [5,4,3,2,1] => [5,4,3,2,1] => [[1],[2],[3],[4],[5]]
=> 1 = 0 + 1
[1,2,3,5,4] => [5,4,3,1,2] => [5,4,3,1,2] => [[1,5],[2],[3],[4]]
=> 2 = 1 + 1
[1,2,4,3,5] => [5,4,2,3,1] => [5,4,2,3,1] => [[1,4],[2],[3],[5]]
=> 2 = 1 + 1
[1,2,4,5,3] => [5,4,2,1,3] => [5,4,2,1,3] => [[1,5],[2],[3],[4]]
=> 2 = 1 + 1
[1,2,5,3,4] => [5,4,1,3,2] => [5,4,1,3,2] => [[1,4],[2],[3],[5]]
=> 2 = 1 + 1
[1,2,5,4,3] => [5,4,1,2,3] => [5,4,1,3,2] => [[1,4],[2],[3],[5]]
=> 2 = 1 + 1
[1,3,2,4,5] => [5,3,4,2,1] => [5,3,4,2,1] => [[1,3],[2],[4],[5]]
=> 2 = 1 + 1
[1,3,2,5,4] => [5,3,4,1,2] => [5,3,4,1,2] => [[1,3],[2,5],[4]]
=> 3 = 2 + 1
[1,3,4,2,5] => [5,3,2,4,1] => [5,3,2,4,1] => [[1,4],[2],[3],[5]]
=> 2 = 1 + 1
[1,3,4,5,2] => [5,3,2,1,4] => [5,3,2,1,4] => [[1,5],[2],[3],[4]]
=> 2 = 1 + 1
[1,3,5,2,4] => [5,3,1,4,2] => [5,3,1,4,2] => [[1,4],[2,5],[3]]
=> 2 = 1 + 1
[1,3,5,4,2] => [5,3,1,2,4] => [5,3,1,4,2] => [[1,4],[2,5],[3]]
=> 2 = 1 + 1
[1,4,2,3,5] => [5,2,4,3,1] => [5,2,4,3,1] => [[1,3],[2],[4],[5]]
=> 2 = 1 + 1
[1,4,2,5,3] => [5,2,4,1,3] => [5,2,4,1,3] => [[1,3],[2,5],[4]]
=> 3 = 2 + 1
[1,4,3,2,5] => [5,2,3,4,1] => [5,2,4,3,1] => [[1,3],[2],[4],[5]]
=> 2 = 1 + 1
[1,4,3,5,2] => [5,2,3,1,4] => [5,2,4,1,3] => [[1,3],[2,5],[4]]
=> 3 = 2 + 1
[1,4,5,2,3] => [5,2,1,4,3] => [5,2,1,4,3] => [[1,4],[2,5],[3]]
=> 2 = 1 + 1
[8,6,4,5,7,3,2,1] => [1,3,5,4,2,6,7,8] => ? => ?
=> ? = 1 + 1
[8,4,5,6,7,3,2,1] => [1,5,4,3,2,6,7,8] => ? => ?
=> ? = 1 + 1
[7,6,8,5,3,4,2,1] => [2,3,1,4,6,5,7,8] => ? => ?
=> ? = 2 + 1
[8,5,6,7,3,4,2,1] => [1,4,3,2,6,5,7,8] => ? => ?
=> ? = 1 + 1
[8,7,6,4,3,5,2,1] => [1,2,3,5,6,4,7,8] => ? => ?
=> ? = 1 + 1
[7,8,6,4,3,5,2,1] => [2,1,3,5,6,4,7,8] => ? => ?
=> ? = 1 + 1
[8,6,7,4,3,5,2,1] => [1,3,2,5,6,4,7,8] => ? => ?
=> ? = 1 + 1
[8,7,6,3,4,5,2,1] => [1,2,3,6,5,4,7,8] => ? => ?
=> ? = 1 + 1
[7,8,6,3,4,5,2,1] => [2,1,3,6,5,4,7,8] => ? => ?
=> ? = 1 + 1
[8,6,7,3,4,5,2,1] => [1,3,2,6,5,4,7,8] => ? => ?
=> ? = 1 + 1
[7,8,5,4,3,6,2,1] => [2,1,4,5,6,3,7,8] => ? => ?
=> ? = 1 + 1
[8,7,4,5,3,6,2,1] => [1,2,5,4,6,3,7,8] => ? => ?
=> ? = 1 + 1
[7,8,3,4,5,6,2,1] => [2,1,6,5,4,3,7,8] => ? => ?
=> ? = 1 + 1
[8,5,3,4,6,7,2,1] => [1,4,6,5,3,2,7,8] => ? => ?
=> ? = 1 + 1
[7,5,6,4,3,8,2,1] => [2,4,3,5,6,1,7,8] => ? => ?
=> ? = 2 + 1
[7,5,4,6,3,8,2,1] => [2,4,5,3,6,1,7,8] => ? => ?
=> ? = 2 + 1
[7,4,5,6,3,8,2,1] => [2,5,4,3,6,1,7,8] => ? => ?
=> ? = 2 + 1
[7,3,4,5,6,8,2,1] => [2,6,5,4,3,1,7,8] => ? => ?
=> ? = 2 + 1
[8,6,5,7,4,2,3,1] => [1,3,4,2,5,7,6,8] => ? => ?
=> ? = 1 + 1
[8,5,6,7,4,2,3,1] => [1,4,3,2,5,7,6,8] => ? => ?
=> ? = 1 + 1
[7,5,6,8,4,2,3,1] => [2,4,3,1,5,7,6,8] => ? => ?
=> ? = 2 + 1
[8,7,4,5,6,2,3,1] => [1,2,5,4,3,7,6,8] => ? => ?
=> ? = 1 + 1
[8,4,5,6,7,2,3,1] => [1,5,4,3,2,7,6,8] => ? => ?
=> ? = 1 + 1
[8,6,7,5,2,3,4,1] => [1,3,2,4,7,6,5,8] => ? => ?
=> ? = 1 + 1
[7,6,8,5,2,3,4,1] => [2,3,1,4,7,6,5,8] => ? => ?
=> ? = 2 + 1
[8,7,5,6,2,3,4,1] => [1,2,4,3,7,6,5,8] => ? => ?
=> ? = 1 + 1
[7,8,5,6,2,3,4,1] => [2,1,4,3,7,6,5,8] => ? => ?
=> ? = 1 + 1
[8,6,5,7,2,3,4,1] => [1,3,4,2,7,6,5,8] => ? => ?
=> ? = 1 + 1
[7,8,6,4,3,2,5,1] => [2,1,3,5,6,7,4,8] => ? => ?
=> ? = 1 + 1
[7,8,6,3,4,2,5,1] => [2,1,3,6,5,7,4,8] => ? => ?
=> ? = 1 + 1
[7,6,8,4,2,3,5,1] => [2,3,1,5,7,6,4,8] => ? => ?
=> ? = 2 + 1
[8,6,7,3,2,4,5,1] => [1,3,2,6,7,5,4,8] => ? => ?
=> ? = 1 + 1
[7,8,6,2,3,4,5,1] => [2,1,3,7,6,5,4,8] => ? => ?
=> ? = 1 + 1
[8,6,7,2,3,4,5,1] => [1,3,2,7,6,5,4,8] => ? => ?
=> ? = 1 + 1
[7,6,8,2,3,4,5,1] => [2,3,1,7,6,5,4,8] => ? => ?
=> ? = 2 + 1
[7,8,5,3,4,2,6,1] => [2,1,4,6,5,7,3,8] => ? => ?
=> ? = 1 + 1
[7,8,4,3,5,2,6,1] => [2,1,5,6,4,7,3,8] => ? => ?
=> ? = 1 + 1
[8,7,5,4,2,3,6,1] => [1,2,4,5,7,6,3,8] => ? => ?
=> ? = 1 + 1
[7,8,3,4,2,5,6,1] => [2,1,6,5,7,4,3,8] => ? => ?
=> ? = 1 + 1
[7,8,4,2,3,5,6,1] => [2,1,5,7,6,4,3,8] => ? => ?
=> ? = 1 + 1
[8,6,4,5,3,2,7,1] => [1,3,5,4,6,7,2,8] => ? => ?
=> ? = 1 + 1
[8,4,3,5,6,2,7,1] => [1,5,6,4,3,7,2,8] => ? => ?
=> ? = 1 + 1
[8,3,4,5,6,2,7,1] => [1,6,5,4,3,7,2,8] => ? => ?
=> ? = 1 + 1
[8,3,4,5,2,6,7,1] => [1,6,5,4,7,3,2,8] => ? => ?
=> ? = 1 + 1
[8,5,4,2,3,6,7,1] => [1,4,5,7,6,3,2,8] => ? => ?
=> ? = 1 + 1
[8,5,2,3,4,6,7,1] => [1,4,7,6,5,3,2,8] => ? => ?
=> ? = 1 + 1
[8,4,2,3,5,6,7,1] => [1,5,7,6,4,3,2,8] => ? => ?
=> ? = 1 + 1
[7,6,3,4,5,2,8,1] => [2,3,6,5,4,7,1,8] => ? => ?
=> ? = 2 + 1
[7,5,3,4,6,2,8,1] => [2,4,6,5,3,7,1,8] => ? => ?
=> ? = 2 + 1
[7,3,4,5,6,2,8,1] => [2,6,5,4,3,7,1,8] => ? => ?
=> ? = 2 + 1
Description
The number of ascents of a standard tableau. Entry i of a standard Young tableau is an '''ascent''' if i+1 appears to the right or above i in the tableau (with respect to the English notation for tableaux).
The following 53 statistics, ordered by result quality, also match your data. Click on any of them to see the details.
St000834The number of right outer peaks of a permutation. St001280The number of parts of an integer partition that are at least two. St000386The number of factors DDU in a Dyck path. St000703The number of deficiencies of a permutation. St000245The number of ascents of a permutation. St000672The number of minimal elements in Bruhat order not less than the permutation. St000659The number of rises of length at least 2 of a Dyck path. St000919The number of maximal left branches of a binary tree. St001269The sum of the minimum of the number of exceedances and deficiencies in each cycle of a permutation. St001489The maximum of the number of descents and the number of inverse descents. St001665The number of pure excedances of a permutation. St001726The number of visible inversions of a permutation. St001729The number of visible descents of a permutation. St001737The number of descents of type 2 in a permutation. St001928The number of non-overlapping descents in a permutation. St000470The number of runs in a permutation. St000354The number of recoils of a permutation. St000829The Ulam distance of a permutation to the identity permutation. St000702The number of weak deficiencies of a permutation. St000162The number of nontrivial cycles in the cycle decomposition of a permutation. St001212The number of simple modules in the corresponding Nakayama algebra that have non-zero second Ext-group with the regular module. St000021The number of descents of a permutation. St000155The number of exceedances (also excedences) of a permutation. St001188The number of simple modules S with grade inf at least two in the Nakayama algebra A corresponding to the Dyck path. St001244The number of simple modules of projective dimension one that are not 1-regular for the Nakayama algebra associated to a Dyck path. St001874Lusztig's a-function for the symmetric group. St000213The number of weak exceedances (also weak excedences) of a permutation. St000325The width of the tree associated to a permutation. St000083The number of left oriented leafs of a binary tree except the first one. St001859The number of factors of the Stanley symmetric function associated with a permutation. St001198The number of simple modules in the algebra eAe with projective dimension at most 1 in the corresponding Nakayama algebra A with minimal faithful projective-injective module eA. St001206The maximal dimension of an indecomposable projective eAe-module (that is the height of the corresponding Dyck path) of the corresponding Nakayama algebra with minimal faithful projective-injective module eA. St000455The second largest eigenvalue of a graph if it is integral. St001720The minimal length of a chain of small intervals in a lattice. St000353The number of inner valleys of a permutation. St000092The number of outer peaks of a permutation. St001630The global dimension of the incidence algebra of the lattice over the rational numbers. St001878The projective dimension of the simple modules corresponding to the minimum of L in the incidence algebra of the lattice L. St000845The maximal number of elements covered by an element in a poset. St000846The maximal number of elements covering an element of a poset. St001491The number of indecomposable projective-injective modules in the algebra corresponding to a subset. St000633The size of the automorphism group of a poset. St000640The rank of the largest boolean interval in a poset. St000910The number of maximal chains of minimal length in a poset. St001105The number of greedy linear extensions of a poset. St001106The number of supergreedy linear extensions of a poset. St000848The balance constant multiplied with the number of linear extensions of a poset. St000849The number of 1/3-balanced pairs in a poset. St000850The number of 1/2-balanced pairs in a poset. St001935The number of ascents in a parking function. St001582The grades of the simple modules corresponding to the points in the poset of the symmetric group under the Bruhat order. St001597The Frobenius rank of a skew partition. St001624The breadth of a lattice.