Identifier
-
Mp00014:
Binary trees
—to 132-avoiding permutation⟶
Permutations
St000020: Permutations ⟶ ℤ
Values
[.,.] => [1] => 1
[.,[.,.]] => [2,1] => 2
[[.,.],.] => [1,2] => 1
[.,[.,[.,.]]] => [3,2,1] => 6
[.,[[.,.],.]] => [2,3,1] => 4
[[.,.],[.,.]] => [3,1,2] => 5
[[.,[.,.]],.] => [2,1,3] => 3
[[[.,.],.],.] => [1,2,3] => 1
[.,[.,[.,[.,.]]]] => [4,3,2,1] => 24
[.,[.,[[.,.],.]]] => [3,4,2,1] => 18
[.,[[.,.],[.,.]]] => [4,2,3,1] => 22
[.,[[.,[.,.]],.]] => [3,2,4,1] => 16
[.,[[[.,.],.],.]] => [2,3,4,1] => 10
[[.,.],[.,[.,.]]] => [4,3,1,2] => 23
[[.,.],[[.,.],.]] => [3,4,1,2] => 17
[[.,[.,.]],[.,.]] => [4,2,1,3] => 21
[[[.,.],.],[.,.]] => [4,1,2,3] => 19
[[.,[.,[.,.]]],.] => [3,2,1,4] => 15
[[.,[[.,.],.]],.] => [2,3,1,4] => 9
[[[.,.],[.,.]],.] => [3,1,2,4] => 13
[[[.,[.,.]],.],.] => [2,1,3,4] => 7
[[[[.,.],.],.],.] => [1,2,3,4] => 1
[.,[.,[.,[.,[.,.]]]]] => [5,4,3,2,1] => 120
[.,[.,[.,[[.,.],.]]]] => [4,5,3,2,1] => 96
[.,[.,[[.,.],[.,.]]]] => [5,3,4,2,1] => 114
[.,[.,[[.,[.,.]],.]]] => [4,3,5,2,1] => 90
[.,[.,[[[.,.],.],.]]] => [3,4,5,2,1] => 66
[.,[[.,.],[.,[.,.]]]] => [5,4,2,3,1] => 118
[.,[[.,.],[[.,.],.]]] => [4,5,2,3,1] => 94
[.,[[.,[.,.]],[.,.]]] => [5,3,2,4,1] => 112
[.,[[[.,.],.],[.,.]]] => [5,2,3,4,1] => 106
[.,[[.,[.,[.,.]]],.]] => [4,3,2,5,1] => 88
[.,[[.,[[.,.],.]],.]] => [3,4,2,5,1] => 64
[.,[[[.,.],[.,.]],.]] => [4,2,3,5,1] => 82
[.,[[[.,[.,.]],.],.]] => [3,2,4,5,1] => 58
[.,[[[[.,.],.],.],.]] => [2,3,4,5,1] => 34
[[.,.],[.,[.,[.,.]]]] => [5,4,3,1,2] => 119
[[.,.],[.,[[.,.],.]]] => [4,5,3,1,2] => 95
[[.,.],[[.,.],[.,.]]] => [5,3,4,1,2] => 113
[[.,.],[[.,[.,.]],.]] => [4,3,5,1,2] => 89
[[.,.],[[[.,.],.],.]] => [3,4,5,1,2] => 65
[[.,[.,.]],[.,[.,.]]] => [5,4,2,1,3] => 117
[[.,[.,.]],[[.,.],.]] => [4,5,2,1,3] => 93
[[[.,.],.],[.,[.,.]]] => [5,4,1,2,3] => 115
[[[.,.],.],[[.,.],.]] => [4,5,1,2,3] => 91
[[.,[.,[.,.]]],[.,.]] => [5,3,2,1,4] => 111
[[.,[[.,.],.]],[.,.]] => [5,2,3,1,4] => 105
[[[.,.],[.,.]],[.,.]] => [5,3,1,2,4] => 109
[[[.,[.,.]],.],[.,.]] => [5,2,1,3,4] => 103
[[[[.,.],.],.],[.,.]] => [5,1,2,3,4] => 97
[[.,[.,[.,[.,.]]]],.] => [4,3,2,1,5] => 87
[[.,[.,[[.,.],.]]],.] => [3,4,2,1,5] => 63
[[.,[[.,.],[.,.]]],.] => [4,2,3,1,5] => 81
[[.,[[.,[.,.]],.]],.] => [3,2,4,1,5] => 57
[[.,[[[.,.],.],.]],.] => [2,3,4,1,5] => 33
[[[.,.],[.,[.,.]]],.] => [4,3,1,2,5] => 85
[[[.,.],[[.,.],.]],.] => [3,4,1,2,5] => 61
[[[.,[.,.]],[.,.]],.] => [4,2,1,3,5] => 79
[[[[.,.],.],[.,.]],.] => [4,1,2,3,5] => 73
[[[.,[.,[.,.]]],.],.] => [3,2,1,4,5] => 55
[[[.,[[.,.],.]],.],.] => [2,3,1,4,5] => 31
[[[[.,.],[.,.]],.],.] => [3,1,2,4,5] => 49
[[[[.,[.,.]],.],.],.] => [2,1,3,4,5] => 25
[[[[[.,.],.],.],.],.] => [1,2,3,4,5] => 1
[.,[.,[.,[.,[.,[.,.]]]]]] => [6,5,4,3,2,1] => 720
[.,[.,[.,[.,[[.,.],.]]]]] => [5,6,4,3,2,1] => 600
[.,[.,[.,[[.,.],[.,.]]]]] => [6,4,5,3,2,1] => 696
[.,[.,[.,[[.,[.,.]],.]]]] => [5,4,6,3,2,1] => 576
[.,[.,[.,[[[.,.],.],.]]]] => [4,5,6,3,2,1] => 456
[.,[.,[[.,.],[.,[.,.]]]]] => [6,5,3,4,2,1] => 714
[.,[.,[[.,.],[[.,.],.]]]] => [5,6,3,4,2,1] => 594
[.,[.,[[.,[.,.]],[.,.]]]] => [6,4,3,5,2,1] => 690
[.,[.,[[[.,.],.],[.,.]]]] => [6,3,4,5,2,1] => 666
[.,[.,[[.,[.,[.,.]]],.]]] => [5,4,3,6,2,1] => 570
[.,[.,[[.,[[.,.],.]],.]]] => [4,5,3,6,2,1] => 450
[.,[.,[[[.,.],[.,.]],.]]] => [5,3,4,6,2,1] => 546
[.,[.,[[[.,[.,.]],.],.]]] => [4,3,5,6,2,1] => 426
[.,[.,[[[[.,.],.],.],.]]] => [3,4,5,6,2,1] => 306
[.,[[.,.],[.,[.,[.,.]]]]] => [6,5,4,2,3,1] => 718
[.,[[.,.],[.,[[.,.],.]]]] => [5,6,4,2,3,1] => 598
[.,[[.,.],[[.,.],[.,.]]]] => [6,4,5,2,3,1] => 694
[.,[[.,.],[[.,[.,.]],.]]] => [5,4,6,2,3,1] => 574
[.,[[.,.],[[[.,.],.],.]]] => [4,5,6,2,3,1] => 454
[.,[[.,[.,.]],[.,[.,.]]]] => [6,5,3,2,4,1] => 712
[.,[[.,[.,.]],[[.,.],.]]] => [5,6,3,2,4,1] => 592
[.,[[[.,.],.],[.,[.,.]]]] => [6,5,2,3,4,1] => 706
[.,[[[.,.],.],[[.,.],.]]] => [5,6,2,3,4,1] => 586
[.,[[.,[.,[.,.]]],[.,.]]] => [6,4,3,2,5,1] => 688
[.,[[.,[[.,.],.]],[.,.]]] => [6,3,4,2,5,1] => 664
[.,[[[.,.],[.,.]],[.,.]]] => [6,4,2,3,5,1] => 682
[.,[[[.,[.,.]],.],[.,.]]] => [6,3,2,4,5,1] => 658
[.,[[[[.,.],.],.],[.,.]]] => [6,2,3,4,5,1] => 634
[.,[[.,[.,[.,[.,.]]]],.]] => [5,4,3,2,6,1] => 568
[.,[[.,[.,[[.,.],.]]],.]] => [4,5,3,2,6,1] => 448
[.,[[.,[[.,.],[.,.]]],.]] => [5,3,4,2,6,1] => 544
[.,[[.,[[.,[.,.]],.]],.]] => [4,3,5,2,6,1] => 424
[.,[[.,[[[.,.],.],.]],.]] => [3,4,5,2,6,1] => 304
[.,[[[.,.],[.,[.,.]]],.]] => [5,4,2,3,6,1] => 562
[.,[[[.,.],[[.,.],.]],.]] => [4,5,2,3,6,1] => 442
[.,[[[.,[.,.]],[.,.]],.]] => [5,3,2,4,6,1] => 538
[.,[[[[.,.],.],[.,.]],.]] => [5,2,3,4,6,1] => 514
>>> Load all 196 entries. <<<
search for individual values
searching the database for the individual values of this statistic
/
search for generating function
searching the database for statistics with the same generating function
Description
The rank of the permutation.
This is its position among all permutations of the same size ordered lexicographically.
This can be computed using the Lehmer code of a permutation:
$$\text{rank}(\sigma) = 1 +\sum_{i=1}^{n-1} L(\sigma)_i (n − i)!,$$
where $L(\sigma)_i$ is the $i$-th entry of the Lehmer code of $\sigma$.
This is its position among all permutations of the same size ordered lexicographically.
This can be computed using the Lehmer code of a permutation:
$$\text{rank}(\sigma) = 1 +\sum_{i=1}^{n-1} L(\sigma)_i (n − i)!,$$
where $L(\sigma)_i$ is the $i$-th entry of the Lehmer code of $\sigma$.
Map
to 132-avoiding permutation
Description
Return a 132-avoiding permutation corresponding to a binary tree.
The linear extensions of a binary tree form an interval of the weak order called the Sylvester class of the tree. This permutation is the maximal element of the Sylvester class.
The linear extensions of a binary tree form an interval of the weak order called the Sylvester class of the tree. This permutation is the maximal element of the Sylvester class.
searching the database
Sorry, this statistic was not found in the database
or
add this statistic to the database – it's very simple and we need your support!