edit this statistic or download as text // json
Identifier
Values
[1] => 1
[-1] => 0
[1,2] => 4
[1,-2] => 3
[-1,2] => 3
[-1,-2] => 2
[2,1] => 2
[2,-1] => 1
[-2,1] => 1
[-2,-1] => 0
[1,2,3] => 9
[1,2,-3] => 8
[1,-2,3] => 8
[1,-2,-3] => 7
[-1,2,3] => 8
[-1,2,-3] => 7
[-1,-2,3] => 7
[-1,-2,-3] => 6
[1,3,2] => 7
[1,3,-2] => 6
[1,-3,2] => 6
[1,-3,-2] => 5
[-1,3,2] => 6
[-1,3,-2] => 5
[-1,-3,2] => 5
[-1,-3,-2] => 4
[2,1,3] => 7
[2,1,-3] => 6
[2,-1,3] => 6
[2,-1,-3] => 5
[-2,1,3] => 6
[-2,1,-3] => 5
[-2,-1,3] => 5
[-2,-1,-3] => 4
[2,3,1] => 5
[2,3,-1] => 4
[2,-3,1] => 4
[2,-3,-1] => 3
[-2,3,1] => 4
[-2,3,-1] => 3
[-2,-3,1] => 3
[-2,-3,-1] => 2
[3,1,2] => 5
[3,1,-2] => 4
[3,-1,2] => 4
[3,-1,-2] => 3
[-3,1,2] => 4
[-3,1,-2] => 3
[-3,-1,2] => 3
[-3,-1,-2] => 2
[3,2,1] => 7
[3,2,-1] => 6
[3,-2,1] => 2
[3,-2,-1] => 1
[-3,2,1] => 6
[-3,2,-1] => 5
[-3,-2,1] => 1
[-3,-2,-1] => 0
[1,2,3,4] => 16
[1,2,3,-4] => 15
[1,2,-3,4] => 15
[1,2,-3,-4] => 14
[1,-2,3,4] => 15
[1,-2,3,-4] => 14
[1,-2,-3,4] => 14
[1,-2,-3,-4] => 13
[-1,2,3,4] => 15
[-1,2,3,-4] => 14
[-1,2,-3,4] => 14
[-1,2,-3,-4] => 13
[-1,-2,3,4] => 14
[-1,-2,3,-4] => 13
[-1,-2,-3,4] => 13
[-1,-2,-3,-4] => 12
[1,2,4,3] => 14
[1,2,4,-3] => 13
[1,2,-4,3] => 13
[1,2,-4,-3] => 12
[1,-2,4,3] => 13
[1,-2,4,-3] => 12
[1,-2,-4,3] => 12
[1,-2,-4,-3] => 11
[-1,2,4,3] => 13
[-1,2,4,-3] => 12
[-1,2,-4,3] => 12
[-1,2,-4,-3] => 11
[-1,-2,4,3] => 12
[-1,-2,4,-3] => 11
[-1,-2,-4,3] => 11
[-1,-2,-4,-3] => 10
[1,3,2,4] => 14
[1,3,2,-4] => 13
[1,3,-2,4] => 13
[1,3,-2,-4] => 12
[1,-3,2,4] => 13
[1,-3,2,-4] => 12
[1,-3,-2,4] => 12
[1,-3,-2,-4] => 11
[-1,3,2,4] => 13
[-1,3,2,-4] => 12
[-1,3,-2,4] => 12
>>> Load all 1200 entries. <<<
[-1,3,-2,-4] => 11
[-1,-3,2,4] => 12
[-1,-3,2,-4] => 11
[-1,-3,-2,4] => 11
[-1,-3,-2,-4] => 10
[1,3,4,2] => 12
[1,3,4,-2] => 11
[1,3,-4,2] => 11
[1,3,-4,-2] => 10
[1,-3,4,2] => 11
[1,-3,4,-2] => 10
[1,-3,-4,2] => 10
[1,-3,-4,-2] => 9
[-1,3,4,2] => 11
[-1,3,4,-2] => 10
[-1,3,-4,2] => 10
[-1,3,-4,-2] => 9
[-1,-3,4,2] => 10
[-1,-3,4,-2] => 9
[-1,-3,-4,2] => 9
[-1,-3,-4,-2] => 8
[1,4,2,3] => 12
[1,4,2,-3] => 11
[1,4,-2,3] => 11
[1,4,-2,-3] => 10
[1,-4,2,3] => 11
[1,-4,2,-3] => 10
[1,-4,-2,3] => 10
[1,-4,-2,-3] => 9
[-1,4,2,3] => 11
[-1,4,2,-3] => 10
[-1,4,-2,3] => 10
[-1,4,-2,-3] => 9
[-1,-4,2,3] => 10
[-1,-4,2,-3] => 9
[-1,-4,-2,3] => 9
[-1,-4,-2,-3] => 8
[1,4,3,2] => 14
[1,4,3,-2] => 13
[1,4,-3,2] => 9
[1,4,-3,-2] => 8
[1,-4,3,2] => 13
[1,-4,3,-2] => 12
[1,-4,-3,2] => 8
[1,-4,-3,-2] => 7
[-1,4,3,2] => 13
[-1,4,3,-2] => 12
[-1,4,-3,2] => 8
[-1,4,-3,-2] => 7
[-1,-4,3,2] => 12
[-1,-4,3,-2] => 11
[-1,-4,-3,2] => 7
[-1,-4,-3,-2] => 6
[2,1,3,4] => 14
[2,1,3,-4] => 13
[2,1,-3,4] => 13
[2,1,-3,-4] => 12
[2,-1,3,4] => 13
[2,-1,3,-4] => 12
[2,-1,-3,4] => 12
[2,-1,-3,-4] => 11
[-2,1,3,4] => 13
[-2,1,3,-4] => 12
[-2,1,-3,4] => 12
[-2,1,-3,-4] => 11
[-2,-1,3,4] => 12
[-2,-1,3,-4] => 11
[-2,-1,-3,4] => 11
[-2,-1,-3,-4] => 10
[2,1,4,3] => 12
[2,1,4,-3] => 11
[2,1,-4,3] => 11
[2,1,-4,-3] => 10
[2,-1,4,3] => 11
[2,-1,4,-3] => 10
[2,-1,-4,3] => 10
[2,-1,-4,-3] => 9
[-2,1,4,3] => 11
[-2,1,4,-3] => 10
[-2,1,-4,3] => 10
[-2,1,-4,-3] => 9
[-2,-1,4,3] => 10
[-2,-1,4,-3] => 9
[-2,-1,-4,3] => 9
[-2,-1,-4,-3] => 8
[2,3,1,4] => 12
[2,3,1,-4] => 11
[2,3,-1,4] => 11
[2,3,-1,-4] => 10
[2,-3,1,4] => 11
[2,-3,1,-4] => 10
[2,-3,-1,4] => 10
[2,-3,-1,-4] => 9
[-2,3,1,4] => 11
[-2,3,1,-4] => 10
[-2,3,-1,4] => 10
[-2,3,-1,-4] => 9
[-2,-3,1,4] => 10
[-2,-3,1,-4] => 9
[-2,-3,-1,4] => 9
[-2,-3,-1,-4] => 8
[2,3,4,1] => 10
[2,3,4,-1] => 9
[2,3,-4,1] => 9
[2,3,-4,-1] => 8
[2,-3,4,1] => 9
[2,-3,4,-1] => 8
[2,-3,-4,1] => 8
[2,-3,-4,-1] => 7
[-2,3,4,1] => 9
[-2,3,4,-1] => 8
[-2,3,-4,1] => 8
[-2,3,-4,-1] => 7
[-2,-3,4,1] => 8
[-2,-3,4,-1] => 7
[-2,-3,-4,1] => 7
[-2,-3,-4,-1] => 6
[2,4,1,3] => 10
[2,4,1,-3] => 9
[2,4,-1,3] => 9
[2,4,-1,-3] => 8
[2,-4,1,3] => 9
[2,-4,1,-3] => 8
[2,-4,-1,3] => 8
[2,-4,-1,-3] => 7
[-2,4,1,3] => 9
[-2,4,1,-3] => 8
[-2,4,-1,3] => 8
[-2,4,-1,-3] => 7
[-2,-4,1,3] => 8
[-2,-4,1,-3] => 7
[-2,-4,-1,3] => 7
[-2,-4,-1,-3] => 6
[2,4,3,1] => 12
[2,4,3,-1] => 11
[2,4,-3,1] => 7
[2,4,-3,-1] => 6
[2,-4,3,1] => 11
[2,-4,3,-1] => 10
[2,-4,-3,1] => 6
[2,-4,-3,-1] => 5
[-2,4,3,1] => 11
[-2,4,3,-1] => 10
[-2,4,-3,1] => 6
[-2,4,-3,-1] => 5
[-2,-4,3,1] => 10
[-2,-4,3,-1] => 9
[-2,-4,-3,1] => 5
[-2,-4,-3,-1] => 4
[3,1,2,4] => 12
[3,1,2,-4] => 11
[3,1,-2,4] => 11
[3,1,-2,-4] => 10
[3,-1,2,4] => 11
[3,-1,2,-4] => 10
[3,-1,-2,4] => 10
[3,-1,-2,-4] => 9
[-3,1,2,4] => 11
[-3,1,2,-4] => 10
[-3,1,-2,4] => 10
[-3,1,-2,-4] => 9
[-3,-1,2,4] => 10
[-3,-1,2,-4] => 9
[-3,-1,-2,4] => 9
[-3,-1,-2,-4] => 8
[3,1,4,2] => 10
[3,1,4,-2] => 9
[3,1,-4,2] => 9
[3,1,-4,-2] => 8
[3,-1,4,2] => 9
[3,-1,4,-2] => 8
[3,-1,-4,2] => 8
[3,-1,-4,-2] => 7
[-3,1,4,2] => 9
[-3,1,4,-2] => 8
[-3,1,-4,2] => 8
[-3,1,-4,-2] => 7
[-3,-1,4,2] => 8
[-3,-1,4,-2] => 7
[-3,-1,-4,2] => 7
[-3,-1,-4,-2] => 6
[3,2,1,4] => 14
[3,2,1,-4] => 13
[3,2,-1,4] => 13
[3,2,-1,-4] => 12
[3,-2,1,4] => 9
[3,-2,1,-4] => 8
[3,-2,-1,4] => 8
[3,-2,-1,-4] => 7
[-3,2,1,4] => 13
[-3,2,1,-4] => 12
[-3,2,-1,4] => 12
[-3,2,-1,-4] => 11
[-3,-2,1,4] => 8
[-3,-2,1,-4] => 7
[-3,-2,-1,4] => 7
[-3,-2,-1,-4] => 6
[3,2,4,1] => 12
[3,2,4,-1] => 11
[3,2,-4,1] => 11
[3,2,-4,-1] => 10
[3,-2,4,1] => 7
[3,-2,4,-1] => 6
[3,-2,-4,1] => 6
[3,-2,-4,-1] => 5
[-3,2,4,1] => 11
[-3,2,4,-1] => 10
[-3,2,-4,1] => 10
[-3,2,-4,-1] => 9
[-3,-2,4,1] => 6
[-3,-2,4,-1] => 5
[-3,-2,-4,1] => 5
[-3,-2,-4,-1] => 4
[3,4,1,2] => 8
[3,4,1,-2] => 7
[3,4,-1,2] => 7
[3,4,-1,-2] => 6
[3,-4,1,2] => 7
[3,-4,1,-2] => 6
[3,-4,-1,2] => 6
[3,-4,-1,-2] => 5
[-3,4,1,2] => 7
[-3,4,1,-2] => 6
[-3,4,-1,2] => 6
[-3,4,-1,-2] => 5
[-3,-4,1,2] => 6
[-3,-4,1,-2] => 5
[-3,-4,-1,2] => 5
[-3,-4,-1,-2] => 4
[3,4,2,1] => 10
[3,4,2,-1] => 9
[3,4,-2,1] => 5
[3,4,-2,-1] => 4
[3,-4,2,1] => 9
[3,-4,2,-1] => 8
[3,-4,-2,1] => 4
[3,-4,-2,-1] => 3
[-3,4,2,1] => 9
[-3,4,2,-1] => 8
[-3,4,-2,1] => 4
[-3,4,-2,-1] => 3
[-3,-4,2,1] => 8
[-3,-4,2,-1] => 7
[-3,-4,-2,1] => 3
[-3,-4,-2,-1] => 2
[4,1,2,3] => 10
[4,1,2,-3] => 9
[4,1,-2,3] => 9
[4,1,-2,-3] => 8
[4,-1,2,3] => 9
[4,-1,2,-3] => 8
[4,-1,-2,3] => 8
[4,-1,-2,-3] => 7
[-4,1,2,3] => 9
[-4,1,2,-3] => 8
[-4,1,-2,3] => 8
[-4,1,-2,-3] => 7
[-4,-1,2,3] => 8
[-4,-1,2,-3] => 7
[-4,-1,-2,3] => 7
[-4,-1,-2,-3] => 6
[4,1,3,2] => 12
[4,1,3,-2] => 11
[4,1,-3,2] => 7
[4,1,-3,-2] => 6
[4,-1,3,2] => 11
[4,-1,3,-2] => 10
[4,-1,-3,2] => 6
[4,-1,-3,-2] => 5
[-4,1,3,2] => 11
[-4,1,3,-2] => 10
[-4,1,-3,2] => 6
[-4,1,-3,-2] => 5
[-4,-1,3,2] => 10
[-4,-1,3,-2] => 9
[-4,-1,-3,2] => 5
[-4,-1,-3,-2] => 4
[4,2,1,3] => 12
[4,2,1,-3] => 11
[4,2,-1,3] => 11
[4,2,-1,-3] => 10
[4,-2,1,3] => 7
[4,-2,1,-3] => 6
[4,-2,-1,3] => 6
[4,-2,-1,-3] => 5
[-4,2,1,3] => 11
[-4,2,1,-3] => 10
[-4,2,-1,3] => 10
[-4,2,-1,-3] => 9
[-4,-2,1,3] => 6
[-4,-2,1,-3] => 5
[-4,-2,-1,3] => 5
[-4,-2,-1,-3] => 4
[4,2,3,1] => 14
[4,2,3,-1] => 13
[4,2,-3,1] => 9
[4,2,-3,-1] => 8
[4,-2,3,1] => 9
[4,-2,3,-1] => 8
[4,-2,-3,1] => 4
[4,-2,-3,-1] => 3
[-4,2,3,1] => 13
[-4,2,3,-1] => 12
[-4,2,-3,1] => 8
[-4,2,-3,-1] => 7
[-4,-2,3,1] => 8
[-4,-2,3,-1] => 7
[-4,-2,-3,1] => 3
[-4,-2,-3,-1] => 2
[4,3,1,2] => 10
[4,3,1,-2] => 9
[4,3,-1,2] => 9
[4,3,-1,-2] => 8
[4,-3,1,2] => 5
[4,-3,1,-2] => 4
[4,-3,-1,2] => 4
[4,-3,-1,-2] => 3
[-4,3,1,2] => 9
[-4,3,1,-2] => 8
[-4,3,-1,2] => 8
[-4,3,-1,-2] => 7
[-4,-3,1,2] => 4
[-4,-3,1,-2] => 3
[-4,-3,-1,2] => 3
[-4,-3,-1,-2] => 2
[4,3,2,1] => 12
[4,3,2,-1] => 11
[4,3,-2,1] => 7
[4,3,-2,-1] => 6
[4,-3,2,1] => 7
[4,-3,2,-1] => 6
[4,-3,-2,1] => 2
[4,-3,-2,-1] => 1
[-4,3,2,1] => 11
[-4,3,2,-1] => 10
[-4,3,-2,1] => 6
[-4,3,-2,-1] => 5
[-4,-3,2,1] => 6
[-4,-3,2,-1] => 5
[-4,-3,-2,1] => 1
[-4,-3,-2,-1] => 0
[1,2,3,4,5] => 25
[1,2,3,4,-5] => 24
[1,2,3,-4,5] => 24
[1,2,3,-4,-5] => 23
[1,2,-3,4,5] => 24
[1,2,-3,4,-5] => 23
[1,2,-3,-4,5] => 23
[1,2,-3,-4,-5] => 22
[1,-2,3,4,5] => 24
[1,-2,3,4,-5] => 23
[1,-2,3,-4,5] => 23
[1,-2,3,-4,-5] => 22
[1,-2,-3,4,5] => 23
[1,-2,-3,4,-5] => 22
[1,-2,-3,-4,5] => 22
[1,-2,-3,-4,-5] => 21
[-1,2,3,4,5] => 24
[-1,2,3,4,-5] => 23
[-1,2,3,-4,5] => 23
[-1,2,3,-4,-5] => 22
[-1,2,-3,4,5] => 23
[-1,2,-3,4,-5] => 22
[-1,2,-3,-4,5] => 22
[-1,2,-3,-4,-5] => 21
[-1,-2,3,4,5] => 23
[-1,-2,3,4,-5] => 22
[-1,-2,3,-4,5] => 22
[-1,-2,3,-4,-5] => 21
[-1,-2,-3,4,5] => 22
[-1,-2,-3,4,-5] => 21
[-1,-2,-3,-4,5] => 21
[-1,-2,-3,-4,-5] => 20
[1,2,3,5,4] => 23
[1,2,3,5,-4] => 22
[1,2,3,-5,4] => 22
[1,2,3,-5,-4] => 21
[1,2,-3,5,4] => 22
[1,2,-3,5,-4] => 21
[1,2,-3,-5,4] => 21
[1,2,-3,-5,-4] => 20
[1,-2,3,5,4] => 22
[1,-2,3,5,-4] => 21
[1,-2,3,-5,4] => 21
[1,-2,3,-5,-4] => 20
[1,-2,-3,5,4] => 21
[1,-2,-3,5,-4] => 20
[1,-2,-3,-5,4] => 20
[1,-2,-3,-5,-4] => 19
[-1,2,3,5,4] => 22
[-1,2,3,5,-4] => 21
[-1,2,3,-5,4] => 21
[-1,2,3,-5,-4] => 20
[-1,2,-3,5,4] => 21
[-1,2,-3,5,-4] => 20
[-1,2,-3,-5,4] => 20
[-1,2,-3,-5,-4] => 19
[-1,-2,3,5,4] => 21
[-1,-2,3,5,-4] => 20
[-1,-2,3,-5,4] => 20
[-1,-2,3,-5,-4] => 19
[-1,-2,-3,5,4] => 20
[-1,-2,-3,5,-4] => 19
[-1,-2,-3,-5,4] => 19
[-1,-2,-3,-5,-4] => 18
[1,2,4,3,5] => 23
[1,2,4,3,-5] => 22
[1,2,4,-3,5] => 22
[1,2,4,-3,-5] => 21
[1,2,-4,3,5] => 22
[1,2,-4,3,-5] => 21
[1,2,-4,-3,5] => 21
[1,2,-4,-3,-5] => 20
[1,-2,4,3,5] => 22
[1,-2,4,3,-5] => 21
[1,-2,4,-3,5] => 21
[1,-2,4,-3,-5] => 20
[1,-2,-4,3,5] => 21
[1,-2,-4,3,-5] => 20
[1,-2,-4,-3,5] => 20
[1,-2,-4,-3,-5] => 19
[-1,2,4,3,5] => 22
[-1,2,4,3,-5] => 21
[-1,2,4,-3,5] => 21
[-1,2,4,-3,-5] => 20
[-1,2,-4,3,5] => 21
[-1,2,-4,3,-5] => 20
[-1,2,-4,-3,5] => 20
[-1,2,-4,-3,-5] => 19
[-1,-2,4,3,5] => 21
[-1,-2,4,3,-5] => 20
[-1,-2,4,-3,5] => 20
[-1,-2,4,-3,-5] => 19
[-1,-2,-4,3,5] => 20
[-1,-2,-4,3,-5] => 19
[-1,-2,-4,-3,5] => 19
[-1,-2,-4,-3,-5] => 18
[1,2,4,5,3] => 21
[1,2,4,5,-3] => 20
[1,2,4,-5,3] => 20
[1,2,4,-5,-3] => 19
[1,2,-4,5,3] => 20
[1,2,-4,5,-3] => 19
[1,2,-4,-5,3] => 19
[1,2,-4,-5,-3] => 18
[1,-2,4,5,3] => 20
[1,-2,4,5,-3] => 19
[1,-2,4,-5,3] => 19
[1,-2,4,-5,-3] => 18
[1,-2,-4,5,3] => 19
[1,-2,-4,5,-3] => 18
[1,-2,-4,-5,3] => 18
[1,-2,-4,-5,-3] => 17
[-1,2,4,5,3] => 20
[-1,2,4,5,-3] => 19
[-1,2,4,-5,3] => 19
[-1,2,4,-5,-3] => 18
[-1,2,-4,5,3] => 19
[-1,2,-4,5,-3] => 18
[-1,2,-4,-5,3] => 18
[-1,2,-4,-5,-3] => 17
[-1,-2,4,5,3] => 19
[-1,-2,4,5,-3] => 18
[-1,-2,4,-5,3] => 18
[-1,-2,4,-5,-3] => 17
[-1,-2,-4,5,3] => 18
[-1,-2,-4,5,-3] => 17
[-1,-2,-4,-5,3] => 17
[-1,-2,-4,-5,-3] => 16
[1,2,5,3,4] => 21
[1,2,5,3,-4] => 20
[1,2,5,-3,4] => 20
[1,2,5,-3,-4] => 19
[1,2,-5,3,4] => 20
[1,2,-5,3,-4] => 19
[1,2,-5,-3,4] => 19
[1,2,-5,-3,-4] => 18
[1,-2,5,3,4] => 20
[1,-2,5,3,-4] => 19
[1,-2,5,-3,4] => 19
[1,-2,5,-3,-4] => 18
[1,-2,-5,3,4] => 19
[1,-2,-5,3,-4] => 18
[1,-2,-5,-3,4] => 18
[1,-2,-5,-3,-4] => 17
[-1,2,5,3,4] => 20
[-1,2,5,3,-4] => 19
[-1,2,5,-3,4] => 19
[-1,2,5,-3,-4] => 18
[-1,2,-5,3,4] => 19
[-1,2,-5,3,-4] => 18
[-1,2,-5,-3,4] => 18
[-1,2,-5,-3,-4] => 17
[-1,-2,5,3,4] => 19
[-1,-2,5,3,-4] => 18
[-1,-2,5,-3,4] => 18
[-1,-2,5,-3,-4] => 17
[-1,-2,-5,3,4] => 18
[-1,-2,-5,3,-4] => 17
[-1,-2,-5,-3,4] => 17
[-1,-2,-5,-3,-4] => 16
[1,2,5,4,3] => 23
[1,2,5,4,-3] => 22
[1,2,5,-4,3] => 18
[1,2,5,-4,-3] => 17
[1,2,-5,4,3] => 22
[1,2,-5,4,-3] => 21
[1,2,-5,-4,3] => 17
[1,2,-5,-4,-3] => 16
[1,-2,5,4,3] => 22
[1,-2,5,4,-3] => 21
[1,-2,5,-4,3] => 17
[1,-2,5,-4,-3] => 16
[1,-2,-5,4,3] => 21
[1,-2,-5,4,-3] => 20
[1,-2,-5,-4,3] => 16
[1,-2,-5,-4,-3] => 15
[-1,2,5,4,3] => 22
[-1,2,5,4,-3] => 21
[-1,2,5,-4,3] => 17
[-1,2,5,-4,-3] => 16
[-1,2,-5,4,3] => 21
[-1,2,-5,4,-3] => 20
[-1,2,-5,-4,3] => 16
[-1,2,-5,-4,-3] => 15
[-1,-2,5,4,3] => 21
[-1,-2,5,4,-3] => 20
[-1,-2,5,-4,3] => 16
[-1,-2,5,-4,-3] => 15
[-1,-2,-5,4,3] => 20
[-1,-2,-5,4,-3] => 19
[-1,-2,-5,-4,3] => 15
[-1,-2,-5,-4,-3] => 14
[1,3,2,4,5] => 23
[1,3,2,4,-5] => 22
[1,3,2,-4,5] => 22
[1,3,2,-4,-5] => 21
[1,3,-2,4,5] => 22
[1,3,-2,4,-5] => 21
[1,3,-2,-4,5] => 21
[1,3,-2,-4,-5] => 20
[1,-3,2,4,5] => 22
[1,-3,2,4,-5] => 21
[1,-3,2,-4,5] => 21
[1,-3,2,-4,-5] => 20
[1,-3,-2,4,5] => 21
[1,-3,-2,4,-5] => 20
[1,-3,-2,-4,5] => 20
[1,-3,-2,-4,-5] => 19
[-1,3,2,4,5] => 22
[-1,3,2,4,-5] => 21
[-1,3,2,-4,5] => 21
[-1,3,2,-4,-5] => 20
[-1,3,-2,4,5] => 21
[-1,3,-2,4,-5] => 20
[-1,3,-2,-4,5] => 20
[-1,3,-2,-4,-5] => 19
[-1,-3,2,4,5] => 21
[-1,-3,2,4,-5] => 20
[-1,-3,2,-4,5] => 20
[-1,-3,2,-4,-5] => 19
[-1,-3,-2,4,5] => 20
[-1,-3,-2,4,-5] => 19
[-1,-3,-2,-4,5] => 19
[-1,-3,-2,-4,-5] => 18
[1,3,2,5,4] => 21
[1,3,2,5,-4] => 20
[1,3,2,-5,4] => 20
[1,3,2,-5,-4] => 19
[1,3,-2,5,4] => 20
[1,3,-2,5,-4] => 19
[1,3,-2,-5,4] => 19
[1,3,-2,-5,-4] => 18
[1,-3,2,5,4] => 20
[1,-3,2,5,-4] => 19
[1,-3,2,-5,4] => 19
[1,-3,2,-5,-4] => 18
[1,-3,-2,5,4] => 19
[1,-3,-2,5,-4] => 18
[1,-3,-2,-5,4] => 18
[1,-3,-2,-5,-4] => 17
[-1,3,2,5,4] => 20
[-1,3,2,5,-4] => 19
[-1,3,2,-5,4] => 19
[-1,3,2,-5,-4] => 18
[-1,3,-2,5,4] => 19
[-1,3,-2,5,-4] => 18
[-1,3,-2,-5,4] => 18
[-1,3,-2,-5,-4] => 17
[-1,-3,2,5,4] => 19
[-1,-3,2,5,-4] => 18
[-1,-3,2,-5,4] => 18
[-1,-3,2,-5,-4] => 17
[-1,-3,-2,5,4] => 18
[-1,-3,-2,5,-4] => 17
[-1,-3,-2,-5,4] => 17
[-1,-3,-2,-5,-4] => 16
[1,3,4,2,5] => 21
[1,3,4,2,-5] => 20
[1,3,4,-2,5] => 20
[1,3,4,-2,-5] => 19
[1,3,-4,2,5] => 20
[1,3,-4,2,-5] => 19
[1,3,-4,-2,5] => 19
[1,3,-4,-2,-5] => 18
[1,-3,4,2,5] => 20
[1,-3,4,2,-5] => 19
[1,-3,4,-2,5] => 19
[1,-3,4,-2,-5] => 18
[1,-3,-4,2,5] => 19
[1,-3,-4,2,-5] => 18
[1,-3,-4,-2,5] => 18
[1,-3,-4,-2,-5] => 17
[-1,3,4,2,5] => 20
[-1,3,4,2,-5] => 19
[-1,3,4,-2,5] => 19
[-1,3,4,-2,-5] => 18
[-1,3,-4,2,5] => 19
[-1,3,-4,2,-5] => 18
[-1,3,-4,-2,5] => 18
[-1,3,-4,-2,-5] => 17
[-1,-3,4,2,5] => 19
[-1,-3,4,2,-5] => 18
[-1,-3,4,-2,5] => 18
[-1,-3,4,-2,-5] => 17
[-1,-3,-4,2,5] => 18
[-1,-3,-4,2,-5] => 17
[-1,-3,-4,-2,5] => 17
[-1,-3,-4,-2,-5] => 16
[1,3,4,5,2] => 19
[1,3,4,5,-2] => 18
[1,3,4,-5,2] => 18
[1,3,4,-5,-2] => 17
[1,3,-4,5,2] => 18
[1,3,-4,5,-2] => 17
[1,3,-4,-5,2] => 17
[1,3,-4,-5,-2] => 16
[1,-3,4,5,2] => 18
[1,-3,4,5,-2] => 17
[1,-3,4,-5,2] => 17
[1,-3,4,-5,-2] => 16
[1,-3,-4,5,2] => 17
[1,-3,-4,5,-2] => 16
[1,-3,-4,-5,2] => 16
[1,-3,-4,-5,-2] => 15
[-1,3,4,5,2] => 18
[-1,3,4,5,-2] => 17
[-1,3,4,-5,2] => 17
[-1,3,4,-5,-2] => 16
[-1,3,-4,5,2] => 17
[-1,3,-4,5,-2] => 16
[-1,3,-4,-5,2] => 16
[-1,3,-4,-5,-2] => 15
[-1,-3,4,5,2] => 17
[-1,-3,4,5,-2] => 16
[-1,-3,4,-5,2] => 16
[-1,-3,4,-5,-2] => 15
[-1,-3,-4,5,2] => 16
[-1,-3,-4,5,-2] => 15
[-1,-3,-4,-5,2] => 15
[-1,-3,-4,-5,-2] => 14
[1,3,5,2,4] => 19
[1,3,5,2,-4] => 18
[1,3,5,-2,4] => 18
[1,3,5,-2,-4] => 17
[1,3,-5,2,4] => 18
[1,3,-5,2,-4] => 17
[1,3,-5,-2,4] => 17
[1,3,-5,-2,-4] => 16
[1,-3,5,2,4] => 18
[1,-3,5,2,-4] => 17
[1,-3,5,-2,4] => 17
[1,-3,5,-2,-4] => 16
[1,-3,-5,2,4] => 17
[1,-3,-5,2,-4] => 16
[1,-3,-5,-2,4] => 16
[1,-3,-5,-2,-4] => 15
[-1,3,5,2,4] => 18
[-1,3,5,2,-4] => 17
[-1,3,5,-2,4] => 17
[-1,3,5,-2,-4] => 16
[-1,3,-5,2,4] => 17
[-1,3,-5,2,-4] => 16
[-1,3,-5,-2,4] => 16
[-1,3,-5,-2,-4] => 15
[-1,-3,5,2,4] => 17
[-1,-3,5,2,-4] => 16
[-1,-3,5,-2,4] => 16
[-1,-3,5,-2,-4] => 15
[-1,-3,-5,2,4] => 16
[-1,-3,-5,2,-4] => 15
[-1,-3,-5,-2,4] => 15
[-1,-3,-5,-2,-4] => 14
[1,3,5,4,2] => 21
[1,3,5,4,-2] => 20
[1,3,5,-4,2] => 16
[1,3,5,-4,-2] => 15
[1,3,-5,4,2] => 20
[1,3,-5,4,-2] => 19
[1,3,-5,-4,2] => 15
[1,3,-5,-4,-2] => 14
[1,-3,5,4,2] => 20
[1,-3,5,4,-2] => 19
[1,-3,5,-4,2] => 15
[1,-3,5,-4,-2] => 14
[1,-3,-5,4,2] => 19
[1,-3,-5,4,-2] => 18
[1,-3,-5,-4,2] => 14
[1,-3,-5,-4,-2] => 13
[-1,3,5,4,2] => 20
[-1,3,5,4,-2] => 19
[-1,3,5,-4,2] => 15
[-1,3,5,-4,-2] => 14
[-1,3,-5,4,2] => 19
[-1,3,-5,4,-2] => 18
[-1,3,-5,-4,2] => 14
[-1,3,-5,-4,-2] => 13
[-1,-3,5,4,2] => 19
[-1,-3,5,4,-2] => 18
[-1,-3,5,-4,2] => 14
[-1,-3,5,-4,-2] => 13
[-1,-3,-5,4,2] => 18
[-1,-3,-5,4,-2] => 17
[-1,-3,-5,-4,2] => 13
[-1,-3,-5,-4,-2] => 12
[1,4,2,3,5] => 21
[1,4,2,3,-5] => 20
[1,4,2,-3,5] => 20
[1,4,2,-3,-5] => 19
[1,4,-2,3,5] => 20
[1,4,-2,3,-5] => 19
[1,4,-2,-3,5] => 19
[1,4,-2,-3,-5] => 18
[1,-4,2,3,5] => 20
[1,-4,2,3,-5] => 19
[1,-4,2,-3,5] => 19
[1,-4,2,-3,-5] => 18
[1,-4,-2,3,5] => 19
[1,-4,-2,3,-5] => 18
[1,-4,-2,-3,5] => 18
[1,-4,-2,-3,-5] => 17
[-1,4,2,3,5] => 20
[-1,4,2,3,-5] => 19
[-1,4,2,-3,5] => 19
[-1,4,2,-3,-5] => 18
[-1,4,-2,3,5] => 19
[-1,4,-2,3,-5] => 18
[-1,4,-2,-3,5] => 18
[-1,4,-2,-3,-5] => 17
[-1,-4,2,3,5] => 19
[-1,-4,2,3,-5] => 18
[-1,-4,2,-3,5] => 18
[-1,-4,2,-3,-5] => 17
[-1,-4,-2,3,5] => 18
[-1,-4,-2,3,-5] => 17
[-1,-4,-2,-3,5] => 17
[-1,-4,-2,-3,-5] => 16
[1,4,2,5,3] => 19
[1,4,2,5,-3] => 18
[1,4,2,-5,3] => 18
[1,4,2,-5,-3] => 17
[1,4,-2,5,3] => 18
[1,4,-2,5,-3] => 17
[1,4,-2,-5,3] => 17
[1,4,-2,-5,-3] => 16
[1,-4,2,5,3] => 18
[1,-4,2,5,-3] => 17
[1,-4,2,-5,3] => 17
[1,-4,2,-5,-3] => 16
[1,-4,-2,5,3] => 17
[1,-4,-2,5,-3] => 16
[1,-4,-2,-5,3] => 16
[1,-4,-2,-5,-3] => 15
[-1,4,2,5,3] => 18
[-1,4,2,5,-3] => 17
[-1,4,2,-5,3] => 17
[-1,4,2,-5,-3] => 16
[-1,4,-2,5,3] => 17
[-1,4,-2,5,-3] => 16
[-1,4,-2,-5,3] => 16
[-1,4,-2,-5,-3] => 15
[-1,-4,2,5,3] => 17
[-1,-4,2,5,-3] => 16
[-1,-4,2,-5,3] => 16
[-1,-4,2,-5,-3] => 15
[-1,-4,-2,5,3] => 16
[-1,-4,-2,5,-3] => 15
[-1,-4,-2,-5,3] => 15
[-1,-4,-2,-5,-3] => 14
[1,4,3,2,5] => 23
[1,4,3,2,-5] => 22
[1,4,3,-2,5] => 22
[1,4,3,-2,-5] => 21
[1,4,-3,2,5] => 18
[1,4,-3,2,-5] => 17
[1,4,-3,-2,5] => 17
[1,4,-3,-2,-5] => 16
[1,-4,3,2,5] => 22
[1,-4,3,2,-5] => 21
[1,-4,3,-2,5] => 21
[1,-4,3,-2,-5] => 20
[1,-4,-3,2,5] => 17
[1,-4,-3,2,-5] => 16
[1,-4,-3,-2,5] => 16
[1,-4,-3,-2,-5] => 15
[-1,4,3,2,5] => 22
[-1,4,3,2,-5] => 21
[-1,4,3,-2,5] => 21
[-1,4,3,-2,-5] => 20
[-1,4,-3,2,5] => 17
[-1,4,-3,2,-5] => 16
[-1,4,-3,-2,5] => 16
[-1,4,-3,-2,-5] => 15
[-1,-4,3,2,5] => 21
[-1,-4,3,2,-5] => 20
[-1,-4,3,-2,5] => 20
[-1,-4,3,-2,-5] => 19
[-1,-4,-3,2,5] => 16
[-1,-4,-3,2,-5] => 15
[-1,-4,-3,-2,5] => 15
[-1,-4,-3,-2,-5] => 14
[1,4,3,5,2] => 21
[1,4,3,5,-2] => 20
[1,4,3,-5,2] => 20
[1,4,3,-5,-2] => 19
[1,4,-3,5,2] => 16
[1,4,-3,5,-2] => 15
[1,4,-3,-5,2] => 15
[1,4,-3,-5,-2] => 14
[1,-4,3,5,2] => 20
[1,-4,3,5,-2] => 19
[1,-4,3,-5,2] => 19
[1,-4,3,-5,-2] => 18
[1,-4,-3,5,2] => 15
[1,-4,-3,5,-2] => 14
[1,-4,-3,-5,2] => 14
[1,-4,-3,-5,-2] => 13
[-1,4,3,5,2] => 20
[-1,4,3,5,-2] => 19
[-1,4,3,-5,2] => 19
[-1,4,3,-5,-2] => 18
[-1,4,-3,5,2] => 15
[-1,4,-3,5,-2] => 14
[-1,4,-3,-5,2] => 14
[-1,4,-3,-5,-2] => 13
[-1,-4,3,5,2] => 19
[-1,-4,3,5,-2] => 18
[-1,-4,3,-5,2] => 18
[-1,-4,3,-5,-2] => 17
[-1,-4,-3,5,2] => 14
[-1,-4,-3,5,-2] => 13
[-1,-4,-3,-5,2] => 13
[-1,-4,-3,-5,-2] => 12
[1,4,5,2,3] => 17
[1,4,5,2,-3] => 16
[1,4,5,-2,3] => 16
[1,4,5,-2,-3] => 15
[1,4,-5,2,3] => 16
[1,4,-5,2,-3] => 15
[1,4,-5,-2,3] => 15
[1,4,-5,-2,-3] => 14
[1,-4,5,2,3] => 16
[1,-4,5,2,-3] => 15
[1,-4,5,-2,3] => 15
[1,-4,5,-2,-3] => 14
[1,-4,-5,2,3] => 15
[1,-4,-5,2,-3] => 14
[1,-4,-5,-2,3] => 14
[1,-4,-5,-2,-3] => 13
[-1,4,5,2,3] => 16
[-1,4,5,2,-3] => 15
[-1,4,5,-2,3] => 15
[-1,4,5,-2,-3] => 14
[-1,4,-5,2,3] => 15
[-1,4,-5,2,-3] => 14
[-1,4,-5,-2,3] => 14
[-1,4,-5,-2,-3] => 13
[-1,-4,5,2,3] => 15
[-1,-4,5,2,-3] => 14
[-1,-4,5,-2,3] => 14
[-1,-4,5,-2,-3] => 13
[-1,-4,-5,2,3] => 14
[-1,-4,-5,2,-3] => 13
[-1,-4,-5,-2,3] => 13
[-1,-4,-5,-2,-3] => 12
[1,4,5,3,2] => 19
[1,4,5,3,-2] => 18
[1,4,5,-3,2] => 14
[1,4,5,-3,-2] => 13
[1,4,-5,3,2] => 18
[1,4,-5,3,-2] => 17
[1,4,-5,-3,2] => 13
[1,4,-5,-3,-2] => 12
[1,-4,5,3,2] => 18
[1,-4,5,3,-2] => 17
[1,-4,5,-3,2] => 13
[1,-4,5,-3,-2] => 12
[1,-4,-5,3,2] => 17
[1,-4,-5,3,-2] => 16
[1,-4,-5,-3,2] => 12
[1,-4,-5,-3,-2] => 11
[-1,4,5,3,2] => 18
[-1,4,5,3,-2] => 17
[-1,4,5,-3,2] => 13
[-1,4,5,-3,-2] => 12
[-1,4,-5,3,2] => 17
[-1,4,-5,3,-2] => 16
[-1,4,-5,-3,2] => 12
[-1,4,-5,-3,-2] => 11
[-1,-4,5,3,2] => 17
[-1,-4,5,3,-2] => 16
[-1,-4,5,-3,2] => 12
[-1,-4,5,-3,-2] => 11
[-1,-4,-5,3,2] => 16
[-1,-4,-5,3,-2] => 15
[-1,-4,-5,-3,2] => 11
[-1,-4,-5,-3,-2] => 10
[1,5,2,3,4] => 19
[1,5,2,3,-4] => 18
[1,5,2,-3,4] => 18
[1,5,2,-3,-4] => 17
[1,5,-2,3,4] => 18
[1,5,-2,3,-4] => 17
[1,5,-2,-3,4] => 17
[1,5,-2,-3,-4] => 16
[1,-5,2,3,4] => 18
[1,-5,2,3,-4] => 17
[1,-5,2,-3,4] => 17
[1,-5,2,-3,-4] => 16
[1,-5,-2,3,4] => 17
[1,-5,-2,3,-4] => 16
[1,-5,-2,-3,4] => 16
[1,-5,-2,-3,-4] => 15
[-1,5,2,3,4] => 18
[-1,5,2,3,-4] => 17
[-1,5,2,-3,4] => 17
[-1,5,2,-3,-4] => 16
[-1,5,-2,3,4] => 17
[-1,5,-2,3,-4] => 16
[-1,5,-2,-3,4] => 16
[-1,5,-2,-3,-4] => 15
[-1,-5,2,3,4] => 17
[-1,-5,2,3,-4] => 16
[-1,-5,2,-3,4] => 16
[-1,-5,2,-3,-4] => 15
[-1,-5,-2,3,4] => 16
[-1,-5,-2,3,-4] => 15
[-1,-5,-2,-3,4] => 15
[-1,-5,-2,-3,-4] => 14
[1,5,2,4,3] => 21
[1,5,2,4,-3] => 20
[1,5,2,-4,3] => 16
[1,5,2,-4,-3] => 15
[1,5,-2,4,3] => 20
[1,5,-2,4,-3] => 19
[1,5,-2,-4,3] => 15
[1,5,-2,-4,-3] => 14
[1,-5,2,4,3] => 20
[1,-5,2,4,-3] => 19
[1,-5,2,-4,3] => 15
[1,-5,2,-4,-3] => 14
[1,-5,-2,4,3] => 19
[1,-5,-2,4,-3] => 18
[1,-5,-2,-4,3] => 14
[1,-5,-2,-4,-3] => 13
[-1,5,2,4,3] => 20
[-1,5,2,4,-3] => 19
[-1,5,2,-4,3] => 15
[-1,5,2,-4,-3] => 14
[-1,5,-2,4,3] => 19
[-1,5,-2,4,-3] => 18
[-1,5,-2,-4,3] => 14
[-1,5,-2,-4,-3] => 13
[-1,-5,2,4,3] => 19
[-1,-5,2,4,-3] => 18
[-1,-5,2,-4,3] => 14
[-1,-5,2,-4,-3] => 13
[-1,-5,-2,4,3] => 18
[-1,-5,-2,4,-3] => 17
[-1,-5,-2,-4,3] => 13
[-1,-5,-2,-4,-3] => 12
[1,5,3,2,4] => 21
[1,5,3,2,-4] => 20
[1,5,3,-2,4] => 20
[1,5,3,-2,-4] => 19
[1,5,-3,2,4] => 16
[1,5,-3,2,-4] => 15
[1,5,-3,-2,4] => 15
[1,5,-3,-2,-4] => 14
[1,-5,3,2,4] => 20
[1,-5,3,2,-4] => 19
[1,-5,3,-2,4] => 19
[1,-5,3,-2,-4] => 18
[1,-5,-3,2,4] => 15
[1,-5,-3,2,-4] => 14
[1,-5,-3,-2,4] => 14
[1,-5,-3,-2,-4] => 13
[-1,5,3,2,4] => 20
[-1,5,3,2,-4] => 19
[-1,5,3,-2,4] => 19
[-1,5,3,-2,-4] => 18
[-1,5,-3,2,4] => 15
[-1,5,-3,2,-4] => 14
[-1,5,-3,-2,4] => 14
[-1,5,-3,-2,-4] => 13
[-1,-5,3,2,4] => 19
[-1,-5,3,2,-4] => 18
[-1,-5,3,-2,4] => 18
[-1,-5,3,-2,-4] => 17
[-1,-5,-3,2,4] => 14
[-1,-5,-3,2,-4] => 13
[-1,-5,-3,-2,4] => 13
[-1,-5,-3,-2,-4] => 12
[1,5,3,4,2] => 23
[1,5,3,4,-2] => 22
[1,5,3,-4,2] => 18
[1,5,3,-4,-2] => 17
[1,5,-3,4,2] => 18
[1,5,-3,4,-2] => 17
[1,5,-3,-4,2] => 13
[1,5,-3,-4,-2] => 12
[1,-5,3,4,2] => 22
[1,-5,3,4,-2] => 21
[1,-5,3,-4,2] => 17
[1,-5,3,-4,-2] => 16
[1,-5,-3,4,2] => 17
[1,-5,-3,4,-2] => 16
[1,-5,-3,-4,2] => 12
[1,-5,-3,-4,-2] => 11
[-1,5,3,4,2] => 22
[-1,5,3,4,-2] => 21
[-1,5,3,-4,2] => 17
[-1,5,3,-4,-2] => 16
[-1,5,-3,4,2] => 17
[-1,5,-3,4,-2] => 16
[-1,5,-3,-4,2] => 12
[-1,5,-3,-4,-2] => 11
[-1,-5,3,4,2] => 21
[-1,-5,3,4,-2] => 20
[-1,-5,3,-4,2] => 16
[-1,-5,3,-4,-2] => 15
[-1,-5,-3,4,2] => 16
[-1,-5,-3,4,-2] => 15
[-1,-5,-3,-4,2] => 11
[-1,-5,-3,-4,-2] => 10
[1,5,4,2,3] => 19
[1,5,4,2,-3] => 18
[1,5,4,-2,3] => 18
[1,5,4,-2,-3] => 17
[1,5,-4,2,3] => 14
[1,5,-4,2,-3] => 13
[1,5,-4,-2,3] => 13
[1,5,-4,-2,-3] => 12
[1,-5,4,2,3] => 18
[1,-5,4,2,-3] => 17
[1,-5,4,-2,3] => 17
[1,-5,4,-2,-3] => 16
[1,-5,-4,2,3] => 13
[1,-5,-4,2,-3] => 12
[1,-5,-4,-2,3] => 12
[1,-5,-4,-2,-3] => 11
[-1,5,4,2,3] => 18
[-1,5,4,2,-3] => 17
[-1,5,4,-2,3] => 17
[-1,5,4,-2,-3] => 16
[-1,5,-4,2,3] => 13
[-1,5,-4,2,-3] => 12
[-1,5,-4,-2,3] => 12
[-1,5,-4,-2,-3] => 11
[-1,-5,4,2,3] => 17
[-1,-5,4,2,-3] => 16
[-1,-5,4,-2,3] => 16
[-1,-5,4,-2,-3] => 15
[-1,-5,-4,2,3] => 12
[-1,-5,-4,2,-3] => 11
[-1,-5,-4,-2,3] => 11
[-1,-5,-4,-2,-3] => 10
[1,5,4,3,2] => 21
[1,5,4,3,-2] => 20
[1,5,4,-3,2] => 16
[1,5,4,-3,-2] => 15
[1,5,-4,3,2] => 16
[1,5,-4,3,-2] => 15
[1,5,-4,-3,2] => 11
[1,5,-4,-3,-2] => 10
[1,-5,4,3,2] => 20
[1,-5,4,3,-2] => 19
[1,-5,4,-3,2] => 15
[1,-5,4,-3,-2] => 14
[1,-5,-4,3,2] => 15
[1,-5,-4,3,-2] => 14
[1,-5,-4,-3,2] => 10
[1,-5,-4,-3,-2] => 9
[-1,5,4,3,2] => 20
[-1,5,4,3,-2] => 19
[-1,5,4,-3,2] => 15
[-1,5,4,-3,-2] => 14
[-1,5,-4,3,2] => 15
[-1,5,-4,3,-2] => 14
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
click to show known generating functions       
Description
The number of alignments of a signed permutation.
An alignment of a signed permutation $\pi\in\mathfrak H_n$ is a pair $-n \leq i \leq j \leq n$, $i,j\neq 0$, such that one of the following conditions hold:
  • $i < j \leq \pi(j) < \pi(i)$, and $j > 0$ if it is a fixed point, or
  • $\pi(j) < \pi(i) \leq i < j)$ and $i < 0$ if it is a fixed point, or
  • $i \leq \pi(i) < \pi(j) \leq j$ and $i > 0$ if it is a fixed point and $j < 0$ if it is a fixed point, or
  • $\pi(i) \leq i < j \leq \pi(j)$ and $i < 0$ if it is a fixed point and $j > 0$ if it is a fixed point.
