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3,6,5,12,11,10,9,8,7]=>140
[2,1,4,3,8,7,6,5,10,9,12,11]=>92
[2,1,4,3,8,7,6,5,12,11,10,9]=>124
[2,1,4,3,10,7,6,9,8,5,12,11]=>108
[2,1,4,3,12,7,6,9,8,11,10,5]=>108
[2,1,4,3,12,7,6,11,10,9,8,5]=>140
[2,1,4,3,10,9,8,7,6,5,12,11]=>140
[2,1,4,3,12,9,8,7,6,11,10,5]=>140
[2,1,4,3,12,11,8,7,10,9,6,5]=>156
[2,1,4,3,12,11,10,9,8,7,6,5]=>188
[2,1,6,5,4,3,8,7,10,9,12,11]=>92
[2,1,6,5,4,3,8,7,12,11,10,9]=>124
[2,1,6,5,4,3,10,9,8,7,12,11]=>124
[2,1,6,5,4,3,12,9,8,11,10,7]=>140
[2,1,6,5,4,3,12,11,10,9,8,7]=>172
[2,1,8,5,4,7,6,3,10,9,12,11]=>108
[2,1,8,5,4,7,6,3,12,11,10,9]=>140
[2,1,10,5,4,7,6,9,8,3,12,11]=>108
[2,1,12,5,4,7,6,9,8,11,10,3]=>92
[2,1,12,5,4,7,6,11,10,9,8,3]=>124
[2,1,10,5,4,9,8,7,6,3,12,11]=>140
[2,1,12,5,4,9,8,7,6,11,10,3]=>124
[2,1,12,5,4,11,8,7,10,9,6,3]=>140
[2,1,12,5,4,11,10,9,8,7,6,3]=>172
[2,1,8,7,6,5,4,3,10,9,12,11]=>140
[2,1,8,7,6,5,4,3,12,11,10,9]=>172
[2,1,10,7,6,5,4,9,8,3,12,11]=>140
[2,1,12,7,6,5,4,9,8,11,10,3]=>124
[2,1,12,7,6,5,4,11,10,9,8,3]=>156
[2,1,10,9,6,5,8,7,4,3,12,11]=>156
[2,1,12,9,6,5,8,7,4,11,10,3]=>140
[2,1,12,11,6,5,8,7,10,9,4,3]=>140
[2,1,12,11,6,5,10,9,8,7,4,3]=>172
[2,1,10,9,8,7,6,5,4,3,12,11]=>188
[2,1,12,9,8,7,6,5,4,11,10,3]=>172
[2,1,12,11,8,7,6,5,10,9,4,3]=>172
[2,1,12,11,10,7,6,9,8,5,4,3]=>188
[2,1,12,11,10,9,8,7,6,5,4,3]=>220
[4,3,2,1,6,5,8,7,10,9,12,11]=>92
[4,3,2,1,6,5,8,7,12,11,10,9]=>124
[4,3,2,1,6,5,10,9,8,7,12,11]=>124
[4,3,2,1,6,5,12,9,8,11,10,7]=>140
[4,3,2,1,6,5,12,11,10,9,8,7]=>172
[4,3,2,1,8,7,6,5,10,9,12,11]=>124
[4,3,2,1,8,7,6,5,12,11,10,9]=>156
[4,3,2,1,10,7,6,9,8,5,12,11]=>140
[4,3,2,1,12,7,6,9,8,11,10,5]=>140
[4,3,2,1,12,7,6,11,10,9,8,5]=>172
[4,3,2,1,10,9,8,7,6,5,12,11]=>172
[4,3,2,1,12,9,8,7,6,11,10,5]=>172
[4,3,2,1,12,11,8,7,10,9,6,5]=>188
[4,3,2,1,12,11,10,9,8,7,6,5]=>220
[6,3,2,5,4,1,8,7,10,9,12,11]=>108
[6,3,2,5,4,1,8,7,12,11,10,9]=>140
[6,3,2,5,4,1,10,9,8,7,12,11]=>140
[6,3,2,5,4,1,12,9,8,11,10,7]=>156
[6,3,2,5,4,1,12,11,10,9,8,7]=>188
[8,3,2,5,4,7,6,1,10,9,12,11]=>108
[8,3,2,5,4,7,6,1,12,11,10,9]=>140
[10,3,2,5,4,7,6,9,8,1,12,11]=>92
[12,3,2,5,4,7,6,9,8,11,10,1]=>60
[12,3,2,5,4,7,6,11,10,9,8,1]=>92
[10,3,2,5,4,9,8,7,6,1,12,11]=>124
[12,3,2,5,4,9,8,7,6,11,10,1]=>92
[12,3,2,5,4,11,8,7,10,9,6,1]=>108
[12,3,2,5,4,11,10,9,8,7,6,1]=>140
[8,3,2,7,6,5,4,1,10,9,12,11]=>140
[8,3,2,7,6,5,4,1,12,11,10,9]=>172
[10,3,2,7,6,5,4,9,8,1,12,11]=>124
[12,3,2,7,6,5,4,9,8,11,10,1]=>92
[12,3,2,7,6,5,4,11,10,9,8,1]=>124
[10,3,2,9,6,5,8,7,4,1,12,11]=>140
[12,3,2,9,6,5,8,7,4,11,10,1]=>108
[12,3,2,11,6,5,8,7,10,9,4,1]=>108
[12,3,2,11,6,5,10,9,8,7,4,1]=>140
[10,3,2,9,8,7,6,5,4,1,12,11]=>172
[12,3,2,9,8,7,6,5,4,11,10,1]=>140
[12,3,2,11,8,7,6,5,10,9,4,1]=>140
[12,3,2,11,10,7,6,9,8,5,4,1]=>156
[12,3,2,11,10,9,8,7,6,5,4,1]=>188
[6,5,4,3,2,1,8,7,10,9,12,11]=>140
[6,5,4,3,2,1,8,7,12,11,10,9]=>172
[6,5,4,3,2,1,10,9,8,7,12,11]=>172
[6,5,4,3,2,1,12,9,8,11,10,7]=>188
[6,5,4,3,2,1,12,11,10,9,8,7]=>220
[8,5,4,3,2,7,6,1,10,9,12,11]=>140
[8,5,4,3,2,7,6,1,12,11,10,9]=>172
[10,5,4,3,2,7,6,9,8,1,12,11]=>124
[12,5,4,3,2,7,6,9,8,11,10,1]=>92
[12,5,4,3,2,7,6,11,10,9,8,1]=>124
[10,5,4,3,2,9,8,7,6,1,12,11]=>156
[12,5,4,3,2,9,8,7,6,11,10,1]=>124
[12,5,4,3,2,11,8,7,10,9,6,1]=>140
[12,5,4,3,2,11,10,9,8,7,6,1]=>172
[8,7,4,3,6,5,2,1,10,9,12,11]=>156
[8,7,4,3,6,5,2,1,12,11,10,9]=>188
[10,7,4,3,6,5,2,9,8,1,12,11]=>140
[12,7,4,3,6,5,2,9,8,11,10,1]=>108
[12,7,4,3,6,5,2,11,10,9,8,1]=>140
[10,9,4,3,6,5,8,7,2,1,12,11]=>140
[12,9,4,3,6,5,8,7,2,11,10,1]=>108
[12,11,4,3,6,5,8,7,10,9,2,1]=>92
[12,11,4,3,6,5,10,9,8,7,2,1]=>124
[10,9,4,3,8,7,6,5,2,1,12,11]=>172
[12,9,4,3,8,7,6,5,2,11,10,1]=>140
[12,11,4,3,8,7,6,5,10,9,2,1]=>124
[12,11,4,3,10,7,6,9,8,5,2,1]=>140
[12,11,4,3,10,9,8,7,6,5,2,1]=>172
[8,7,6,5,4,3,2,1,10,9,12,11]=>188
[8,7,6,5,4,3,2,1,12,11,10,9]=>220
[10,7,6,5,4,3,2,9,8,1,12,11]=>172
[12,7,6,5,4,3,2,9,8,11,10,1]=>140
[12,7,6,5,4,3,2,11,10,9,8,1]=>172
[10,9,6,5,4,3,8,7,2,1,12,11]=>172
[12,9,6,5,4,3,8,7,2,11,10,1]=>140
[12,11,6,5,4,3,8,7,10,9,2,1]=>124
[12,11,6,5,4,3,10,9,8,7,2,1]=>156
[10,9,8,5,4,7,6,3,2,1,12,11]=>188
[12,9,8,5,4,7,6,3,2,11,10,1]=>156
[12,11,8,5,4,7,6,3,10,9,2,1]=>140
[12,11,10,5,4,7,6,9,8,3,2,1]=>140
[12,11,10,5,4,9,8,7,6,3,2,1]=>172
[10,9,8,7,6,5,4,3,2,1,12,11]=>220
[12,9,8,7,6,5,4,3,2,11,10,1]=>188
[12,11,8,7,6,5,4,3,10,9,2,1]=>172
[12,11,10,7,6,5,4,9,8,3,2,1]=>172
[12,11,10,9,6,5,8,7,4,3,2,1]=>188
[12,11,10,9,8,7,6,5,4,3,2,1]=>220
[2,4,6,8,10,12,1,3,5,7,9,11]=>70
[2,4,6,8,11,12,1,3,5,7,9,10]=>68
[2,4,6,9,10,12,1,3,5,7,8,11]=>68
[2,4,6,9,11,12,1,3,5,7,8,10]=>66
[2,4,6,10,11,12,1,3,5,7,8,9]=>62
[2,4,7,8,10,12,1,3,5,6,9,11]=>68
[2,4,7,8,11,12,1,3,5,6,9,10]=>66
[2,4,7,9,10,12,1,3,5,6,8,11]=>66
[2,4,7,9,11,12,1,3,5,6,8,10]=>64
[2,4,7,10,11,12,1,3,5,6,8,9]=>60
[2,4,8,9,10,12,1,3,5,6,7,11]=>62
[2,4,8,9,11,12,1,3,5,6,7,10]=>60
[2,4,8,10,11,12,1,3,5,6,7,9]=>56
[2,4,9,10,11,12,1,3,5,6,7,8]=>50
[2,5,6,8,10,12,1,3,4,7,9,11]=>68
[2,5,6,8,11,12,1,3,4,7,9,10]=>66
[2,5,6,9,10,12,1,3,4,7,8,11]=>66
[2,5,6,9,11,12,1,3,4,7,8,10]=>64
[2,5,6,10,11,12,1,3,4,7,8,9]=>60
[2,5,7,8,10,12,1,3,4,6,9,11]=>66
[2,5,7,8,11,12,1,3,4,6,9,10]=>64
[2,5,7,9,10,12,1,3,4,6,8,11]=>64
[2,5,7,9,11,12,1,3,4,6,8,10]=>62
[2,5,7,10,11,12,1,3,4,6,8,9]=>58
[2,5,8,9,10,12,1,3,4,6,7,11]=>60
[2,5,8,9,11,12,1,3,4,6,7,10]=>58
[2,5,8,10,11,12,1,3,4,6,7,9]=>54
[2,5,9,10,11,12,1,3,4,6,7,8]=>48
[2,6,7,8,10,12,1,3,4,5,9,11]=>62
[2,6,7,8,11,12,1,3,4,5,9,10]=>60
[2,6,7,9,10,12,1,3,4,5,8,11]=>60
[2,6,7,9,11,12,1,3,4,5,8,10]=>58
[2,6,7,10,11,12,1,3,4,5,8,9]=>54
[2,6,8,9,10,12,1,3,4,5,7,11]=>56
[2,6,8,9,11,12,1,3,4,5,7,10]=>54
[2,6,8,10,11,12,1,3,4,5,7,9]=>50
[2,6,9,10,11,12,1,3,4,5,7,8]=>44
[2,7,8,9,10,12,1,3,4,5,6,11]=>50
[2,7,8,9,11,12,1,3,4,5,6,10]=>48
[2,7,8,10,11,12,1,3,4,5,6,9]=>44
[2,7,9,10,11,12,1,3,4,5,6,8]=>38
[2,8,9,10,11,12,1,3,4,5,6,7]=>30
[3,4,6,8,10,12,1,2,5,7,9,11]=>68
[3,4,6,8,11,12,1,2,5,7,9,10]=>66
[3,4,6,9,10,12,1,2,5,7,8,11]=>66
[3,4,6,9,11,12,1,2,5,7,8,10]=>64
[3,4,6,10,11,12,1,2,5,7,8,9]=>60
[3,4,7,8,10,12,1,2,5,6,9,11]=>66
[3,4,7,8,11,12,1,2,5,6,9,10]=>64
[3,4,7,9,10,12,1,2,5,6,8,11]=>64
[3,4,7,9,11,12,1,2,5,6,8,10]=>62
[3,4,7,10,11,12,1,2,5,6,8,9]=>58
[3,4,8,9,10,12,1,2,5,6,7,11]=>60
[3,4,8,9,11,12,1,2,5,6,7,10]=>58
[3,4,8,10,11,12,1,2,5,6,7,9]=>54
[3,4,9,10,11,12,1,2,5,6,7,8]=>48
[3,5,6,8,10,12,1,2,4,7,9,11]=>66
[3,5,6,8,11,12,1,2,4,7,9,10]=>64
[3,5,6,9,10,12,1,2,4,7,8,11]=>64
[3,5,6,9,11,12,1,2,4,7,8,10]=>62
[3,5,6,10,11,12,1,2,4,7,8,9]=>58
[3,5,7,8,10,12,1,2,4,6,9,11]=>64
[3,5,7,8,11,12,1,2,4,6,9,10]=>62
[3,5,7,9,10,12,1,2,4,6,8,11]=>62
[3,5,7,9,11,12,1,2,4,6,8,10]=>60
[3,5,7,10,11,12,1,2,4,6,8,9]=>56
[3,5,8,9,10,12,1,2,4,6,7,11]=>58
[3,5,8,9,11,12,1,2,4,6,7,10]=>56
[3,5,8,10,11,12,1,2,4,6,7,9]=>52
[3,5,9,10,11,12,1,2,4,6,7,8]=>46
[3,6,7,8,10,12,1,2,4,5,9,11]=>60
[3,6,7,8,11,12,1,2,4,5,9,10]=>58
[3,6,7,9,10,12,1,2,4,5,8,11]=>58
[3,6,7,9,11,12,1,2,4,5,8,10]=>56
[3,6,7,10,11,12,1,2,4,5,8,9]=>52
[3,6,8,9,10,12,1,2,4,5,7,11]=>54
[3,6,8,9,11,12,1,2,4,5,7,10]=>52
[3,6,8,10,11,12,1,2,4,5,7,9]=>48
[3,6,9,10,11,12,1,2,4,5,7,8]=>42
[3,7,8,9,10,12,1,2,4,5,6,11]=>48
[3,7,8,9,11,12,1,2,4,5,6,10]=>46
[3,7,8,10,11,12,1,2,4,5,6,9]=>42
[3,7,9,10,11,12,1,2,4,5,6,8]=>36
[3,8,9,10,11,12,1,2,4,5,6,7]=>28
[4,5,6,8,10,12,1,2,3,7,9,11]=>62
[4,5,6,8,11,12,1,2,3,7,9,10]=>60
[4,5,6,9,10,12,1,2,3,7,8,11]=>60
[4,5,6,9,11,12,1,2,3,7,8,10]=>58
[4,5,6,10,11,12,1,2,3,7,8,9]=>54
[4,5,7,8,10,12,1,2,3,6,9,11]=>60
[4,5,7,8,11,12,1,2,3,6,9,10]=>58
[4,5,7,9,10,12,1,2,3,6,8,11]=>58
[4,5,7,9,11,12,1,2,3,6,8,10]=>56
[4,5,7,10,11,12,1,2,3,6,8,9]=>52
[4,5,8,9,10,12,1,2,3,6,7,11]=>54
[4,5,8,9,11,12,1,2,3,6,7,10]=>52
[4,5,8,10,11,12,1,2,3,6,7,9]=>48
[4,5,9,10,11,12,1,2,3,6,7,8]=>42
[4,6,7,8,10,12,1,2,3,5,9,11]=>56
[4,6,7,8,11,12,1,2,3,5,9,10]=>54
[4,6,7,9,10,12,1,2,3,5,8,11]=>54
[4,6,7,9,11,12,1,2,3,5,8,10]=>52
[4,6,7,10,11,12,1,2,3,5,8,9]=>48
[4,6,8,9,10,12,1,2,3,5,7,11]=>50
[4,6,8,9,11,12,1,2,3,5,7,10]=>48
[4,6,8,10,11,12,1,2,3,5,7,9]=>44
[4,6,9,10,11,12,1,2,3,5,7,8]=>38
[4,7,8,9,10,12,1,2,3,5,6,11]=>44
[4,7,8,9,11,12,1,2,3,5,6,10]=>42
[4,7,8,10,11,12,1,2,3,5,6,9]=>38
[4,7,9,10,11,12,1,2,3,5,6,8]=>32
[4,8,9,10,11,12,1,2,3,5,6,7]=>24
[5,6,7,8,10,12,1,2,3,4,9,11]=>50
[5,6,7,8,11,12,1,2,3,4,9,10]=>48
[5,6,7,9,10,12,1,2,3,4,8,11]=>48
[5,6,7,9,11,12,1,2,3,4,8,10]=>46
[5,6,7,10,11,12,1,2,3,4,8,9]=>42
[5,6,8,9,10,12,1,2,3,4,7,11]=>44
[5,6,8,9,11,12,1,2,3,4,7,10]=>42
[5,6,8,10,11,12,1,2,3,4,7,9]=>38
[5,6,9,10,11,12,1,2,3,4,7,8]=>32
[5,7,8,9,10,12,1,2,3,4,6,11]=>38
[5,7,8,9,11,12,1,2,3,4,6,10]=>36
[5,7,8,10,11,12,1,2,3,4,6,9]=>32
[5,7,9,10,11,12,1,2,3,4,6,8]=>26
[5,8,9,10,11,12,1,2,3,4,6,7]=>18
[6,7,8,9,10,12,1,2,3,4,5,11]=>30
[6,7,8,9,11,12,1,2,3,4,5,10]=>28
[6,7,8,10,11,12,1,2,3,4,5,9]=>24
[6,7,9,10,11,12,1,2,3,4,5,8]=>18
[6,8,9,10,11,12,1,2,3,4,5,7]=>10
[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 one of the patterns 132, 213 or 321 in a permutation.
According to [1], this statistic was studied by Doron Gepner in the context of conformal field theory.
According to [1], this statistic was studied by Doron Gepner in the context of conformal field theory.
References
[1] Zeilberger, D. Doron Gepner's Statistics on Words in $\{$1,2,3$\}$ is (most probably) Asymptotically Logistic arXiv:1604.00663
Code
def statistic(pi): return len(pi.pattern_positions([1,3,2])) + len(pi.pattern_positions([2,1,3])) + len(pi.pattern_positions([3,2,1]))
Created
Apr 05, 2016 at 08:32 by Martin Rubey
Updated
May 12, 2020 at 15:15 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!