StackSortable on Permutation
1 when p avoids the pattern 231, 0 otherwise — exactly the stack-sortable permutations.
Called as CombinatorialStat(x, "StackSortable"). The head's page has its examples.
Live
Distribution
Over SymmetricGroup at each size, tallied here in your browser; sizes past 8 are not offered.