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9,8,7,6,5,4,3,2]=>0
[2,3,4,5,6,7,8,9,10,11,1]=>0
[10,1,2,3,4,5,6,7,8,9,11]=>9
[1,11,2,3,4,5,6,7,8,9,10]=>0
[2,1,4,3,6,5,8,7,10,9,12,11]=>30
[2,1,4,3,6,5,8,7,12,11,10,9]=>28
[2,1,4,3,6,5,10,9,8,7,12,11]=>36
[2,1,4,3,6,5,12,9,8,11,10,7]=>26
[2,1,4,3,6,5,12,11,10,9,8,7]=>24
[2,1,4,3,8,7,6,5,10,9,12,11]=>44
[2,1,4,3,8,7,6,5,12,11,10,9]=>42
[2,1,4,3,10,7,6,9,8,5,12,11]=>42
[2,1,4,3,12,7,6,9,8,11,10,5]=>24
[2,1,4,3,12,7,6,11,10,9,8,5]=>22
[2,1,4,3,10,9,8,7,6,5,12,11]=>48
[2,1,4,3,12,9,8,7,6,11,10,5]=>30
[2,1,4,3,12,11,8,7,10,9,6,5]=>20
[2,1,4,3,12,11,10,9,8,7,6,5]=>18
[2,1,6,5,4,3,8,7,10,9,12,11]=>52
[2,1,6,5,4,3,8,7,12,11,10,9]=>50
[2,1,6,5,4,3,10,9,8,7,12,11]=>58
[2,1,6,5,4,3,12,9,8,11,10,7]=>48
[2,1,6,5,4,3,12,11,10,9,8,7]=>46
[2,1,8,5,4,7,6,3,10,9,12,11]=>58
[2,1,8,5,4,7,6,3,12,11,10,9]=>56
[2,1,10,5,4,7,6,9,8,3,12,11]=>48
[2,1,12,5,4,7,6,9,8,11,10,3]=>22
[2,1,12,5,4,7,6,11,10,9,8,3]=>20
[2,1,10,5,4,9,8,7,6,3,12,11]=>54
[2,1,12,5,4,9,8,7,6,11,10,3]=>28
[2,1,12,5,4,11,8,7,10,9,6,3]=>18
[2,1,12,5,4,11,10,9,8,7,6,3]=>16
[2,1,8,7,6,5,4,3,10,9,12,11]=>72
[2,1,8,7,6,5,4,3,12,11,10,9]=>70
[2,1,10,7,6,5,4,9,8,3,12,11]=>62
[2,1,12,7,6,5,4,9,8,11,10,3]=>36
[2,1,12,7,6,5,4,11,10,9,8,3]=>34
[2,1,10,9,6,5,8,7,4,3,12,11]=>60
[2,1,12,9,6,5,8,7,4,11,10,3]=>34
[2,1,12,11,6,5,8,7,10,9,4,3]=>16
[2,1,12,11,6,5,10,9,8,7,4,3]=>14
[2,1,10,9,8,7,6,5,4,3,12,11]=>66
[2,1,12,9,8,7,6,5,4,11,10,3]=>40
[2,1,12,11,8,7,6,5,10,9,4,3]=>22
[2,1,12,11,10,7,6,9,8,5,4,3]=>12
[2,1,12,11,10,9,8,7,6,5,4,3]=>10
[4,3,2,1,6,5,8,7,10,9,12,11]=>60
[4,3,2,1,6,5,8,7,12,11,10,9]=>58
[4,3,2,1,6,5,10,9,8,7,12,11]=>66
[4,3,2,1,6,5,12,9,8,11,10,7]=>56
[4,3,2,1,6,5,12,11,10,9,8,7]=>54
[4,3,2,1,8,7,6,5,10,9,12,11]=>74
[4,3,2,1,8,7,6,5,12,11,10,9]=>72
[4,3,2,1,10,7,6,9,8,5,12,11]=>72
[4,3,2,1,12,7,6,9,8,11,10,5]=>54
[4,3,2,1,12,7,6,11,10,9,8,5]=>52
[4,3,2,1,10,9,8,7,6,5,12,11]=>78
[4,3,2,1,12,9,8,7,6,11,10,5]=>60
[4,3,2,1,12,11,8,7,10,9,6,5]=>50
[4,3,2,1,12,11,10,9,8,7,6,5]=>48
[6,3,2,5,4,1,8,7,10,9,12,11]=>74
[6,3,2,5,4,1,8,7,12,11,10,9]=>72
[6,3,2,5,4,1,10,9,8,7,12,11]=>80
[6,3,2,5,4,1,12,9,8,11,10,7]=>70
[6,3,2,5,4,1,12,11,10,9,8,7]=>68
[8,3,2,5,4,7,6,1,10,9,12,11]=>72
[8,3,2,5,4,7,6,1,12,11,10,9]=>70
[10,3,2,5,4,7,6,9,8,1,12,11]=>54
[12,3,2,5,4,7,6,9,8,11,10,1]=>20
[12,3,2,5,4,7,6,11,10,9,8,1]=>18
[10,3,2,5,4,9,8,7,6,1,12,11]=>60
[12,3,2,5,4,9,8,7,6,11,10,1]=>26
[12,3,2,5,4,11,8,7,10,9,6,1]=>16
[12,3,2,5,4,11,10,9,8,7,6,1]=>14
[8,3,2,7,6,5,4,1,10,9,12,11]=>86
[8,3,2,7,6,5,4,1,12,11,10,9]=>84
[10,3,2,7,6,5,4,9,8,1,12,11]=>68
[12,3,2,7,6,5,4,9,8,11,10,1]=>34
[12,3,2,7,6,5,4,11,10,9,8,1]=>32
[10,3,2,9,6,5,8,7,4,1,12,11]=>66
[12,3,2,9,6,5,8,7,4,11,10,1]=>32
[12,3,2,11,6,5,8,7,10,9,4,1]=>14
[12,3,2,11,6,5,10,9,8,7,4,1]=>12
[10,3,2,9,8,7,6,5,4,1,12,11]=>72
[12,3,2,9,8,7,6,5,4,11,10,1]=>38
[12,3,2,11,8,7,6,5,10,9,4,1]=>20
[12,3,2,11,10,7,6,9,8,5,4,1]=>10
[12,3,2,11,10,9,8,7,6,5,4,1]=>8
[6,5,4,3,2,1,8,7,10,9,12,11]=>96
[6,5,4,3,2,1,8,7,12,11,10,9]=>94
[6,5,4,3,2,1,10,9,8,7,12,11]=>102
[6,5,4,3,2,1,12,9,8,11,10,7]=>92
[6,5,4,3,2,1,12,11,10,9,8,7]=>90
[8,5,4,3,2,7,6,1,10,9,12,11]=>94
[8,5,4,3,2,7,6,1,12,11,10,9]=>92
[10,5,4,3,2,7,6,9,8,1,12,11]=>76
[12,5,4,3,2,7,6,9,8,11,10,1]=>42
[12,5,4,3,2,7,6,11,10,9,8,1]=>40
[10,5,4,3,2,9,8,7,6,1,12,11]=>82
[12,5,4,3,2,9,8,7,6,11,10,1]=>48
[12,5,4,3,2,11,8,7,10,9,6,1]=>38
[12,5,4,3,2,11,10,9,8,7,6,1]=>36
[8,7,4,3,6,5,2,1,10,9,12,11]=>100
[8,7,4,3,6,5,2,1,12,11,10,9]=>98
[10,7,4,3,6,5,2,9,8,1,12,11]=>82
[12,7,4,3,6,5,2,9,8,11,10,1]=>48
[12,7,4,3,6,5,2,11,10,9,8,1]=>46
[10,9,4,3,6,5,8,7,2,1,12,11]=>72
[12,9,4,3,6,5,8,7,2,11,10,1]=>38
[12,11,4,3,6,5,8,7,10,9,2,1]=>12
[12,11,4,3,6,5,10,9,8,7,2,1]=>10
[10,9,4,3,8,7,6,5,2,1,12,11]=>78
[12,9,4,3,8,7,6,5,2,11,10,1]=>44
[12,11,4,3,8,7,6,5,10,9,2,1]=>18
[12,11,4,3,10,7,6,9,8,5,2,1]=>8
[12,11,4,3,10,9,8,7,6,5,2,1]=>6
[8,7,6,5,4,3,2,1,10,9,12,11]=>114
[8,7,6,5,4,3,2,1,12,11,10,9]=>112
[10,7,6,5,4,3,2,9,8,1,12,11]=>96
[12,7,6,5,4,3,2,9,8,11,10,1]=>62
[12,7,6,5,4,3,2,11,10,9,8,1]=>60
[10,9,6,5,4,3,8,7,2,1,12,11]=>86
[12,9,6,5,4,3,8,7,2,11,10,1]=>52
[12,11,6,5,4,3,8,7,10,9,2,1]=>26
[12,11,6,5,4,3,10,9,8,7,2,1]=>24
[10,9,8,5,4,7,6,3,2,1,12,11]=>84
[12,9,8,5,4,7,6,3,2,11,10,1]=>50
[12,11,8,5,4,7,6,3,10,9,2,1]=>24
[12,11,10,5,4,7,6,9,8,3,2,1]=>6
[12,11,10,5,4,9,8,7,6,3,2,1]=>4
[10,9,8,7,6,5,4,3,2,1,12,11]=>90
[12,9,8,7,6,5,4,3,2,11,10,1]=>56
[12,11,8,7,6,5,4,3,10,9,2,1]=>30
[12,11,10,7,6,5,4,9,8,3,2,1]=>12
[12,11,10,9,6,5,8,7,4,3,2,1]=>2
[12,11,10,9,8,7,6,5,4,3,2,1]=>0
[2,4,6,8,10,12,1,3,5,7,9,11]=>35
[2,4,6,8,11,12,1,3,5,7,9,10]=>30
[2,4,6,9,10,12,1,3,5,7,8,11]=>32
[2,4,6,9,11,12,1,3,5,7,8,10]=>27
[2,4,6,10,11,12,1,3,5,7,8,9]=>22
[2,4,7,8,10,12,1,3,5,6,9,11]=>34
[2,4,7,8,11,12,1,3,5,6,9,10]=>29
[2,4,7,9,10,12,1,3,5,6,8,11]=>31
[2,4,7,9,11,12,1,3,5,6,8,10]=>26
[2,4,7,10,11,12,1,3,5,6,8,9]=>21
[2,4,8,9,10,12,1,3,5,6,7,11]=>28
[2,4,8,9,11,12,1,3,5,6,7,10]=>23
[2,4,8,10,11,12,1,3,5,6,7,9]=>18
[2,4,9,10,11,12,1,3,5,6,7,8]=>13
[2,5,6,8,10,12,1,3,4,7,9,11]=>36
[2,5,6,8,11,12,1,3,4,7,9,10]=>31
[2,5,6,9,10,12,1,3,4,7,8,11]=>33
[2,5,6,9,11,12,1,3,4,7,8,10]=>28
[2,5,6,10,11,12,1,3,4,7,8,9]=>23
[2,5,7,8,10,12,1,3,4,6,9,11]=>35
[2,5,7,8,11,12,1,3,4,6,9,10]=>30
[2,5,7,9,10,12,1,3,4,6,8,11]=>32
[2,5,7,9,11,12,1,3,4,6,8,10]=>27
[2,5,7,10,11,12,1,3,4,6,8,9]=>22
[2,5,8,9,10,12,1,3,4,6,7,11]=>29
[2,5,8,9,11,12,1,3,4,6,7,10]=>24
[2,5,8,10,11,12,1,3,4,6,7,9]=>19
[2,5,9,10,11,12,1,3,4,6,7,8]=>14
[2,6,7,8,10,12,1,3,4,5,9,11]=>34
[2,6,7,8,11,12,1,3,4,5,9,10]=>29
[2,6,7,9,10,12,1,3,4,5,8,11]=>31
[2,6,7,9,11,12,1,3,4,5,8,10]=>26
[2,6,7,10,11,12,1,3,4,5,8,9]=>21
[2,6,8,9,10,12,1,3,4,5,7,11]=>28
[2,6,8,9,11,12,1,3,4,5,7,10]=>23
[2,6,8,10,11,12,1,3,4,5,7,9]=>18
[2,6,9,10,11,12,1,3,4,5,7,8]=>13
[2,7,8,9,10,12,1,3,4,5,6,11]=>25
[2,7,8,9,11,12,1,3,4,5,6,10]=>20
[2,7,8,10,11,12,1,3,4,5,6,9]=>15
[2,7,9,10,11,12,1,3,4,5,6,8]=>10
[2,8,9,10,11,12,1,3,4,5,6,7]=>5
[3,4,6,8,10,12,1,2,5,7,9,11]=>38
[3,4,6,8,11,12,1,2,5,7,9,10]=>33
[3,4,6,9,10,12,1,2,5,7,8,11]=>35
[3,4,6,9,11,12,1,2,5,7,8,10]=>30
[3,4,6,10,11,12,1,2,5,7,8,9]=>25
[3,4,7,8,10,12,1,2,5,6,9,11]=>37
[3,4,7,8,11,12,1,2,5,6,9,10]=>32
[3,4,7,9,10,12,1,2,5,6,8,11]=>34
[3,4,7,9,11,12,1,2,5,6,8,10]=>29
[3,4,7,10,11,12,1,2,5,6,8,9]=>24
[3,4,8,9,10,12,1,2,5,6,7,11]=>31
[3,4,8,9,11,12,1,2,5,6,7,10]=>26
[3,4,8,10,11,12,1,2,5,6,7,9]=>21
[3,4,9,10,11,12,1,2,5,6,7,8]=>16
[3,5,6,8,10,12,1,2,4,7,9,11]=>39
[3,5,6,8,11,12,1,2,4,7,9,10]=>34
[3,5,6,9,10,12,1,2,4,7,8,11]=>36
[3,5,6,9,11,12,1,2,4,7,8,10]=>31
[3,5,6,10,11,12,1,2,4,7,8,9]=>26
[3,5,7,8,10,12,1,2,4,6,9,11]=>38
[3,5,7,8,11,12,1,2,4,6,9,10]=>33
[3,5,7,9,10,12,1,2,4,6,8,11]=>35
[3,5,7,9,11,12,1,2,4,6,8,10]=>30
[3,5,7,10,11,12,1,2,4,6,8,9]=>25
[3,5,8,9,10,12,1,2,4,6,7,11]=>32
[3,5,8,9,11,12,1,2,4,6,7,10]=>27
[3,5,8,10,11,12,1,2,4,6,7,9]=>22
[3,5,9,10,11,12,1,2,4,6,7,8]=>17
[3,6,7,8,10,12,1,2,4,5,9,11]=>37
[3,6,7,8,11,12,1,2,4,5,9,10]=>32
[3,6,7,9,10,12,1,2,4,5,8,11]=>34
[3,6,7,9,11,12,1,2,4,5,8,10]=>29
[3,6,7,10,11,12,1,2,4,5,8,9]=>24
[3,6,8,9,10,12,1,2,4,5,7,11]=>31
[3,6,8,9,11,12,1,2,4,5,7,10]=>26
[3,6,8,10,11,12,1,2,4,5,7,9]=>21
[3,6,9,10,11,12,1,2,4,5,7,8]=>16
[3,7,8,9,10,12,1,2,4,5,6,11]=>28
[3,7,8,9,11,12,1,2,4,5,6,10]=>23
[3,7,8,10,11,12,1,2,4,5,6,9]=>18
[3,7,9,10,11,12,1,2,4,5,6,8]=>13
[3,8,9,10,11,12,1,2,4,5,6,7]=>8
[4,5,6,8,10,12,1,2,3,7,9,11]=>40
[4,5,6,8,11,12,1,2,3,7,9,10]=>35
[4,5,6,9,10,12,1,2,3,7,8,11]=>37
[4,5,6,9,11,12,1,2,3,7,8,10]=>32
[4,5,6,10,11,12,1,2,3,7,8,9]=>27
[4,5,7,8,10,12,1,2,3,6,9,11]=>39
[4,5,7,8,11,12,1,2,3,6,9,10]=>34
[4,5,7,9,10,12,1,2,3,6,8,11]=>36
[4,5,7,9,11,12,1,2,3,6,8,10]=>31
[4,5,7,10,11,12,1,2,3,6,8,9]=>26
[4,5,8,9,10,12,1,2,3,6,7,11]=>33
[4,5,8,9,11,12,1,2,3,6,7,10]=>28
[4,5,8,10,11,12,1,2,3,6,7,9]=>23
[4,5,9,10,11,12,1,2,3,6,7,8]=>18
[4,6,7,8,10,12,1,2,3,5,9,11]=>38
[4,6,7,8,11,12,1,2,3,5,9,10]=>33
[4,6,7,9,10,12,1,2,3,5,8,11]=>35
[4,6,7,9,11,12,1,2,3,5,8,10]=>30
[4,6,7,10,11,12,1,2,3,5,8,9]=>25
[4,6,8,9,10,12,1,2,3,5,7,11]=>32
[4,6,8,9,11,12,1,2,3,5,7,10]=>27
[4,6,8,10,11,12,1,2,3,5,7,9]=>22
[4,6,9,10,11,12,1,2,3,5,7,8]=>17
[4,7,8,9,10,12,1,2,3,5,6,11]=>29
[4,7,8,9,11,12,1,2,3,5,6,10]=>24
[4,7,8,10,11,12,1,2,3,5,6,9]=>19
[4,7,9,10,11,12,1,2,3,5,6,8]=>14
[4,8,9,10,11,12,1,2,3,5,6,7]=>9
[5,6,7,8,10,12,1,2,3,4,9,11]=>37
[5,6,7,8,11,12,1,2,3,4,9,10]=>32
[5,6,7,9,10,12,1,2,3,4,8,11]=>34
[5,6,7,9,11,12,1,2,3,4,8,10]=>29
[5,6,7,10,11,12,1,2,3,4,8,9]=>24
[5,6,8,9,10,12,1,2,3,4,7,11]=>31
[5,6,8,9,11,12,1,2,3,4,7,10]=>26
[5,6,8,10,11,12,1,2,3,4,7,9]=>21
[5,6,9,10,11,12,1,2,3,4,7,8]=>16
[5,7,8,9,10,12,1,2,3,4,6,11]=>28
[5,7,8,9,11,12,1,2,3,4,6,10]=>23
[5,7,8,10,11,12,1,2,3,4,6,9]=>18
[5,7,9,10,11,12,1,2,3,4,6,8]=>13
[5,8,9,10,11,12,1,2,3,4,6,7]=>8
[6,7,8,9,10,12,1,2,3,4,5,11]=>25
[6,7,8,9,11,12,1,2,3,4,5,10]=>20
[6,7,8,10,11,12,1,2,3,4,5,9]=>15
[6,7,9,10,11,12,1,2,3,4,5,8]=>10
[6,8,9,10,11,12,1,2,3,4,5,7]=>5
[7,8,9,10,11,12,1,2,3,4,5,6]=>0
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 number of occurrences of the pattern 213 in a permutation.
References
[1] Number of permutations on 1,...,n containing any given pattern alpha in the symmetric group S_3. OEIS:A056986
Code
def statistic(x): return len(x.pattern_positions([2,1,3]))
Created
Sep 14, 2014 at 08:05 by Martin Rubey
Updated
Sep 14, 2018 at 19:21 by Martin Rubey
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!