Let $al$ be the number of alignments of $\pi$, $cr$ be the number of crossings, St001862The number of crossings of a signed permutation., and let $fwex$ be the number of flag weak excedances, St001817The number of flag weak exceedances of a signed permutation.. Then
$$2 cr + al = n^2 - 2n + fwex.$$
References
[1] Corteel, S., Josuat-Vergès, M., Kim, J. S. Crossings of signed permutations and $q$-Eulerian numbers of type $B$ MathSciNet:3096133
Code
def statistic(pi):
    n = len(pi)
    al = []
    for j in range(-n, n+1):
        if j == 0:
            continue
        for i in range(-n, j):
            if i == 0:
                continue
            if ((i < j <= pi(j) < pi(i))
                and (j < pi(j) or j > 0)):
                al.append((i, j))
            elif ((pi(j) < pi(i) <= i < j)
                  and (pi(i) < i or i < 0)):
                al.append((i, j))
            elif ((i <= pi(i) < pi(j) <= j)
                  and (i < pi(i) or i > 0)
                  and (pi(j) < j or j < 0)):
                al.append((i, j))
            elif ((pi(i) <= i < j <= pi(j))
                  and (pi(i) < i or i < 0)
                  and (j < pi(j) or j > 0)):
                al.append((i, j))
    return len(al)

Created
Dec 01, 2022 at 11:07 by Martin Rubey
Updated
Dec 01, 2022 at 11:07 by Martin Rubey