Identifier
- St000830: Permutations ⟶ ℤ
Values
[1,2] => 0
[2,1] => 2
[1,2,3] => 0
[1,3,2] => 2
[2,1,3] => 2
[2,3,1] => 4
[3,1,2] => 4
[3,2,1] => 4
[1,2,3,4] => 0
[1,2,4,3] => 2
[1,3,2,4] => 2
[1,3,4,2] => 4
[1,4,2,3] => 4
[1,4,3,2] => 4
[2,1,3,4] => 2
[2,1,4,3] => 4
[2,3,1,4] => 4
[2,3,4,1] => 6
[2,4,1,3] => 6
[2,4,3,1] => 6
[3,1,2,4] => 4
[3,1,4,2] => 6
[3,2,1,4] => 4
[3,2,4,1] => 6
[3,4,1,2] => 8
[3,4,2,1] => 8
[4,1,2,3] => 6
[4,1,3,2] => 6
[4,2,1,3] => 6
[4,2,3,1] => 6
[4,3,1,2] => 8
[4,3,2,1] => 8
[1,2,3,4,5] => 0
[1,2,3,5,4] => 2
[1,2,4,3,5] => 2
[1,2,4,5,3] => 4
[1,2,5,3,4] => 4
[1,2,5,4,3] => 4
[1,3,2,4,5] => 2
[1,3,2,5,4] => 4
[1,3,4,2,5] => 4
[1,3,4,5,2] => 6
[1,3,5,2,4] => 6
[1,3,5,4,2] => 6
[1,4,2,3,5] => 4
[1,4,2,5,3] => 6
[1,4,3,2,5] => 4
[1,4,3,5,2] => 6
[1,4,5,2,3] => 8
[1,4,5,3,2] => 8
[1,5,2,3,4] => 6
[1,5,2,4,3] => 6
[1,5,3,2,4] => 6
[1,5,3,4,2] => 6
[1,5,4,2,3] => 8
[1,5,4,3,2] => 8
[2,1,3,4,5] => 2
[2,1,3,5,4] => 4
[2,1,4,3,5] => 4
[2,1,4,5,3] => 6
[2,1,5,3,4] => 6
[2,1,5,4,3] => 6
[2,3,1,4,5] => 4
[2,3,1,5,4] => 6
[2,3,4,1,5] => 6
[2,3,4,5,1] => 8
[2,3,5,1,4] => 8
[2,3,5,4,1] => 8
[2,4,1,3,5] => 6
[2,4,1,5,3] => 8
[2,4,3,1,5] => 6
[2,4,3,5,1] => 8
[2,4,5,1,3] => 10
[2,4,5,3,1] => 10
[2,5,1,3,4] => 8
[2,5,1,4,3] => 8
[2,5,3,1,4] => 8
[2,5,3,4,1] => 8
[2,5,4,1,3] => 10
[2,5,4,3,1] => 10
[3,1,2,4,5] => 4
[3,1,2,5,4] => 6
[3,1,4,2,5] => 6
[3,1,4,5,2] => 8
[3,1,5,2,4] => 8
[3,1,5,4,2] => 8
[3,2,1,4,5] => 4
[3,2,1,5,4] => 6
[3,2,4,1,5] => 6
[3,2,4,5,1] => 8
[3,2,5,1,4] => 8
[3,2,5,4,1] => 8
[3,4,1,2,5] => 8
[3,4,1,5,2] => 10
[3,4,2,1,5] => 8
[3,4,2,5,1] => 10
[3,4,5,1,2] => 12
[3,4,5,2,1] => 12
[3,5,1,2,4] => 10
[3,5,1,4,2] => 10
[3,5,2,1,4] => 10
>>> Load all 1200 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 total displacement of a permutation.
This is, for a permutation $\pi$ of $n$, given by $\sum_{i = 1}^n | \pi(i) - i |.$
This is twice the statistic St000029The depth of a permutation. and can be found in [3, Problem 5.1.1.28] and also in [1, 2].
This is, for a permutation $\pi$ of $n$, given by $\sum_{i = 1}^n | \pi(i) - i |.$
This is twice the statistic St000029The depth of a permutation. and can be found in [3, Problem 5.1.1.28] and also in [1, 2].
References
[1] Chatterjee, S., Diaconis, P. A central limit theorem for a new statistic on permutations arXiv:1608.01666
[2] Diaconis, P., Graham, R. L. Spearman's footrule as a measure of disarray MathSciNet:0652736
[3] Knuth, D. E. The art of computer programming. Vol. 3 MathSciNet:3077154
[2] Diaconis, P., Graham, R. L. Spearman's footrule as a measure of disarray MathSciNet:0652736
[3] Knuth, D. E. The art of computer programming. Vol. 3 MathSciNet:3077154
Code
def statistic(pi):
return sum( abs(pi(i) - i) for i in [ 1 .. len(pi) ] )
Created
May 31, 2017 at 10:42 by Christian Stump
Updated
May 31, 2017 at 13:53 by Christian Stump
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!