Identifier
Identifier
Values
[1] => 1
[1,2] => 1
[2,1] => 2
[1,2,3] => 1
[1,3,2] => 2
[2,1,3] => 2
[2,3,1] => 3
[3,1,2] => 3
[3,2,1] => 6
[1,2,3,4] => 1
[1,2,4,3] => 2
[1,3,2,4] => 2
[1,3,4,2] => 3
[1,4,2,3] => 3
[1,4,3,2] => 6
[2,1,3,4] => 2
[2,1,4,3] => 4
[2,3,1,4] => 3
[2,3,4,1] => 4
[2,4,1,3] => 5
[2,4,3,1] => 8
[3,1,2,4] => 3
[3,1,4,2] => 5
[3,2,1,4] => 6
[3,2,4,1] => 8
[3,4,1,2] => 6
[3,4,2,1] => 12
[4,1,2,3] => 4
[4,1,3,2] => 8
[4,2,1,3] => 8
[4,2,3,1] => 12
[4,3,1,2] => 12
[4,3,2,1] => 24
[1,2,3,4,5] => 1
[1,2,3,5,4] => 2
[1,2,4,3,5] => 2
[1,2,4,5,3] => 3
[1,2,5,3,4] => 3
[1,2,5,4,3] => 6
[1,3,2,4,5] => 2
[1,3,2,5,4] => 4
[1,3,4,2,5] => 3
[1,3,4,5,2] => 4
[1,3,5,2,4] => 5
[1,3,5,4,2] => 8
[1,4,2,3,5] => 3
[1,4,2,5,3] => 5
[1,4,3,2,5] => 6
[1,4,3,5,2] => 8
[1,4,5,2,3] => 6
[1,4,5,3,2] => 12
[1,5,2,3,4] => 4
[1,5,2,4,3] => 8
[1,5,3,2,4] => 8
[1,5,3,4,2] => 12
[1,5,4,2,3] => 12
[1,5,4,3,2] => 24
[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] => 12
[2,3,1,4,5] => 3
[2,3,1,5,4] => 6
[2,3,4,1,5] => 4
[2,3,4,5,1] => 5
[2,3,5,1,4] => 7
[2,3,5,4,1] => 10
[2,4,1,3,5] => 5
[2,4,1,5,3] => 8
[2,4,3,1,5] => 8
[2,4,3,5,1] => 10
[2,4,5,1,3] => 9
[2,4,5,3,1] => 15
[2,5,1,3,4] => 7
[2,5,1,4,3] => 14
[2,5,3,1,4] => 11
[2,5,3,4,1] => 15
[2,5,4,1,3] => 18
[2,5,4,3,1] => 30
[3,1,2,4,5] => 3
[3,1,2,5,4] => 6
[3,1,4,2,5] => 5
[3,1,4,5,2] => 7
[3,1,5,2,4] => 8
[3,1,5,4,2] => 14
[3,2,1,4,5] => 6
[3,2,1,5,4] => 12
[3,2,4,1,5] => 8
[3,2,4,5,1] => 10
[3,2,5,1,4] => 14
[3,2,5,4,1] => 20
[3,4,1,2,5] => 6
[3,4,1,5,2] => 9
[3,4,2,1,5] => 12
[3,4,2,5,1] => 15
[3,4,5,1,2] => 10
[3,4,5,2,1] => 20
[3,5,1,2,4] => 9
[3,5,1,4,2] => 16
[3,5,2,1,4] => 18
[3,5,2,4,1] => 25
[3,5,4,1,2] => 20
[3,5,4,2,1] => 40
[4,1,2,3,5] => 4
[4,1,2,5,3] => 7
[4,1,3,2,5] => 8
[4,1,3,5,2] => 11
[4,1,5,2,3] => 9
[4,1,5,3,2] => 18
[4,2,1,3,5] => 8
[4,2,1,5,3] => 14
[4,2,3,1,5] => 12
[4,2,3,5,1] => 15
[4,2,5,1,3] => 16
[4,2,5,3,1] => 25
[4,3,1,2,5] => 12
[4,3,1,5,2] => 18
[4,3,2,1,5] => 24
[4,3,2,5,1] => 30
[4,3,5,1,2] => 20
[4,3,5,2,1] => 40
[4,5,1,2,3] => 10
[4,5,1,3,2] => 20
[4,5,2,1,3] => 20
[4,5,2,3,1] => 30
[4,5,3,1,2] => 30
[4,5,3,2,1] => 60
[5,1,2,3,4] => 5
[5,1,2,4,3] => 10
[5,1,3,2,4] => 10
[5,1,3,4,2] => 15
[5,1,4,2,3] => 15
[5,1,4,3,2] => 30
[5,2,1,3,4] => 10
[5,2,1,4,3] => 20
[5,2,3,1,4] => 15
[5,2,3,4,1] => 20
[5,2,4,1,3] => 25
[5,2,4,3,1] => 40
[5,3,1,2,4] => 15
[5,3,1,4,2] => 25
[5,3,2,1,4] => 30
[5,3,2,4,1] => 40
[5,3,4,1,2] => 30
[5,3,4,2,1] => 60
[5,4,1,2,3] => 20
[5,4,1,3,2] => 40
[5,4,2,1,3] => 40
[5,4,2,3,1] => 60
[5,4,3,1,2] => 60
[5,4,3,2,1] => 120
[1,2,3,4,5,6] => 1
[1,2,3,4,6,5] => 2
[1,2,3,5,4,6] => 2
[1,2,3,5,6,4] => 3
[1,2,3,6,4,5] => 3
[1,2,3,6,5,4] => 6
[1,2,4,3,5,6] => 2
[1,2,4,3,6,5] => 4
[1,2,4,5,3,6] => 3
[1,2,4,5,6,3] => 4
[1,2,4,6,3,5] => 5
[1,2,4,6,5,3] => 8
[1,2,5,3,4,6] => 3
[1,2,5,3,6,4] => 5
[1,2,5,4,3,6] => 6
[1,2,5,4,6,3] => 8
[1,2,5,6,3,4] => 6
[1,2,5,6,4,3] => 12
[1,2,6,3,4,5] => 4
[1,2,6,3,5,4] => 8
[1,2,6,4,3,5] => 8
[1,2,6,4,5,3] => 12
[1,2,6,5,3,4] => 12
[1,2,6,5,4,3] => 24
[1,3,2,4,5,6] => 2
[1,3,2,4,6,5] => 4
[1,3,2,5,4,6] => 4
[1,3,2,5,6,4] => 6
[1,3,2,6,4,5] => 6
[1,3,2,6,5,4] => 12
[1,3,4,2,5,6] => 3
[1,3,4,2,6,5] => 6
[1,3,4,5,2,6] => 4
[1,3,4,5,6,2] => 5
[1,3,4,6,2,5] => 7
[1,3,4,6,5,2] => 10
[1,3,5,2,4,6] => 5
[1,3,5,2,6,4] => 8
[1,3,5,4,2,6] => 8
[1,3,5,4,6,2] => 10
[1,3,5,6,2,4] => 9
[1,3,5,6,4,2] => 15
[1,3,6,2,4,5] => 7
[1,3,6,2,5,4] => 14
[1,3,6,4,2,5] => 11
[1,3,6,4,5,2] => 15
[1,3,6,5,2,4] => 18
[1,3,6,5,4,2] => 30
[1,4,2,3,5,6] => 3
[1,4,2,3,6,5] => 6
[1,4,2,5,3,6] => 5
[1,4,2,5,6,3] => 7
[1,4,2,6,3,5] => 8
[1,4,2,6,5,3] => 14
[1,4,3,2,5,6] => 6
[1,4,3,2,6,5] => 12
[1,4,3,5,2,6] => 8
[1,4,3,5,6,2] => 10
[1,4,3,6,2,5] => 14
[1,4,3,6,5,2] => 20
[1,4,5,2,3,6] => 6
[1,4,5,2,6,3] => 9
[1,4,5,3,2,6] => 12
[1,4,5,3,6,2] => 15
[1,4,5,6,2,3] => 10
[1,4,5,6,3,2] => 20
[1,4,6,2,3,5] => 9
[1,4,6,2,5,3] => 16
[1,4,6,3,2,5] => 18
[1,4,6,3,5,2] => 25
[1,4,6,5,2,3] => 20
[1,4,6,5,3,2] => 40
[1,5,2,3,4,6] => 4
[1,5,2,3,6,4] => 7
[1,5,2,4,3,6] => 8
[1,5,2,4,6,3] => 11
[1,5,2,6,3,4] => 9
[1,5,2,6,4,3] => 18
[1,5,3,2,4,6] => 8
[1,5,3,2,6,4] => 14
[1,5,3,4,2,6] => 12
[1,5,3,4,6,2] => 15
[1,5,3,6,2,4] => 16
[1,5,3,6,4,2] => 25
[1,5,4,2,3,6] => 12
[1,5,4,2,6,3] => 18
[1,5,4,3,2,6] => 24
[1,5,4,3,6,2] => 30
[1,5,4,6,2,3] => 20
[1,5,4,6,3,2] => 40
[1,5,6,2,3,4] => 10
[1,5,6,2,4,3] => 20
[1,5,6,3,2,4] => 20
[1,5,6,3,4,2] => 30
[1,5,6,4,2,3] => 30
[1,5,6,4,3,2] => 60
[1,6,2,3,4,5] => 5
[1,6,2,3,5,4] => 10
[1,6,2,4,3,5] => 10
[1,6,2,4,5,3] => 15
[1,6,2,5,3,4] => 15
[1,6,2,5,4,3] => 30
[1,6,3,2,4,5] => 10
[1,6,3,2,5,4] => 20
[1,6,3,4,2,5] => 15
[1,6,3,4,5,2] => 20
[1,6,3,5,2,4] => 25
[1,6,3,5,4,2] => 40
[1,6,4,2,3,5] => 15
[1,6,4,2,5,3] => 25
[1,6,4,3,2,5] => 30
[1,6,4,3,5,2] => 40
[1,6,4,5,2,3] => 30
[1,6,4,5,3,2] => 60
[1,6,5,2,3,4] => 20
[1,6,5,2,4,3] => 40
[1,6,5,3,2,4] => 40
[1,6,5,3,4,2] => 60
[1,6,5,4,2,3] => 60
[1,6,5,4,3,2] => 120
[2,1,3,4,5,6] => 2
[2,1,3,4,6,5] => 4
[2,1,3,5,4,6] => 4
[2,1,3,5,6,4] => 6
[2,1,3,6,4,5] => 6
[2,1,3,6,5,4] => 12
[2,1,4,3,5,6] => 4
[2,1,4,3,6,5] => 8
[2,1,4,5,3,6] => 6
[2,1,4,5,6,3] => 8
[2,1,4,6,3,5] => 10
[2,1,4,6,5,3] => 16
[2,1,5,3,4,6] => 6
[2,1,5,3,6,4] => 10
[2,1,5,4,3,6] => 12
[2,1,5,4,6,3] => 16
[2,1,5,6,3,4] => 12
[2,1,5,6,4,3] => 24
[2,1,6,3,4,5] => 8
[2,1,6,3,5,4] => 16
[2,1,6,4,3,5] => 16
[2,1,6,4,5,3] => 24
[2,1,6,5,3,4] => 24
[2,1,6,5,4,3] => 48
[2,3,1,4,5,6] => 3
[2,3,1,4,6,5] => 6
[2,3,1,5,4,6] => 6
[2,3,1,5,6,4] => 9
[2,3,1,6,4,5] => 9
[2,3,1,6,5,4] => 18
[2,3,4,1,5,6] => 4
[2,3,4,1,6,5] => 8
[2,3,4,5,1,6] => 5
[2,3,4,5,6,1] => 6
[2,3,4,6,1,5] => 9
[2,3,4,6,5,1] => 12
[2,3,5,1,4,6] => 7
[2,3,5,1,6,4] => 11
[2,3,5,4,1,6] => 10
[2,3,5,4,6,1] => 12
[2,3,5,6,1,4] => 12
[2,3,5,6,4,1] => 18
[2,3,6,1,4,5] => 10
[2,3,6,1,5,4] => 20
[2,3,6,4,1,5] => 14
[2,3,6,4,5,1] => 18
[2,3,6,5,1,4] => 24
[2,3,6,5,4,1] => 36
[2,4,1,3,5,6] => 5
[2,4,1,3,6,5] => 10
[2,4,1,5,3,6] => 8
[2,4,1,5,6,3] => 11
[2,4,1,6,3,5] => 13
[2,4,1,6,5,3] => 22
[2,4,3,1,5,6] => 8
[2,4,3,1,6,5] => 16
[2,4,3,5,1,6] => 10
[2,4,3,5,6,1] => 12
[2,4,3,6,1,5] => 18
[2,4,3,6,5,1] => 24
[2,4,5,1,3,6] => 9
[2,4,5,1,6,3] => 13
[2,4,5,3,1,6] => 15
[2,4,5,3,6,1] => 18
[2,4,5,6,1,3] => 14
[2,4,5,6,3,1] => 24
[2,4,6,1,3,5] => 14
[2,4,6,1,5,3] => 24
[2,4,6,3,1,5] => 23
[2,4,6,3,5,1] => 30
[2,4,6,5,1,3] => 28
[2,4,6,5,3,1] => 48
[2,5,1,3,4,6] => 7
[2,5,1,3,6,4] => 12
[2,5,1,4,3,6] => 14
[2,5,1,4,6,3] => 19
[2,5,1,6,3,4] => 15
[2,5,1,6,4,3] => 30
[2,5,3,1,4,6] => 11
[2,5,3,1,6,4] => 19
[2,5,3,4,1,6] => 15
[2,5,3,4,6,1] => 18
[2,5,3,6,1,4] => 21
[2,5,3,6,4,1] => 30
[2,5,4,1,3,6] => 18
[2,5,4,1,6,3] => 26
[2,5,4,3,1,6] => 30
[2,5,4,3,6,1] => 36
[2,5,4,6,1,3] => 28
[2,5,4,6,3,1] => 48
[2,5,6,1,3,4] => 16
[2,5,6,1,4,3] => 32
[2,5,6,3,1,4] => 26
[2,5,6,3,4,1] => 36
[2,5,6,4,1,3] => 42
[2,5,6,4,3,1] => 72
[2,6,1,3,4,5] => 9
[2,6,1,3,5,4] => 18
[2,6,1,4,3,5] => 18
[2,6,1,4,5,3] => 27
[2,6,1,5,3,4] => 27
[2,6,1,5,4,3] => 54
[2,6,3,1,4,5] => 14
[2,6,3,1,5,4] => 28
[2,6,3,4,1,5] => 19
[2,6,3,4,5,1] => 24
[2,6,3,5,1,4] => 33
[2,6,3,5,4,1] => 48
[2,6,4,1,3,5] => 23
[2,6,4,1,5,3] => 37
[2,6,4,3,1,5] => 38
[2,6,4,3,5,1] => 48
[2,6,4,5,1,3] => 42
[2,6,4,5,3,1] => 72
[2,6,5,1,3,4] => 32
[2,6,5,1,4,3] => 64
[2,6,5,3,1,4] => 52
[2,6,5,3,4,1] => 72
[2,6,5,4,1,3] => 84
[2,6,5,4,3,1] => 144
[3,1,2,4,5,6] => 3
[3,1,2,4,6,5] => 6
[3,1,2,5,4,6] => 6
[3,1,2,5,6,4] => 9
[3,1,2,6,4,5] => 9
[3,1,2,6,5,4] => 18
[3,1,4,2,5,6] => 5
[3,1,4,2,6,5] => 10
[3,1,4,5,2,6] => 7
[3,1,4,5,6,2] => 9
[3,1,4,6,2,5] => 12
[3,1,4,6,5,2] => 18
[3,1,5,2,4,6] => 8
[3,1,5,2,6,4] => 13
[3,1,5,4,2,6] => 14
[3,1,5,4,6,2] => 18
[3,1,5,6,2,4] => 15
[3,1,5,6,4,2] => 27
[3,1,6,2,4,5] => 11
[3,1,6,2,5,4] => 22
[3,1,6,4,2,5] => 19
[3,1,6,4,5,2] => 27
[3,1,6,5,2,4] => 30
[3,1,6,5,4,2] => 54
[3,2,1,4,5,6] => 6
[3,2,1,4,6,5] => 12
[3,2,1,5,4,6] => 12
[3,2,1,5,6,4] => 18
[3,2,1,6,4,5] => 18
[3,2,1,6,5,4] => 36
[3,2,4,1,5,6] => 8
[3,2,4,1,6,5] => 16
[3,2,4,5,1,6] => 10
[3,2,4,5,6,1] => 12
[3,2,4,6,1,5] => 18
[3,2,4,6,5,1] => 24
[3,2,5,1,4,6] => 14
[3,2,5,1,6,4] => 22
[3,2,5,4,1,6] => 20
[3,2,5,4,6,1] => 24
[3,2,5,6,1,4] => 24
[3,2,5,6,4,1] => 36
[3,2,6,1,4,5] => 20
[3,2,6,1,5,4] => 40
[3,2,6,4,1,5] => 28
[3,2,6,4,5,1] => 36
[3,2,6,5,1,4] => 48
[3,2,6,5,4,1] => 72
[3,4,1,2,5,6] => 6
[3,4,1,2,6,5] => 12
[3,4,1,5,2,6] => 9
[3,4,1,5,6,2] => 12
[3,4,1,6,2,5] => 15
[3,4,1,6,5,2] => 24
[3,4,2,1,5,6] => 12
[3,4,2,1,6,5] => 24
[3,4,2,5,1,6] => 15
[3,4,2,5,6,1] => 18
[3,4,2,6,1,5] => 27
[3,4,2,6,5,1] => 36
[3,4,5,1,2,6] => 10
[3,4,5,1,6,2] => 14
[3,4,5,2,1,6] => 20
[3,4,5,2,6,1] => 24
[3,4,5,6,1,2] => 15
[3,4,5,6,2,1] => 30
[3,4,6,1,2,5] => 16
[3,4,6,1,5,2] => 26
[3,4,6,2,1,5] => 32
[3,4,6,2,5,1] => 42
[3,4,6,5,1,2] => 30
[3,4,6,5,2,1] => 60
[3,5,1,2,4,6] => 9
[3,5,1,2,6,4] => 15
[3,5,1,4,2,6] => 16
[3,5,1,4,6,2] => 21
[3,5,1,6,2,4] => 18
[3,5,1,6,4,2] => 33
[3,5,2,1,4,6] => 18
[3,5,2,1,6,4] => 30
[3,5,2,4,1,6] => 25
[3,5,2,4,6,1] => 30
[3,5,2,6,1,4] => 33
[3,5,2,6,4,1] => 48
[3,5,4,1,2,6] => 20
[3,5,4,1,6,2] => 28
[3,5,4,2,1,6] => 40
[3,5,4,2,6,1] => 48
[3,5,4,6,1,2] => 30
[3,5,4,6,2,1] => 60
[3,5,6,1,2,4] => 19
[3,5,6,1,4,2] => 35
[3,5,6,2,1,4] => 38
[3,5,6,2,4,1] => 54
[3,5,6,4,1,2] => 45
[3,5,6,4,2,1] => 90
[3,6,1,2,4,5] => 12
[3,6,1,2,5,4] => 24
[3,6,1,4,2,5] => 21
[3,6,1,4,5,2] => 30
[3,6,1,5,2,4] => 33
[3,6,1,5,4,2] => 60
[3,6,2,1,4,5] => 24
[3,6,2,1,5,4] => 48
[3,6,2,4,1,5] => 33
[3,6,2,4,5,1] => 42
[3,6,2,5,1,4] => 57
[3,6,2,5,4,1] => 84
[3,6,4,1,2,5] => 26
[3,6,4,1,5,2] => 40
[3,6,4,2,1,5] => 52
[3,6,4,2,5,1] => 66
[3,6,4,5,1,2] => 45
[3,6,4,5,2,1] => 90
[3,6,5,1,2,4] => 38
[3,6,5,1,4,2] => 70
[3,6,5,2,1,4] => 76
[3,6,5,2,4,1] => 108
[3,6,5,4,1,2] => 90
[3,6,5,4,2,1] => 180
[4,1,2,3,5,6] => 4
[4,1,2,3,6,5] => 8
[4,1,2,5,3,6] => 7
[4,1,2,5,6,3] => 10
[4,1,2,6,3,5] => 11
[4,1,2,6,5,3] => 20
[4,1,3,2,5,6] => 8
[4,1,3,2,6,5] => 16
[4,1,3,5,2,6] => 11
[4,1,3,5,6,2] => 14
[4,1,3,6,2,5] => 19
[4,1,3,6,5,2] => 28
[4,1,5,2,3,6] => 9
[4,1,5,2,6,3] => 14
[4,1,5,3,2,6] => 18
[4,1,5,3,6,2] => 23
[4,1,5,6,2,3] => 16
[4,1,5,6,3,2] => 32
[4,1,6,2,3,5] => 13
[4,1,6,2,5,3] => 24
[4,1,6,3,2,5] => 26
[4,1,6,3,5,2] => 37
[4,1,6,5,2,3] => 32
[4,1,6,5,3,2] => 64
[4,2,1,3,5,6] => 8
[4,2,1,3,6,5] => 16
[4,2,1,5,3,6] => 14
[4,2,1,5,6,3] => 20
[4,2,1,6,3,5] => 22
[4,2,1,6,5,3] => 40
[4,2,3,1,5,6] => 12
[4,2,3,1,6,5] => 24
[4,2,3,5,1,6] => 15
[4,2,3,5,6,1] => 18
[4,2,3,6,1,5] => 27
[4,2,3,6,5,1] => 36
[4,2,5,1,3,6] => 16
[4,2,5,1,6,3] => 24
[4,2,5,3,1,6] => 25
[4,2,5,3,6,1] => 30
[4,2,5,6,1,3] => 26
[4,2,5,6,3,1] => 42
[4,2,6,1,3,5] => 24
[4,2,6,1,5,3] => 44
[4,2,6,3,1,5] => 37
[4,2,6,3,5,1] => 48
[4,2,6,5,1,3] => 52
[4,2,6,5,3,1] => 84
[4,3,1,2,5,6] => 12
[4,3,1,2,6,5] => 24
[4,3,1,5,2,6] => 18
[4,3,1,5,6,2] => 24
[4,3,1,6,2,5] => 30
[4,3,1,6,5,2] => 48
[4,3,2,1,5,6] => 24
[4,3,2,1,6,5] => 48
[4,3,2,5,1,6] => 30
[4,3,2,5,6,1] => 36
[4,3,2,6,1,5] => 54
[4,3,2,6,5,1] => 72
[4,3,5,1,2,6] => 20
[4,3,5,1,6,2] => 28
[4,3,5,2,1,6] => 40
[4,3,5,2,6,1] => 48
[4,3,5,6,1,2] => 30
[4,3,5,6,2,1] => 60
[4,3,6,1,2,5] => 32
[4,3,6,1,5,2] => 52
[4,3,6,2,1,5] => 64
[4,3,6,2,5,1] => 84
[4,3,6,5,1,2] => 60
[4,3,6,5,2,1] => 120
[4,5,1,2,3,6] => 10
[4,5,1,2,6,3] => 16
[4,5,1,3,2,6] => 20
[4,5,1,3,6,2] => 26
[4,5,1,6,2,3] => 19
[4,5,1,6,3,2] => 38
[4,5,2,1,3,6] => 20
[4,5,2,1,6,3] => 32
[4,5,2,3,1,6] => 30
[4,5,2,3,6,1] => 36
[4,5,2,6,1,3] => 35
[4,5,2,6,3,1] => 54
[4,5,3,1,2,6] => 30
[4,5,3,1,6,2] => 42
[4,5,3,2,1,6] => 60
[4,5,3,2,6,1] => 72
[4,5,3,6,1,2] => 45
[4,5,3,6,2,1] => 90
[4,5,6,1,2,3] => 20
[4,5,6,1,3,2] => 40
[4,5,6,2,1,3] => 40
[4,5,6,2,3,1] => 60
[4,5,6,3,1,2] => 60
[4,5,6,3,2,1] => 120
[4,6,1,2,3,5] => 14
[4,6,1,2,5,3] => 26
[4,6,1,3,2,5] => 28
[4,6,1,3,5,2] => 40
[4,6,1,5,2,3] => 35
[4,6,1,5,3,2] => 70
[4,6,2,1,3,5] => 28
[4,6,2,1,5,3] => 52
[4,6,2,3,1,5] => 42
[4,6,2,3,5,1] => 54
[4,6,2,5,1,3] => 61
[4,6,2,5,3,1] => 96
[4,6,3,1,2,5] => 42
[4,6,3,1,5,2] => 66
[4,6,3,2,1,5] => 84
[4,6,3,2,5,1] => 108
[4,6,3,5,1,2] => 75
[4,6,3,5,2,1] => 150
[4,6,5,1,2,3] => 40
[4,6,5,1,3,2] => 80
[4,6,5,2,1,3] => 80
[4,6,5,2,3,1] => 120
[4,6,5,3,1,2] => 120
[4,6,5,3,2,1] => 240
[5,1,2,3,4,6] => 5
[5,1,2,3,6,4] => 9
[5,1,2,4,3,6] => 10
[5,1,2,4,6,3] => 14
[5,1,2,6,3,4] => 12
[5,1,2,6,4,3] => 24
[5,1,3,2,4,6] => 10
[5,1,3,2,6,4] => 18
[5,1,3,4,2,6] => 15
[5,1,3,4,6,2] => 19
[5,1,3,6,2,4] => 21
[5,1,3,6,4,2] => 33
[5,1,4,2,3,6] => 15
[5,1,4,2,6,3] => 23
[5,1,4,3,2,6] => 30
[5,1,4,3,6,2] => 38
[5,1,4,6,2,3] => 26
[5,1,4,6,3,2] => 52
[5,1,6,2,3,4] => 14
[5,1,6,2,4,3] => 28
[5,1,6,3,2,4] => 28
[5,1,6,3,4,2] => 42
[5,1,6,4,2,3] => 42
[5,1,6,4,3,2] => 84
[5,2,1,3,4,6] => 10
[5,2,1,3,6,4] => 18
[5,2,1,4,3,6] => 20
[5,2,1,4,6,3] => 28
[5,2,1,6,3,4] => 24
[5,2,1,6,4,3] => 48
[5,2,3,1,4,6] => 15
[5,2,3,1,6,4] => 27
[5,2,3,4,1,6] => 20
[5,2,3,4,6,1] => 24
[5,2,3,6,1,4] => 30
[5,2,3,6,4,1] => 42
[5,2,4,1,3,6] => 25
[5,2,4,1,6,3] => 37
[5,2,4,3,1,6] => 40
[5,2,4,3,6,1] => 48
[5,2,4,6,1,3] => 40
[5,2,4,6,3,1] => 66
[5,2,6,1,3,4] => 26
[5,2,6,1,4,3] => 52
[5,2,6,3,1,4] => 40
[5,2,6,3,4,1] => 54
[5,2,6,4,1,3] => 66
[5,2,6,4,3,1] => 108
[5,3,1,2,4,6] => 15
[5,3,1,2,6,4] => 27
[5,3,1,4,2,6] => 25
[5,3,1,4,6,2] => 33
[5,3,1,6,2,4] => 33
[5,3,1,6,4,2] => 57
[5,3,2,1,4,6] => 30
[5,3,2,1,6,4] => 54
[5,3,2,4,1,6] => 40
[5,3,2,4,6,1] => 48
[5,3,2,6,1,4] => 60
[5,3,2,6,4,1] => 84
[5,3,4,1,2,6] => 30
[5,3,4,1,6,2] => 42
[5,3,4,2,1,6] => 60
[5,3,4,2,6,1] => 72
[5,3,4,6,1,2] => 45
[5,3,4,6,2,1] => 90
[5,3,6,1,2,4] => 35
[5,3,6,1,4,2] => 61
[5,3,6,2,1,4] => 70
[5,3,6,2,4,1] => 96
[5,3,6,4,1,2] => 75
[5,3,6,4,2,1] => 150
[5,4,1,2,3,6] => 20
[5,4,1,2,6,3] => 32
[5,4,1,3,2,6] => 40
[5,4,1,3,6,2] => 52
[5,4,1,6,2,3] => 38
[5,4,1,6,3,2] => 76
[5,4,2,1,3,6] => 40
[5,4,2,1,6,3] => 64
[5,4,2,3,1,6] => 60
[5,4,2,3,6,1] => 72
[5,4,2,6,1,3] => 70
[5,4,2,6,3,1] => 108
[5,4,3,1,2,6] => 60
[5,4,3,1,6,2] => 84
[5,4,3,2,1,6] => 120
[5,4,3,2,6,1] => 144
[5,4,3,6,1,2] => 90
[5,4,3,6,2,1] => 180
[5,4,6,1,2,3] => 40
[5,4,6,1,3,2] => 80
[5,4,6,2,1,3] => 80
[5,4,6,2,3,1] => 120
[5,4,6,3,1,2] => 120
[5,4,6,3,2,1] => 240
[5,6,1,2,3,4] => 15
[5,6,1,2,4,3] => 30
[5,6,1,3,2,4] => 30
[5,6,1,3,4,2] => 45
[5,6,1,4,2,3] => 45
[5,6,1,4,3,2] => 90
[5,6,2,1,3,4] => 30
[5,6,2,1,4,3] => 60
[5,6,2,3,1,4] => 45
[5,6,2,3,4,1] => 60
[5,6,2,4,1,3] => 75
[5,6,2,4,3,1] => 120
[5,6,3,1,2,4] => 45
[5,6,3,1,4,2] => 75
[5,6,3,2,1,4] => 90
[5,6,3,2,4,1] => 120
[5,6,3,4,1,2] => 90
[5,6,3,4,2,1] => 180
[5,6,4,1,2,3] => 60
[5,6,4,1,3,2] => 120
[5,6,4,2,1,3] => 120
[5,6,4,2,3,1] => 180
[5,6,4,3,1,2] => 180
[5,6,4,3,2,1] => 360
[6,1,2,3,4,5] => 6
[6,1,2,3,5,4] => 12
[6,1,2,4,3,5] => 12
[6,1,2,4,5,3] => 18
[6,1,2,5,3,4] => 18
[6,1,2,5,4,3] => 36
[6,1,3,2,4,5] => 12
[6,1,3,2,5,4] => 24
[6,1,3,4,2,5] => 18
[6,1,3,4,5,2] => 24
[6,1,3,5,2,4] => 30
[6,1,3,5,4,2] => 48
[6,1,4,2,3,5] => 18
[6,1,4,2,5,3] => 30
[6,1,4,3,2,5] => 36
[6,1,4,3,5,2] => 48
[6,1,4,5,2,3] => 36
[6,1,4,5,3,2] => 72
[6,1,5,2,3,4] => 24
[6,1,5,2,4,3] => 48
[6,1,5,3,2,4] => 48
[6,1,5,3,4,2] => 72
[6,1,5,4,2,3] => 72
[6,1,5,4,3,2] => 144
[6,2,1,3,4,5] => 12
[6,2,1,3,5,4] => 24
[6,2,1,4,3,5] => 24
[6,2,1,4,5,3] => 36
[6,2,1,5,3,4] => 36
[6,2,1,5,4,3] => 72
[6,2,3,1,4,5] => 18
[6,2,3,1,5,4] => 36
[6,2,3,4,1,5] => 24
[6,2,3,4,5,1] => 30
[6,2,3,5,1,4] => 42
[6,2,3,5,4,1] => 60
[6,2,4,1,3,5] => 30
[6,2,4,1,5,3] => 48
[6,2,4,3,1,5] => 48
[6,2,4,3,5,1] => 60
[6,2,4,5,1,3] => 54
[6,2,4,5,3,1] => 90
[6,2,5,1,3,4] => 42
[6,2,5,1,4,3] => 84
[6,2,5,3,1,4] => 66
[6,2,5,3,4,1] => 90
[6,2,5,4,1,3] => 108
[6,2,5,4,3,1] => 180
[6,3,1,2,4,5] => 18
[6,3,1,2,5,4] => 36
[6,3,1,4,2,5] => 30
[6,3,1,4,5,2] => 42
[6,3,1,5,2,4] => 48
[6,3,1,5,4,2] => 84
[6,3,2,1,4,5] => 36
[6,3,2,1,5,4] => 72
[6,3,2,4,1,5] => 48
[6,3,2,4,5,1] => 60
[6,3,2,5,1,4] => 84
[6,3,2,5,4,1] => 120
[6,3,4,1,2,5] => 36
[6,3,4,1,5,2] => 54
[6,3,4,2,1,5] => 72
[6,3,4,2,5,1] => 90
[6,3,4,5,1,2] => 60
[6,3,4,5,2,1] => 120
[6,3,5,1,2,4] => 54
[6,3,5,1,4,2] => 96
[6,3,5,2,1,4] => 108
[6,3,5,2,4,1] => 150
[6,3,5,4,1,2] => 120
[6,3,5,4,2,1] => 240
[6,4,1,2,3,5] => 24
[6,4,1,2,5,3] => 42
[6,4,1,3,2,5] => 48
[6,4,1,3,5,2] => 66
[6,4,1,5,2,3] => 54
[6,4,1,5,3,2] => 108
[6,4,2,1,3,5] => 48
[6,4,2,1,5,3] => 84
[6,4,2,3,1,5] => 72
[6,4,2,3,5,1] => 90
[6,4,2,5,1,3] => 96
[6,4,2,5,3,1] => 150
[6,4,3,1,2,5] => 72
[6,4,3,1,5,2] => 108
[6,4,3,2,1,5] => 144
[6,4,3,2,5,1] => 180
[6,4,3,5,1,2] => 120
[6,4,3,5,2,1] => 240
[6,4,5,1,2,3] => 60
[6,4,5,1,3,2] => 120
[6,4,5,2,1,3] => 120
[6,4,5,2,3,1] => 180
[6,4,5,3,1,2] => 180
[6,4,5,3,2,1] => 360
[6,5,1,2,3,4] => 30
[6,5,1,2,4,3] => 60
[6,5,1,3,2,4] => 60
[6,5,1,3,4,2] => 90
[6,5,1,4,2,3] => 90
[6,5,1,4,3,2] => 180
[6,5,2,1,3,4] => 60
[6,5,2,1,4,3] => 120
[6,5,2,3,1,4] => 90
[6,5,2,3,4,1] => 120
[6,5,2,4,1,3] => 150
[6,5,2,4,3,1] => 240
[6,5,3,1,2,4] => 90
[6,5,3,1,4,2] => 150
[6,5,3,2,1,4] => 180
[6,5,3,2,4,1] => 240
[6,5,3,4,1,2] => 180
[6,5,3,4,2,1] => 360
[6,5,4,1,2,3] => 120
[6,5,4,1,3,2] => 240
[6,5,4,2,1,3] => 240
[6,5,4,2,3,1] => 360
[6,5,4,3,1,2] => 360
[6,5,4,3,2,1] => 720
[1,2,3,4,5,6,7] => 1
[1,2,3,4,5,7,6] => 2
[1,2,3,4,6,5,7] => 2
[1,2,3,6,4,7,5] => 5
[1,2,6,3,4,7,5] => 7
[1,3,2,4,5,6,7] => 2
[1,3,7,2,4,5,6] => 9
[1,3,7,6,5,4,2] => 144
[1,4,6,7,2,3,5] => 19
[1,4,6,7,5,3,2] => 90
[1,4,7,2,3,5,6] => 12
[1,4,7,6,5,3,2] => 180
[1,5,2,3,4,7,6] => 8
[1,5,2,7,3,4,6] => 13
[1,5,4,7,6,3,2] => 120
[1,5,6,2,7,3,4] => 19
[1,5,6,4,7,3,2] => 90
[1,5,6,7,2,3,4] => 20
[1,5,6,7,4,3,2] => 120
[1,5,7,2,3,4,6] => 14
[1,5,7,6,4,3,2] => 240
[1,6,2,3,4,7,5] => 9
[1,6,2,3,7,4,5] => 12
[1,6,2,7,3,4,5] => 14
[1,6,5,4,3,7,2] => 144
[1,6,5,4,7,3,2] => 180
[1,6,5,7,4,3,2] => 240
[1,6,7,2,3,4,5] => 15
[1,6,7,5,4,3,2] => 360
[1,7,2,3,4,5,6] => 6
[1,7,3,5,6,4,2] => 90
[1,7,3,6,5,4,2] => 180
[1,7,4,3,6,5,2] => 120
[1,7,4,5,3,6,2] => 90
[1,7,4,5,6,3,2] => 120
[1,7,4,6,5,3,2] => 240
[1,7,5,4,3,6,2] => 180
[1,7,5,4,6,3,2] => 240
[1,7,6,4,5,3,2] => 360
[1,7,6,5,4,3,2] => 720
[2,1,3,4,5,6,7] => 2
[2,1,3,4,7,5,6] => 6
[2,1,3,7,4,5,6] => 8
[2,1,6,3,4,5,7] => 8
[2,1,7,3,4,5,6] => 10
[2,1,7,6,5,4,3] => 240
[2,3,1,4,5,6,7] => 3
[2,3,4,1,5,6,7] => 4
[2,3,4,1,5,7,6] => 8
[2,3,4,5,1,6,7] => 5
[2,3,4,5,1,7,6] => 10
[2,3,4,5,6,1,7] => 6
[2,3,4,5,6,7,1] => 7
[2,3,4,5,7,1,6] => 11
[2,3,4,6,1,7,5] => 14
[2,3,4,6,7,1,5] => 15
[2,3,4,7,1,5,6] => 13
[2,3,5,6,7,1,4] => 18
[2,4,1,3,5,6,7] => 5
[2,5,1,3,4,6,7] => 7
[2,5,7,1,3,4,6] => 23
[2,6,1,3,4,5,7] => 9
[2,6,1,7,3,4,5] => 24
[2,6,5,4,3,1,7] => 144
[2,6,7,1,3,4,5] => 25
[2,7,1,3,4,5,6] => 11
[3,1,2,4,5,6,7] => 3
[3,1,2,4,5,7,6] => 6
[3,2,1,4,5,6,7] => 6
[3,2,4,5,6,7,1] => 14
[3,4,1,2,5,6,7] => 6
[3,4,2,5,6,7,1] => 21
[3,4,5,2,6,7,1] => 28
[3,4,5,6,2,7,1] => 35
[3,4,5,6,7,1,2] => 21
[3,5,6,1,2,4,7] => 19
[3,5,6,4,2,1,7] => 90
[3,6,1,2,4,5,7] => 12
[3,6,5,4,2,1,7] => 180
[4,1,2,3,5,6,7] => 4
[4,1,2,3,5,7,6] => 8
[4,1,6,2,3,5,7] => 13
[4,2,3,5,6,7,1] => 21
[4,2,5,1,3,6,7] => 16
[4,3,2,1,5,6,7] => 24
[4,3,2,5,6,7,1] => 42
[4,3,5,2,6,7,1] => 56
[4,3,6,5,2,1,7] => 120
[4,5,1,6,2,3,7] => 19
[4,5,2,3,6,7,1] => 42
[4,5,3,6,2,1,7] => 90
[4,5,6,1,2,3,7] => 20
[4,5,6,3,2,1,7] => 120
[4,6,1,2,3,5,7] => 14
[4,6,1,2,3,7,5] => 24
[4,6,5,3,2,1,7] => 240
[5,1,2,3,4,6,7] => 5
[5,1,2,3,4,7,6] => 10
[5,1,2,3,6,4,7] => 9
[5,1,2,3,6,7,4] => 13
[5,1,2,3,7,4,6] => 14
[5,1,2,6,3,4,7] => 12
[5,1,6,2,3,4,7] => 14
[5,1,6,2,3,7,4] => 23
[5,2,3,4,6,7,1] => 28
[5,2,6,7,1,3,4] => 52
[5,3,2,4,6,7,1] => 56
[5,3,2,6,1,4,7] => 60
[5,3,6,7,1,2,4] => 65
[5,4,3,2,1,6,7] => 120
[5,4,3,2,1,7,6] => 240
[5,4,3,2,6,1,7] => 144
[5,4,3,6,2,1,7] => 180
[5,4,6,3,2,1,7] => 240
[5,4,6,7,1,2,3] => 70
[5,6,1,2,3,4,7] => 15
[5,6,1,2,3,7,4] => 25
[5,6,3,4,1,2,7] => 90
[5,6,4,3,2,1,7] => 360
[5,6,7,1,2,3,4] => 35
[6,1,2,3,4,5,7] => 6
[6,1,2,3,4,7,5] => 11
[6,1,2,3,7,4,5] => 15
[6,1,2,7,3,4,5] => 18
[6,2,3,4,5,7,1] => 35
[6,2,4,5,3,1,7] => 90
[6,2,5,4,3,1,7] => 180
[6,3,2,5,4,1,7] => 120
[6,3,4,2,5,1,7] => 90
[6,3,4,5,2,1,7] => 120
[6,3,4,7,1,2,5] => 81
[6,3,5,4,2,1,7] => 240
[6,4,3,2,5,1,7] => 180
[6,4,3,2,7,1,5] => 288
[6,4,3,5,2,1,7] => 240
[6,4,5,7,1,2,3] => 105
[6,4,7,2,5,1,3] => 272
[6,4,7,3,5,1,2] => 336
[6,5,3,4,2,1,7] => 360
[6,5,4,3,2,1,7] => 720
[6,5,7,3,4,1,2] => 420
[6,7,1,2,3,4,5] => 21
[6,7,3,4,1,2,5] => 126
[6,7,4,5,1,2,3] => 210
[7,1,2,3,4,5,6] => 7
[7,2,1,3,4,5,6] => 14
[7,2,3,1,4,5,6] => 21
[7,2,3,4,1,5,6] => 28
[7,2,3,4,5,1,6] => 35
[7,3,1,2,4,5,6] => 21
[7,3,2,1,4,5,6] => 42
[7,3,2,4,1,5,6] => 56
[7,3,4,1,2,5,6] => 42
[7,4,1,2,3,5,6] => 28
[7,4,2,1,3,5,6] => 56
[7,4,5,6,1,2,3] => 140
[7,5,1,2,3,4,6] => 35
[7,5,6,1,2,3,4] => 105
[7,5,6,3,4,1,2] => 630
[7,6,1,2,3,4,5] => 42
[7,6,4,5,1,2,3] => 420
[7,6,5,1,2,3,4] => 210
[7,6,5,3,4,1,2] => 1260
[7,6,5,4,1,2,3] => 840
[7,6,5,4,3,1,2] => 2520
[7,6,5,4,3,2,1] => 5040
[8,7,6,5,4,3,2,1] => 40320
[7,6,8,5,4,3,2,1] => 13440
[7,8,5,6,4,3,2,1] => 10080
[7,8,6,4,5,3,2,1] => 10080
[8,6,7,4,5,3,2,1] => 10080
[7,6,5,4,8,3,2,1] => 8064
[6,5,7,4,8,3,2,1] => 2688
[7,8,6,5,3,4,2,1] => 10080
[8,6,7,5,3,4,2,1] => 10080
[8,7,5,6,3,4,2,1] => 10080
[6,7,8,3,4,5,2,1] => 1120
[7,8,6,5,4,2,3,1] => 10080
[8,6,7,5,4,2,3,1] => 10080
[8,7,5,6,4,2,3,1] => 10080
[8,7,6,4,5,2,3,1] => 10080
[8,6,5,7,3,2,4,1] => 4480
[6,7,8,5,2,3,4,1] => 1120
[8,5,6,7,2,3,4,1] => 1120
[7,8,3,2,4,5,6,1] => 336
[7,6,5,4,3,2,8,1] => 5760
[6,5,7,4,3,2,8,1] => 1920
[6,5,4,3,7,2,8,1] => 1152
[5,4,6,3,7,2,8,1] => 384
[3,4,5,2,6,7,8,1] => 32
[5,2,3,4,6,7,8,1] => 32
[4,3,2,5,6,7,8,1] => 48
[3,4,2,5,6,7,8,1] => 24
[4,2,3,5,6,7,8,1] => 24
[3,2,4,5,6,7,8,1] => 16
[2,3,4,5,6,7,8,1] => 8
[8,7,6,5,4,3,1,2] => 20160
[7,8,6,5,4,3,1,2] => 10080
[8,6,7,5,4,3,1,2] => 10080
[8,7,5,6,4,3,1,2] => 10080
[8,7,6,4,5,3,1,2] => 10080
[8,7,6,5,3,4,1,2] => 10080
[8,7,5,6,3,4,1,2] => 5040
[7,8,5,6,3,4,1,2] => 2520
[5,6,7,8,3,4,1,2] => 420
[7,8,3,4,5,6,1,2] => 420
[3,4,5,6,7,8,1,2] => 28
[8,7,6,5,4,2,1,3] => 13440
[7,6,8,5,4,2,1,3] => 4480
[8,7,6,5,4,1,2,3] => 6720
[6,7,8,5,4,1,2,3] => 1120
[8,5,6,7,4,1,2,3] => 1120
[8,7,6,4,5,1,2,3] => 3360
[8,6,7,4,5,1,2,3] => 1680
[8,7,4,5,6,1,2,3] => 1120
[7,8,4,5,6,1,2,3] => 560
[6,7,4,5,8,1,2,3] => 336
[7,6,5,8,3,2,1,4] => 2520
[7,5,6,8,2,3,1,4] => 630
[6,7,5,8,3,1,2,4] => 630
[6,5,7,8,2,1,3,4] => 280
[8,7,6,5,1,2,3,4] => 1680
[8,7,5,6,1,2,3,4] => 840
[7,8,5,6,1,2,3,4] => 420
[8,5,6,7,1,2,3,4] => 280
[5,6,7,8,1,2,3,4] => 70
[8,7,6,4,3,2,1,5] => 8064
[8,7,6,4,2,1,3,5] => 2688
[8,7,6,1,2,3,4,5] => 336
[8,6,7,1,2,3,4,5] => 168
[6,7,8,1,2,3,4,5] => 56
[7,8,5,4,2,1,3,6] => 1120
[7,8,5,4,1,2,3,6] => 560
[8,7,1,2,3,4,5,6] => 56
[7,8,1,2,3,4,5,6] => 28
[8,6,5,4,3,2,1,7] => 5760
[8,6,5,4,3,1,2,7] => 2880
[8,5,6,3,4,1,2,7] => 720
[8,6,5,4,2,1,3,7] => 1920
[8,6,4,3,2,1,5,7] => 1152
[8,6,4,2,1,3,5,7] => 384
[8,2,3,4,1,5,6,7] => 32
[8,4,1,2,3,5,6,7] => 32
[8,3,2,1,4,5,6,7] => 48
[8,2,3,1,4,5,6,7] => 24
[8,3,1,2,4,5,6,7] => 24
[8,2,1,3,4,5,6,7] => 16
[8,1,2,3,4,5,6,7] => 8
[7,6,5,4,3,2,1,8] => 5040
[6,7,5,4,3,2,1,8] => 2520
[6,5,7,4,3,2,1,8] => 1680
[5,6,7,4,3,2,1,8] => 840
[7,6,4,5,3,2,1,8] => 2520
[6,5,4,7,3,2,1,8] => 1260
[7,5,6,3,4,2,1,8] => 1260
[7,6,4,3,5,2,1,8] => 1680
[7,6,3,4,5,2,1,8] => 840
[7,5,4,3,6,2,1,8] => 1260
[6,7,5,4,2,3,1,8] => 1260
[6,5,7,3,2,4,1,8] => 560
[5,6,7,2,3,4,1,8] => 140
[2,3,4,5,6,7,1,8] => 7
[5,6,7,1,2,3,4,8] => 35
[6,7,1,2,3,4,5,8] => 21
[7,1,2,3,4,5,6,8] => 7
[6,5,4,3,2,1,7,8] => 720
[2,3,4,5,6,1,7,8] => 6
[5,6,3,4,1,2,7,8] => 90
[4,5,6,1,2,3,7,8] => 20
[6,1,2,3,4,5,7,8] => 6
[5,4,3,2,1,6,7,8] => 120
[2,3,4,5,1,6,7,8] => 5
[5,1,2,3,4,6,7,8] => 5
[4,3,2,1,5,6,7,8] => 24
[3,4,1,2,5,6,7,8] => 6
[3,2,1,4,5,6,7,8] => 6
[2,1,3,4,5,6,7,8] => 2
[1,2,3,4,5,6,7,8] => 1
[6,5,8,7,4,3,2,1] => 6720
[3,5,8,7,6,4,2,1] => 1680
[4,3,6,5,8,7,2,1] => 448
[2,6,8,7,5,4,3,1] => 1920
[2,3,5,6,8,7,4,1] => 80
[3,2,6,5,4,8,7,1] => 192
[4,3,6,5,7,2,8,1] => 192
[3,2,6,5,7,4,8,1] => 128
[4,3,5,2,7,6,8,1] => 128
[3,2,5,4,7,6,8,1] => 64
[1,8,7,6,5,4,3,2] => 5040
[1,7,8,6,5,4,3,2] => 2520
[1,6,8,7,5,4,3,2] => 1680
[1,7,6,8,5,4,3,2] => 1680
[1,6,7,8,5,4,3,2] => 840
[1,5,8,7,6,4,3,2] => 1260
[1,7,6,5,8,4,3,2] => 1260
[1,3,5,7,8,6,4,2] => 105
[1,4,3,8,7,6,5,2] => 336
[1,6,5,4,3,8,7,2] => 336
[1,4,3,6,5,8,7,2] => 56
[2,1,8,7,6,5,4,3] => 1440
[2,1,6,5,7,4,8,3] => 96
[2,1,5,4,7,6,8,3] => 48
[1,2,6,7,8,5,4,3] => 120
[3,2,1,8,7,6,5,4] => 720
[3,2,1,6,5,8,7,4] => 120
[1,2,3,5,6,7,8,4] => 5
[4,3,2,1,8,7,6,5] => 576
[3,4,2,1,7,8,6,5] => 144
[2,4,3,1,6,8,7,5] => 64
[2,4,3,1,7,6,8,5] => 64
[3,2,4,1,6,8,7,5] => 64
[3,2,4,1,7,6,8,5] => 64
[2,3,4,1,6,7,8,5] => 16
[2,1,4,3,8,7,6,5] => 96
[2,1,4,3,6,8,7,5] => 32
[2,1,4,3,7,6,8,5] => 32
[5,4,3,2,1,8,7,6] => 720
[3,2,5,4,1,8,7,6] => 120
[3,2,1,4,5,8,7,6] => 36
[2,3,1,4,5,7,8,6] => 9
[6,5,4,3,2,1,8,7] => 1440
click to show generating function       
Description
The number of permutations less than or equal to a permutation in left weak order.
This is the same as the number of permutations less than or equal to the given permutation in right weak order.
Code
def statistic(pi):
    return sum(1 for y in Permutations(pi.size()) if y.permutohedron_lequal(pi))

Created
Jun 15, 2013 at 13:28 by Chris Berg
Updated
Mar 31, 2019 at 21:46 by Martin Rubey