WorksMathematics
Distributions of Mesh Patterns of Short Lengths on Separable Permutations
Abstract
This paper contributes to the long line of research on the distribution of mesh patterns in permutations. We extend these studies to separable permutations and carry out a comprehensive analysis of mesh patterns of length at most~2. For mesh patterns of length~1, we determine the distributions for all six equivalence classes. In addition, we obtain the joint distribution for the patterns in the class containing the well-known permutation statistic known as the strict fixed point. Furthermore, computer experiments suggest that at most 124 pairs of mesh patterns of type 12 and 21 with identical shading are equidistributed. Using symmetry operations, we partition these pairs into 38 equivalence classes with respect to distribution. By explicitly determining 24 of these distributions (in many cases, in fact, joint equidistributions of the respective pairs), we reduce the number of equivalence classes to~31, which turns out to be the true number of equivalence classes. Enumerating 14 of these classes is left as an open problem.
Introduction
A permutation of length is a rearrangement of the set . Denote by the set of permutations of and let be the empty permutation. A pattern is a permutation. A permutation avoids a pattern if there is no subsequence such that if and only if . Let denote the set of -avoiding permutations of length . For a permutation , its reverse is the permutation and its complement is the permutation where . Also, the length of a permutation , denoted by , is the number of elements in . For example, for , , , and . Finally, for a sequence of distinct numbers, the reduced form of , denoted , is obtained by replacing the -th smallest number in by . For example, .
The concept of a mesh pattern was introduced by Brändén and Claesson [5]. The study of mesh patterns has become a prominent area of research within the theory of patterns in permutations, which has attracted significant attention (see [12]). For enumerative results related to mesh patterns, see, for example, [2, 11, 13, 14, 15, 17, 20].
A mesh pattern of length is a pair , where and is a subset of , where denotes the interval of integers from 0 to . Let be the box whose corners have coordinates , and , and let the horizontal lines (resp., vertical lines) represent the values (resp., positions) in the pattern. Mesh patterns can be drawn by shading the boxes in . A mesh pattern with and is drawn as follows

Figure 1.
Given a permutation , a subsequence is an occurrence of a mesh pattern in if (i) is order-isomorphic to , and (ii) the shaded regions defined by contain no elements of that are not in . Otherwise, is said to avoid , denoted by . For example, consider the mesh pattern . The permutation 23154 contains two occurrences of , whereas the permutation 14325 avoids . We let denote the number of occurrences of (mesh) pattern in .
Two patterns and are Wilf-equivalent, denoted , if . Moreover, and are called equidistributed, denoted , if the number of permutations of length with occurrences of is equal to that with occurrences of for any nonnegative integers and . The stricter notion of joint equidistribution of two patterns, denoted , means that the number of -permutations with occurrences of and occurrences of is equal to that with occurrences of and occurrences of .
For , a permutation is irreducible if there is no , , such that any element in is less than each element in . For example, the permutation 42513 is irreducible. By definition, the permutation 1 is irreducible. A permutation is reducible if it is not irreducible. The empty permutation is neither reducible nor irreducible. Each reducible permutation can be cut into irreducible pieces called irreducible components, or just components. For example, the components of the permutation 312546978 are 312, 54, 6, and 978.
Suppose and . We define the direct sum (or simply, sum) , and the skew sum by building the permutations and as follows:
For example, and .
The separable permutations are those which can be built from the permutation 1 by repeatedly applying the and operations. Bose, Buss and Lubiw [4] introduced the notion of separable permutation in 1998, and it is well-known [12] that the set of all separable permutations of length is precisely (we assume here that by definition, the empty permutation is not separable). Separable permutations appear in the literature in various contexts (see [6] for references).
Clearly, the reverse, or complement, or (usual group theoretic) inverse, or any composition of these operations applied to a separable permutation gives a separable permutation. It is not difficult to see that any has the following structure (see also Figure 1 for a schematic representation, where a permutation is viewed as a diagram with a dot in position for each element of ):
where
, and are non-empty (), with possible exception for and , separable permutations which are intervals in (that is, consist of all elements in for some and );
, where , for two permutations and , means that each element of is less than every element of . In particular, , if it is not empty, contains 1.
For example, if then , , and . Note that a separable permutation is irreducible if and only if .
Figure 1 (PDF p. 4). A schematic representation of the permutation diagrams corresponding to separable permutations. Each and is a separable permutation.
Throughout this paper, we use the abbreviation “g.f.” to denote a generating function. We denote by the generating function (g.f.) for separable permutations:
The notation , and likewise , is local to each theorem and its proof: the marked pattern or patterns are specified there. Throughout the paper, always denotes the series in (1).
Symmetry operations
Clearly, applying the reverse, complement, or (usual group-theoretic) inverse operation, or any composition of these operations, to a separable permutation yields a separable permutation. For a given mesh pattern of length , we define
where is the usual inverse, and , , and .
Hence, reverse is a reflection around the vertical center line, complement is a reflection around the horizontal center line, and inverse is the reflection around the southwest-tonortheast diagonal. Figure 2 illustrates applications of these operations on the pattern .

Figure 2. Several symmetries of a mesh pattern.
Distributions of statistics on separable permutations
For a permutation , the descent (resp., ascent) statistic on , (resp., ), is defined as the number of such that (resp., ). For example, and .
The following lemma will be used in Theorem 17 below. It gives the distribution of descents (equivalently, by using reverse, ascents) on separable permutations.
For a permutation , is a right-to-left maximum (resp., right-to-left minimum) if (resp., ) for all . In particular, is a right-to-left maximum and a right-to-left minimum. The number of right-to-left maxima (resp., right-to-left minima) is denoted by (resp., ). For example, and . Also, is a left-to-right maximum (resp., left-to-right minimum), denoted by (resp., ) if (resp., ) for all . In particular, is a left-to-right maximum and a left-to-right minimum. For example, .
In this paper, we will frequently make use of the following theorem from [6], which describes the distributions of four permutation statistics on separable permutations, as well as on their reducible and irreducible subclasses.
Theorem 1 ([6 Thm. 5]). The g.f. giving the distribution of any statistic on separable permutations is
The distributions of on irreducible and reducible separable permutations are given in Table 1.
| g.f. | irreducible | reducible |
Table 1. Distributions of statistics in Theorem 1.
Distribution of mesh patterns in the literature
Kitaev and Zhang [14] initiated a systematic study of the distributions of short mesh patterns (of length at most 2) in permutations, extending the earlier work of [11] on the systematic study of mesh pattern avoidance in permutations. These investigations were later extended to certain infinite families of mesh patterns in [15]. The systematic study of mesh patterns of length 3 was initiated in [17] and subsequently continued in [18, 19]. Other contributions to the literature on distributions of mesh patterns include [7, 9, 10]. The distribution of mesh patterns on a particular subclass of permutations, namely king permutations, was studied in [16].
Results in this paper
In this paper, we first determine the distributions of all mesh patterns of length 1 (see Table 2 and the references therein). In one instance, Theorem 7, we derive the joint equidistribution of strict fixed points and reverse strict fixed points. We then classify the mesh patterns 12 and 21 with identical shadings into 31 equivalence classes based on their distributions; these classes are listed in Table 3–5, with further mergers described in Table 7. These results are obtained using symmetry operations as well as by explicitly determining distributions of mesh patterns (we derived 24 distributions). In many cases, we are also able to determine the joint distributions of the corresponding pairs. Interestingly, although the distributions of the patterns [mesh pattern] and [mesh pattern] are the same, the joint distributions of the pairs { [mesh pattern], [mesh pattern] } and { [mesh pattern], [mesh pattern] } are different.
| Nr. | Pattern | Ref. | Nr. | Pattern | Ref. | Nr. | Pattern | Ref. |
| N1 | [mesh pattern] | N5 | [mesh pattern] | N9 | [mesh pattern] | |||
| N2 | [mesh pattern] | N6 | [mesh pattern] | N10 | [mesh pattern] | |||
| N3 | [mesh pattern] | Thm. 2 | N7 | [mesh pattern] | Thm. 5 | N11 | [mesh pattern] | Thm. 6 |
| N4 | [mesh pattern] | N8 | [mesh pattern] | N12 | [mesh pattern] | |||
| N13 | [mesh pattern] | N15 | [mesh pattern] | Thm. 3 | N16 | [mesh pattern] | Thm. 4 | |
| N14 | [mesh pattern] | Thm. 7 |
Table 2. Symmetry-induced equidistribution classes for mesh patterns of length 1.
| Nr. | Patterns | Ref. | Nr. | Patterns | Ref. | Nr. | Patterns | Ref. |
| S1 | mesh pattern | Thm. 10 | S2 | mesh pattern | Thm. 11 | S3 | mesh pattern | |
| S4 | mesh pattern | S5 | mesh pattern | Thm. 21 | S6 | mesh pattern | ||
| S7 | mesh pattern | S8 | mesh pattern |
Table 3. Symmetry-induced equidistribution classes of mesh patterns with a single pattern per class, and references to their known enumeration.
| Nr. | Patterns | Nr. | Patterns | Nr. | Patterns | Nr. | Patterns | Nr. | Patterns |
| S2 | S17 | S18 | S19 | S20 | |||||
| S113 | S114 | S115 | S116 | S9 | |||||
| S10 | S29 | S30 | S31 | S32 | |||||
| S11 | S12 | S117 | S118 | S119 | |||||
| S120 | S121 | S122 | S123 | S124 | |||||
| S21 | S22 | S23 | S24 | S25 | |||||
| S26 | S27 | S28 | S37 | S38 | |||||
| S39 | S40 | S41 | S42 | S43 | |||||
| S44 | S57 | S58 | S59 | S60 | |||||
| S65 | S66 | S67 | S68 |
Table 7. Equidistribution classes after further merging.
Distribution of mesh pattern of length 1 on separable permutations
There are mesh patterns of length 1. Under inverse, reverse, and complement, these patterns fall into six equidistribution classes, listed in Table 2. For each class, we determine the corresponding distribution. In addition, we compute the joint distribution of the patterns [mesh pattern] and [mesh pattern]. In Table 2, mesh patterns that are equidistributed by the reverse, complement, or inverse operations, are grouped together within the same frame.
In a separable permutation, occurrences of the patterns [mesh pattern], [mesh pattern], [mesh pattern], and [mesh pattern] correspond, respectively, to left-to-right maxima, left-to-right minima, right-to-left maxima, and right-to-left minima. Consequently, we can use Theorem 1 to obtain the following result, which establishes the distributions of the mesh patterns N1–N4.
Theorem 2. For [mesh pattern], [mesh pattern], [mesh pattern], [mesh pattern], and given by (3), we have
The proof of the following theorem is immediate from the fact that each element in a permutation contributes an occurrence of the pattern N15.
Theorem 3. We have
Theorem 4 (Pattern N16). We have
Proof. Clearly, the only separable permutation that contains the pattern is 1, so
By substituting (1) into (4), we obtain the desired result.
Theorem 5 (Patterns N5–N8). For , we have
Proof. W.l.o.g., consider N5 = . It occurs exactly once, as the leftmost element, in any separable permutation, so , and the result follows by (1).
Theorem 6 (Patterns N9–N12). For , we have
Proof. W.l.o.g., consider the pattern N9 = . Only the element 1 occurring at the end of a permutation can be an occurrence of the pattern , and in this position, 1 cannot be part of an occurrence of the patterns 2413 or 3142. Hence, if denotes the g.f. for separable permutations that end with their smallest element, we have
Moreover, any permutation counted by can be generated by taking any separable permutation or the empty permutation and adjoining the new smallest element to its right, so . Together with (1) and (5), this gives the desired result.
Occurrences of the pattern are known as strict fixed points. The avoidance of this pattern on permutations was studied in [3], and its distribution in [14]. We extend the study of the distribution of strict fixed points to separable permutations. Since separable permutations are invariant under the reverse operation, the distribution of the pattern coincides with that of the pattern . Moreover, we obtain the joint distribution of the patterns and . The following theorem establishes the distributions of the mesh patterns and , as well as their joint distribution.
Theorem 7 (Patterns N13 and N14). We have . Moreover, if
and
then
Proof. The joint equidistribution follows by applying the reverse operation that swaps occurrences of the patterns. Then we utilize the structure of a separable permutation of length shown in Figure 1 and consider two cases, depending on whether is reducible or not.
Case 1. In the reducible case (see Figure 3a), the block must be nonempty, and can be any separable permutation. Case 1 can be divided into two subcases: (a) and . In this subcase, we obtain the term , since the element contributes an occurrence of the pattern ▪◻ but not of ◻▪. Moreover, because of , no element in can be an occurrence of ◻▪, while cannot destroy any occurrence of the pattern ▪◻ in .
Figure 3. Related to the proof of Theorem 7.
(b) and . In this subcase, to be disjoint from (a), has at least one element to the right of , and by the structure shown in Figure 1, the minimum element of lies to the right of . Therefore, in this subcase we obtain the term
Indeed,
contributes the term , since, because of , it cannot contribute any occurrences of the pattern ◻▪, and is otherwise independent of the rest of .
Since , the rest of cannot contribute any occurrences of ◻▪. Moreover, because of (resp., ), no element to the left (resp., to the right) of , including itself, can contribute an occurrence of the pattern ▪◻. Therefore, together with , being an irreducible permutation of length at least 2, contributes the term (by reversal symmetry, half of separable permutations are reducible and half are irreducible).
Case 2. In the irreducible case (see Figure 3b), the block is nonempty, except in the trivial case , and can be any separable permutation. We consider three subcases.
(a) , then giving the term .
(b) and , which gives by reversing the permutations in Case 1(a).
(c) and , which gives by reversing the permutations in Case 1(b).
Combining the two cases above, we obtain
Letting in (8), we get
Substituting (1) into (9), solving for , and then replacing by yields (6). Finally, substituting and , both given by (6), into (8) yields (7).
Equidistribution of mesh patterns of length 2 with the same shading on separable permutations
There are mesh patterns of length , and for there are already 1024 distinct patterns, among which have distinct shadings. Computer experiments indicate that, on separable permutations, when the patterns 12 and 21 are regarded as mesh patterns with selectively shaded boxes, at most 124 equidistributed pairs can exist.
In this section, we employ symmetry operations and generating function methods to prove that the 124 pairs of mesh patterns presented in Table 3–Table 6 are equidistributed. These pairs are further classified into 38 distinct symmetry-induced classes according to the corresponding symmetry operations.
| Nr. | patterns | Nr. | Patterns | Nr. | Patterns | Nr. | Patterns | Ref. |
| S113 | mesh pattern; mesh pattern | S114 | mesh pattern; mesh pattern | S115 | mesh pattern; mesh pattern | S116 | mesh pattern; mesh pattern | Thm. 8 |
| S117 | mesh pattern; mesh pattern | S118 | mesh pattern; mesh pattern | S119 | mesh pattern; mesh pattern | S120 | mesh pattern; mesh pattern | Thm. 9 |
| S121 | mesh pattern; mesh pattern | S122 | mesh pattern; mesh pattern | S123 | mesh pattern; mesh pattern | S124 | mesh pattern; mesh pattern |
Table 6. Symmetry-induced equidistribution classes of mesh patterns proved via generating functions.
Symmetry operations
Out of the 124 equidistributed pairs obtained, 112 pairs can be naturally derived through (composition of) symmetry operations. The explicit correspondences and symmetry-induced groupings of these pairs are presented in Table 3–5.
For the patterns 12 and 21, both the reverse and the complement operations transform one into the other; that is, applying either operation maps 12 to 21, and vice versa. In all pairs of mesh patterns listed in Table 3–5, the shaded regions are symmetric with respect to the horizontal or vertical axis, corresponding to the complement and reverse operations, respectively. Consequently, for each of the 112 pairs of mesh patterns shown in these three tables, the two patterns within each pair are equidistributed under the action of the reverse or complement symmetry.
In Table 3, the single pair of mesh patterns is invariant under all three symmetries. In Table 4, each frame contains two such pairs that can be mapped to each other by one of the inverse, complement, or reverse operations. Similarly, in Table 5, each frame comprises four pairs of mesh patterns that can be mutually mapped and readily verified via these three symmetries or their compositions.
Table 4. Symmetry-induced equidistribution classes of mesh patterns with two patterns per class, and references to their known enumeration.
| Nr. | Patterns | Nr. | Patterns | Nr. | Patterns | Nr. | Patterns | Ref. |
| S17 | mesh pattern | S18 | mesh pattern | S19 | mesh pattern | S20 | mesh pattern | Thm. 14 |
| S21 | mesh pattern | S22 | mesh pattern | S23 | mesh pattern | S24 | mesh pattern | Thm. 15 |
| S25 | mesh pattern | S26 | mesh pattern | S27 | mesh pattern | S28 | mesh pattern | Thm. 15 |
| S29 | mesh pattern | S30 | mesh pattern | S31 | mesh pattern | S32 | mesh pattern | Thm. 12 |
| S33 | mesh pattern | S34 | mesh pattern | S35 | mesh pattern | S36 | mesh pattern | Thm. 22 |
| S37 | mesh pattern | S38 | mesh pattern | S39 | mesh pattern | S40 | mesh pattern | Thm. 23 |
| S41 | mesh pattern | S42 | mesh pattern | S43 | mesh pattern | S44 | mesh pattern | Thm. 24 |
| S45 | mesh pattern | S46 | mesh pattern | S47 | mesh pattern | S48 | mesh pattern | Thm. 18 |
| S49 | mesh pattern | S50 | mesh pattern | S51 | mesh pattern | S52 | mesh pattern | Thm. 16 |
| S53 | mesh pattern | S54 | mesh pattern | S55 | mesh pattern | S56 | mesh pattern | Thm. 25 |
| S57 | mesh pattern | S58 | mesh pattern | S59 | mesh pattern | S60 | mesh pattern | Thm. 26 |
| S61 | mesh pattern | S62 | mesh pattern | S63 | mesh pattern | S64 | mesh pattern | Thm. 19 |
| S65 | mesh pattern | S66 | mesh pattern | S67 | mesh pattern | S68 | mesh pattern | Thm. 20 |
| S69 | mesh pattern | S70 | mesh pattern | S71 | mesh pattern | S72 | mesh pattern | Thm. 27 |
Table 5.
| Nr. | Patterns | Nr. | Patterns | Nr. | Patterns | Nr. | Patterns | Ref. |
| S73 | mesh pattern | S74 | mesh pattern | S75 | mesh pattern | S76 | mesh pattern | Thm. 28 |
| S77 | mesh pattern | S78 | mesh pattern | S79 | mesh pattern | S80 | mesh pattern | Thm. 29 |
| S81 | mesh pattern | S82 | mesh pattern | S83 | mesh pattern | S84 | mesh pattern | |
| S85 | mesh pattern | S86 | mesh pattern | S87 | mesh pattern | S88 | mesh pattern | |
| S89 | mesh pattern | S90 | mesh pattern | S91 | mesh pattern | S92 | mesh pattern | |
| S93 | mesh pattern | S94 | mesh pattern | S95 | mesh pattern | S96 | mesh pattern | |
| S97 | mesh pattern | S98 | mesh pattern | S99 | mesh pattern | S100 | mesh pattern | |
| S101 | mesh pattern | S102 | mesh pattern | S103 | mesh pattern | S104 | mesh pattern | |
| S105 | mesh pattern | S106 | mesh pattern | S107 | mesh pattern | S108 | mesh pattern | |
| S109 | mesh pattern | S110 | mesh pattern | S111 | mesh pattern | S112 | mesh pattern |
Table 5 (PDF p. 13). Symmetry-induced equidistribution classes of mesh patterns, with four patterns per class, and references to their known enumeration.
The generating functions method
Unlike the other pairs of mesh patterns, the equidistribution of each pair in Table 6 cannot be established solely by symmetry arguments. Instead, we employ generating function techniques to provide a proof.
In Table 6, pairs of mesh patterns sharing the same equidistribution are grouped within the same frame. It suffices to prove equidistribution for only one pair of patterns in each frame; the remaining pairs are obtained by the inverse, reverse, and complement operations.
Theorem 8 (Pairs S113–S116). We have [mesh pattern] [mesh pattern]. Moreover,
Proof. Clearly, if a separable permutation has an occurrence of the pattern (resp., the other pattern), then (resp., ) is the only occurrence of the pattern in , and is any separable permutation in . Therefore, the map that swaps and in all permutations of length establishes the joint equidistribution .
Consider the pattern, and let be the g.f. for permutations with one occurrence of the pattern. Then, from the above, , and
Substituting (1) into (11) yields (10).
Finally, because both patterns cannot occur in the same permutation, we have
and the formula for is obtained by substituting (1) into (12).
Theorem 9 (Pairs S117–S124). We have . Moreover,
where is given by (1).
Proof. Clearly, if a separable permutation contains an occurrence of the pattern (resp., ), then for some element , we can write (resp., ), where each element of , if any, is larger than and each element of , if any, is smaller than . Moreover, each mesh pattern can occur at most once in , and the reduced forms of and can be any separable permutations ( is separable if and only if both and are separable). Therefore, if is the g.f. for permutations with exactly one occurrence of either pattern, then
and
from which, together with (1), we obtain (13) and .
To deal with the joint distribution, first observe that the only way both patterns can occur in the same permutation is if , where every element in , if any, is larger than , and every element in , if any, is smaller than . The g.f. for such permutations is clearly . Now, the g.f. for permutations containing (resp., ), but not (resp., ), is (resp., ). Moreover, the g.f. for separable permutations avoiding both patterns is
Combining the four generating functions we have that is given by
and formula (14) is obtained by applying (15). Since , we have .
Distribution of mesh pattern of length 2 on separable permutations
In this section, we determine the distributions of 21 increasing (resp., decreasing) mesh patterns of length 2 on separable permutations. For the pairs of mesh patterns presented in Table 3–5, we select the first pair of patterns in each class (that is, within each frame) as the representative pair for determining the corresponding distribution, since the equidistribution of all pairs has already been established. In our analysis, we always choose the pattern 12 as the representative.
“Trivial” distributions
By a “trivial” distribution we mean the situation when either the pattern in question can occur at most once, or the pattern’s occurrences can be easily inferred from the shape of the pattern. There are nine classes of pairs of such patterns:
S1 = [mesh pattern]; S2 = [mesh pattern]; S9 = [mesh pattern]; S11 = [mesh pattern];
S17 = [mesh pattern]; S21 = [mesh pattern]; S25 = [mesh pattern]; S29 = [mesh pattern];
S49 = [mesh pattern].
Theorem 10 (Pair S1). We have
Proof. The only separable permutation that contains the pattern [mesh pattern] is 12. Hence,
By substituting (1) into (17), we obtain (16). Also, it is clear that
which, together with (1), leads to the desired result.
Theorem 11 (Pair S2). Theorem 8 also holds for the mesh patterns [mesh pattern] and [mesh pattern].
Proof. The pattern [mesh pattern] can occur at most once in any permutation . In this case, we must have and and can be any separable permutation of length . If is the g.f. of separable permutations with one occurrence of the pattern, then all formulas and functional relations in the proof of Theorem 8 are exactly the same, leading to the desired result.
The following lemma is an immediate corollary of the fact that separable permutations are closed under reversal and under the complement.
Lemma 2. For every , exactly half of the separable permutations of length have their first element larger than their last element. Likewise, exactly half begin with an ascent, and half begin with a descent.
Theorem 12 (Pairs S9, S10, S29–S32). We have
Proof. The pattern [mesh pattern] can occur at most once in a permutation, in which case the first element is smaller than the last one. If denotes the generating function for separable permutations of length at least 2 with exactly one occurrence of the pattern, then, by Lemma 2, we have
Substituting (19) into (11) (which also holds for the pattern [mesh pattern]), we obtain
Furthermore, substituting (1) into (20) yields (18). The formula for the joint distribution follows from the easy to see equation .
Finally, the arguments for the pattern [mesh pattern] are essentially identical, with the only difference being that an occurrence of this pattern must be formed by the leftmost two elements, which form an ascent.
Interestingly, although the distribution of the mesh pattern [mesh pattern] in the next theorem is the same as that of the mesh pattern [mesh pattern], the joint distributions of these patterns within their respective pairs are different. This is because, in one case, both patterns in the pair can occur in the same permutation, whereas in the other case this is not possible.
Theorem 13 (Pairs S11 and S12). We have [mesh pattern] [mesh pattern]. Moreover,
where is given by (1).
Proof. An occurrence of the pattern [mesh pattern] in a permutation can only be formed by the smallest and largest elements. In this case, , where every element in , if any, is smaller than every element in , if any, in order to avoid the pattern 3142. There cannot be more than one occurrence of the pattern. If is the g.f. for the number of separable permutations with one occurrence of the pattern, then clearly satisfies (15) (there are ways to generate , and independently the same number of ways to generate ). Then, (21) can be obtained using the same arguments as those in the proof of Theorem 9.
To complete the proof, we observe that
Theorem 14 (Pairs S17–S20). The formulas in Theorem 8 also hold for pairs S17–S20.
Proof. It is sufficient to consider the pair S17. The pattern can occur at most once in any permutation . In this case, we must have and and can be any separable permutation of length . If is the g.f. of separable permutations with one occurrence of the pattern, then all formulas and functional relations in the proof of Theorem 8 are exactly the same, giving the desired result.
Theorem 15 (Pairs S21–S28). We have
Proof. If the mesh pattern occurs in a permutation , then the occurrence must be unique and formed by the elements 1 and 2 placed consequently in increasing order. Let be the permutation obtained from by removing the element 2 and decreasing each element larger than 1 by 1. Clearly, is separable if and only if is separable. Hence, if the g.f. for the number of separable permutations with one occurrence of the pattern is , then
where counts the choices for and corresponds to the element 2. Substituting (24) into (11) (which also holds for the pattern ), we obtain
Furthermore, substituting (1) into (25) yields (23). Finally, the formula for the joint distribution follows from
On the other hand, if the mesh pattern occurs in a permutation , , then the occurrence must be unique and formed by the elements and . Let be the permutation obtained from by removing the element and decreasing every other element by . Clearly, is separable if and only if is separable. Hence, the g.f. for the number of separable permutations with one occurrence of the pattern is exactly satisfying (24), and all other formulas derived by us for the pattern remain exactly the same, completing our proof.
Theorem 16 (Pairs S49–S52). We have
Proof. By inspecting the pattern, we observe that the smallest element , together with its adjacent element to the right (if it exists), forms a pattern, as illustrated in Figure 4a. Therefore, a permutation avoids this pattern if and only if it ends with the smallest element , as shown in Figure 4b, and we denote its g.f. by . Consequently, the g.f. can be expressed as follows:
Figure 4. Related to the proof of Theorem 16.
since the pattern [mesh pattern] can occur at most once in a permutation.
Since the block may be empty, the g.f. for the separable permutations avoiding this pattern is given by:
Substituting (28) into (27), we obtain
Furthermore, substituting (1) into (29) yields (26).
To derive the joint distribution of the patterns, we observe that any permutation is either , or of the form with nonempty, or of the form with nonempty, or of the form with both and nonempty. The corresponding generating functions for these cases are , , , and , respectively, which leads to the desired result.
Distributions via functional equations
In this section, we investigate four classes of pairs of mesh patterns whose occurrences in separable permutations may appear more than once, making their distributions considerably more intricate. To determine their distributions, we establish the corresponding functional equations by analyzing all admissible configurations. The pairs are as follows:
Theorem 17 (Pairs S13 and S14). Let
Then, satisfies
Proof. Occurrences of the pattern [mesh pattern] are precisely the occurrences of ascents, so the result follows from Lemma 1, proved in [8].
Theorem 18 (Pairs S45–48). We have
where
,
.
Proof. An occurrence of the pattern must involve the element 1, and another element to its right. Moreover, to avoid the pattern 3142, all elements to the left of 1 must be smaller than those to the right of , as illustrated in Figure 5. Now, the element is an occurrence of the pattern in the permutation . Hence, the number of occurrences of the pattern in the permutation is the same as that of the pattern in . Let denote the g.f. in (6). If is the g.f. of separable permutations with at least one occurrence of the pattern, then
Figure 5. Related to the proof of Theorem 18.
where corresponds to the element 1, and corresponds to the possibly empty block ; note that is the distribution with at least one occurrence of the pattern.
Adding the contributions from permutations with and without an occurrence, we obtain
Finally, substituting (1) and (6) into (32) yields (30).
Theorem 19 (Pairs S61–S64). We have
where
Proof. In a permutation , the element , together with each element to its left, forms an occurrence of the pattern [mesh pattern]. For , separable permutations can be divided into two cases according to the position of the second largest element , as illustrated in Figure 6. Specifically, the block in Figure 6a and the block in Figure 6b must be nonempty (each containing at least the element $n-1). We denote by and the generating functions corresponding to the structures illustrated in Figure 6a and Figure 6b, respectively.
Figure 6. Related to the proof of Theorem 19.
In the situation of Figure 6a, there are three cases to consider.
(a) The blocks , , and are empty, while is nonempty. In this case, since any element in the block , together with the element , contributes an occurrence of the pattern [mesh pattern], the block can be represented by , while the element contributes the term . Thus, we obtain the term
(b) The blocks and are empty, while and is nonempty. Similar to case (a), the block can be represented by , while the element contributes the term . Clearly, the elements in the block are independent of this pattern, and hence is represented by . Hence, in this case, we have the term
(c) The blocks and are nonempty, while among the blocks and , at least is nonempty. In this case, after removing and , the element together with all the remaining elements in , still is a separable permutation in which the second largest element lies to the left of ; hence, it has the g.f. . Similar to the previous cases, the block contributes the term , while the block contributes the term . Therefore, this case gives the term
Combining cases (a)–(c), we have
When the element is to the right of the largest element , as shown in Figure 6b, similar to the analysis of , we obtain
It is clear that can be expressed as follows:
where the permutation 1 contributes the term .
Substituting (34) and (35) into (36), we obtain
Solving this equation for and substituting (1) yields (33).
Theorem 20 (Pairs S65–S68). We have
where
Proof. Let be an occurrence of the pattern !mesh pattern, so that all elements to the right of and all elements to the left of are larger than . Therefore, is a right-to-left minimum, and is the leftmost element smaller than among those to its left. In other words, in a separable permutation, each right-to-left minimum together with the leftmost element smaller than it, if such element exists, contributes one occurrence of the pattern !mesh pattern. For every right-to-left minimum , there exists a unique smaller element to its left such that forms an occurrence of the pattern !mesh pattern. Consequently, in each separable permutation, the number of occurrences of the pattern !mesh pattern corresponds to the number of right-to-left minima minus one.
According to Theorem 1, the distribution of right-to-left minimum on separable permutations is given by the function in (3). Therefore, we have
By substituting (3) into (39), we obtain (38).
Distributions via reducible and irreducible decomposition
For separable permutations of length , each permutation is either reducible or irreducible, as illustrated in Figure 7, where all four blocks , , , and are nonempty. In the reducible case (see Figure 7a), the block is irreducible (possibly, of length 1), and can be any separable permutation. In the irreducible case (see Figure 7b), the block is either reducible or has a single (largest) element, while can be any separable permutations. In the proofs of the theorems below, we let and denote, respectively, the generating functions for irreducible and reducible separable permutations, where the variable records occurrences of the pattern in question.
(a) Reducible permutation
(b) Irreducible permutation
Figure 7. Structural decomposition of separable permutations of length .
In this section, we investigate the distributions of eight classes of pairs of mesh patterns whose distributions are difficult to derive through a direct configuration analysis as in the previous section. Instead, by fully exploiting the structural decomposition of separable permutations, we obtain functional equations that give their distributions. The pairs are as follows:
Theorem 21 (Pair S5). We have
Proof. Each ascent formed by consecutive elements contributes exactly one occurrence of the pattern .
In the irreducible case (see Figure 7b), the pattern cannot occur across blocks and . Moreover, any occurrence of the pattern inside or is an occurrence of the pattern in the entire permutation. Consequently, can be expressed as
where corresponds to the permutation , corresponds to the block , and the factor represents the g.f. for the block .
In the reducible case (see Figure 7a), the shadings of the pattern ensure that any occurrence of the pattern within either block or is also an occurrence of the pattern in the entire permutation. In addition, if has a single element and ends with the largest element, then an extra occurrence of the pattern arises. If denotes the distribution of on separable permutations ending with the largest element, then in the reducible case we have
where records irreducible permutations of length at least 2, and is the distribution of the pattern on separable permutations not ending with the largest element. Now, we have
where the terms correspond, respectively, to the permutation 1, the separable permutations of length ending with , and the separable permutations of length ending with for . Therefore,
Finally, using (41) and (42), we have
By substituting (43) into (44) and solving for , we obtain (40).
Theorem 22 (Pairs S33–S36). We have
Proof. In the irreducible case (see Figure 7b), the shading of the lower-right corner of the pattern prevents this pattern from occurring in . On the other hand, any occurrence of the pattern in is clearly an occurrence in the entire permutation, and the pattern cannot occur across and . Therefore, also considering the permutation 1, we have
Here, the factor corresponds to the block , while the factor represents the generating function for reducible separable permutations corresponding to the block , bearing in mind that may have length 1.
In the reducible case (see Figure 7a), the shading of the lower-left corner of the pattern prevents this pattern from occurring in . On the other hand, any occurrence of the pattern in is clearly an occurrence in the entire permutation. Additional occurrences of the pattern can only arise in the situation when begins with its largest element , and is of length 1 (that is, and is an occurrence of the pattern). Since the g.f. for beginning (resp., not beginning) with the largest element is given by (resp., ), and the g.f. for irreducible separable permutations of length at least 2 is , we have
where the first term corresponds to the case of the irreducible being of length at least 2. Now using (46) and (47), we obtain
By substituting (1) in (48), we obtain (45).
Theorem 23 (Pairs S37–S40). We have
where
Proof. Any occurrence of the mesh pattern must involve the leftmost element in a given permutation.
In the irreducible case (see Figure 7b), we cannot have any occurrences of the pattern because of the shaded lower-right and upper-left regions (and clearly no occurrences can happen across and ). Therefore, also considering the permutation 1, we have
In the reducible case (see Figure 7a), if is an occurrence of the pattern, then is the leftmost element in and must lie in (because the upper-right region of the pattern is shaded). Moreover, must be a right-to-left maximum in , and conversely, any right-to-left maximum in , together with the leftmost element in , forms an occurrence of the pattern. Since all elements of are greater than those of , the right-to-left maxima in are exactly the right-to-left maxima of the entire permutation. Consequently, the number of occurrences of the pattern is equal to the number of right-to-left maxima in the entire permutation. Therefore, the distribution of reducible separable permutations (of length ) with respect to this pattern coincides with that of the right-to-left maximum statistic. By Theorem 1, this distribution is
where is given by (3).
Finally, to obtain (49), we substitute (50) and (51) into , and then substitute (1) and (3).
Theorem 24 (Pairs S41–S44). The formula in Theorem 23 holds for the pairs S41–S44.
Proof. Any occurrence of !mesh pattern must involve the leftmost element in a given permutation.
In the irreducible case (see Figure 7b), it is clear that if is an occurrence of !mesh pattern, then both and must belong to , so that cannot contribute any occurrences of the pattern. Therefore, also considering the permutation ,
where the factor corresponds to the block .
In the reducible case (see Figure 7a), the leftmost element in the permutation is in block , and hence the pattern cannot be found within . We consider two subcases:
The block begins with the smallest element. That is, , as shown in Figure 9. Then the element , together with every left-to-right maximum in the remainder of the permutation, forms an occurrence of !mesh pattern. The g.f. for this subcase is therefore clearly , where is given by Theorem 1. Indeed, the distribution in question coincides with the distribution of left-to-right maxima in , which can be any separable permutation.
Figure 9. Related to the proof of Theorem 24 and Theorem 27.
The block does not start with the smallest element. Then every occurrence of !mesh pattern, if any, must be entirely in , and the number of choices for are given by . Therefore, since can be empty, in this subcase, the g.f. is
Consequently, we obtain
and
Solving (53) for and substituting into the result (1) and (3) yields (49). ∎
Theorem 25 (Pairs S53–S56). We have
where
Proof. Any occurrence of must involve the leftmost element in a given permutation.
In the irreducible case (see Figure 7b), the rightmost element lies in the block . Moreover, since all elements in are larger than those in , the first element required to form the pattern cannot occur in . In addition, the block can be any separable permutation associated with this pattern. Therefore, we have
where corresponds to the permutation 1, the factor corresponds to the block , while represents the g.f. for reducible separable permutations corresponding to , taking into account that can also be of length 1.
In the reducible case (see Figure 7a), the rightmost element lies in the block . The first element contributing to an occurrence of appears in if and only if the block ends with its smallest element , as illustrated in Figure 8. Here, . In this configuration, cannot form the pattern with any element in , but it can form an occurrence of this pattern together with any right-to-left maximum in . Conversely, in this configuration, whenever an occurrence of this pattern appears, its first element must be a right-to-left maximum in . Moreover, can be any (possibly empty) separable permutation because ends with , which guarantees that is irreducible. Let denote the g.f. associated with this configuration. Then,
Figure 8. Related to the proof of Theorem 25.
where the block , together with , contributes the term ( is given by (3)), while corresponds to the block .
Consequently, we obtain
where the factor corresponds to the block , and the factor represents the g.f. for irreducible permutations of length corresponding to the block .
Substituting (55) and (57) into yields
Solving (58) for and substituting (1) and (3) yields (54).
Theorem 26 (Pairs S57–S60). The formula in Theorem 25 holds for the pairs S57–S60.
Proof. Any occurrence of the mesh pattern in a permutation must begin with the smallest element.
In the irreducible case (see Figure 7b), the smallest element lies in , which implies that the pattern cannot occur within , while can be any separable permutation. Therefore, we have
where the factor corresponds to the block , and represents the g.f. for reducible separable permutations associated with the block , that can be of length 1.
In the reducible case (see Figure 7a), the smallest element lies in , and can be any separable permutation. Moreover, the smallest element in , together with any left-to-right maximum in , contributes an additional occurrence of this pattern. Conversely, whenever an occurrence of the mesh pattern appears with its second element in , this element must be a left-to-right maximum in . Consequently, we obtain
where represents the contribution of the block , while the term is the distribution of left-to-right maxima on irreducible separable permutations (including the permutation of length given by Theorem 1. Now,
Solving (60) for and substituting (1) and (3) yields (54).
Theorem 27 (Pairs S69–S72). We have
Proof. If is an occurrence of the mesh pattern then must be the element 1 in the permutation.
In the irreducible case (see Figure 7b), the bottom-right shading implies that , a reducible separable permutation, contributes no occurrences of the mesh pattern. Since the top-left region is unshaded, every occurrence of the mesh pattern in is also an occurrence in the entire permutation. As no such pattern can occur across and , we obtain
where corresponds to , the case is considered, and is given by (1).
In the reducible case (see Figure 7a), since the upper-right corner is unshaded and the bottom-left corner is shaded, cannot contribute any occurrences of the mesh pattern. On the other hand, every occurrence of this pattern in is also an occurrence in the entire permutation. We then consider two subcases:
The block begins with the smallest element. That is, , as illustrated in Figure 9, where may be empty. Then the element 1, together with any strict
fixed point (i.e., an occurrence of [mesh pattern] in and , forms an occurrence of [mesh pattern]. Since is an irreducible permutation, such an occurrence of [mesh pattern] can appear if and only if consists of a single point. Therefore, the g.f. for this subcase is
where is given by Theorem 1. Here the term corresponds to the case where consists of a single element (i.e., ), while accounts for the case where .
The block does not start with the smallest element. Then every occurrence of [mesh pattern], if any, must be entirely in , and the number of choices for are given by . Therefore, in this subcase, the g.f. is
Consequently, we obtain
Substituting (62) and (63) into , we obtain (61).
Theorem 28 (Pairs S73–S76). We have
Proof. An occurrence of the pattern [mesh pattern] is an ascent satisfying extra conditions.
In the irreducible case (see Figure 7b), since in [mesh pattern] the upper-left region is shaded, the block cannot contain any occurrences of the pattern. Moreover, there are clearly no occurrences spanning both and . Consequently, the g.f. is
In the reducible case (see Figure 7a), since in [mesh pattern] the lower-left region is shaded, the block cannot contain an occurrence of the pattern, and it does not affect the block . However, an extra occurrence can arise across and , but only in the situation illustrated in Figure 10, where and . Let denote the g.f. associated with this configuration. Then

Figure 10. Related to the proof of Theorem 28.
since contributes a factor , the block contributes the term , and contributes the term . Therefore, we have
where the factor corresponds to the block , and the term to .
Combining (65)–(67) with , we obtain
By solving (68) for and substituting (1), we obtain (64).
Theorem 29 (Pairs S77–S80). We have
where
Proof. In the irreducible case (see Figure 7b), because the upper-left region of the mesh pattern is shaded, the block cannot contain an occurrence of the pattern, and clearly, the pattern does not occur across and . Therefore, is
In the reducible case (see Figure 7a), since the lower-left region of the mesh pattern is shaded, this pattern cannot occur in , and clearly any occurrence of the pattern in is also an occurrence in the entire permutation. Moreover, if the irreducible block has length greater than 1, then there cannot be any occurrences of the pattern spanning both and . If, on the other hand, has length 1, then the element 1 in together with forms an occurrence of the mesh pattern. These two subcases give, respectively, the first and second summands in
By substituting (70) and (71) into , we obtain
Solving (72) for and substituting (1), we obtain (69).
Conclusion
In this paper, we first determined the distributions of all mesh patterns of length 1 (see Table 2 and the references therein). In one instance, Theorem 7, we derived the joint equidistribution of strict fixed points and reverse strict fixed points. Using computer experiments and symmetry operations, we then classified the mesh patterns 12 and 21 with identical shadings into 38 equivalence classes based on their distributions; these classes are listed in Table 3–Table 6. Among the 24 (joint) distributions we derived, several were identical, allowing us to merge some equivalence classes and reduce the total number to 31. These mergings are summarized in Table 7, where patterns with identical distributions are grouped within the same block. Computer experiments confirm that the first several terms of the distributions of the 31 equivalence classes (17 of which we enumerated) are distinct, so no further merging is possible. Enumerating the remaining 14 classes – those missing references in Table 3–Table 6 – remains an open problem, providing a natural direction for future work.
Acknowledgements
The authors thank Philip B. Zhang for sharing his computational experiments on the equidistribution of the mesh patterns studied here. They also thank the anonymous reviewers for their helpful comments, which improved the presentation of the paper. The first author is supported by the National Natural Science Foundation of China (No. 12671393) and the Guangdong Basic and Applied Basic Research Foundation (No. 2024A1515011276).
References
- [2]S. Avgustinovich, S. Kitaev, and A. Valyuzhenich. Avoidance of boxed mesh patterns on permutations, Discrete Appl. Math., 161 (2013) 43–51.
- [3]J.-L. Baril, Classical sequences revisited with permutations avoiding dotted pattern, Electron. J. Combin., 18(1) (2011), #P178.DOI
- [4]P. Bose, J. F. Buss, and A. Lubiw. Pattern matching for permutations. Inform. Process. Lett. 65 (1998) 5, 277–283.
- [5]P. Brändén and A. Claesson. Mesh patterns and the expansion of permutation statistics as sums of permutation patterns, Electronic J. Combin., 18(2) (2011), #P5.
- [6]J. N. Chen, S. Kitaev and P. B. Zhang. Distributions of statistics on separable permutations, Discrete Appl. Math., 355 (2024), 169–179.
- [7]Q. Fang, S. Fu, S. Kitaev and H. Li. On fourteen equidistribution conjectures of Lv and Zhang and monotone mesh patterns with corner shadings, arXiv:2507.04698 (2025).arxiv.org/abs/2507.04698
- [8]S. Fu, Z. Lin, and J. Zeng. On two unimodal descent polynomials, Discrete Math., 341(9):2616–2626, 2018.arxiv.org/abs/1507.05184
- [9]B. Han and J. Zeng. Equidistributions of mesh patterns of length two. Sém. Lothar. Combin. 85B (2021), Art. 12, 12 pp.
- [10]B. Han and J. Zeng. Equidistributions of mesh patterns of length two and Kitaev and Zhang’s conjectures. Adv. in Appl. Math. 127 (2021), Paper No. 102149, 17 pp.arxiv.org/abs/2007.13015
- [11]I. Hilmarsson, I. Jónsdóttir, S. Sigurdardóttir, L. Vidarsdóttir, and H. Ulfarsson. Wilf-classification of mesh patterns of short length, Electr. J. Combin., 22(4) (2015), #P4.13.DOI
- [12]S. Kitaev, Patterns in permutations and words, Springer, 2011.
- [13]S. Kitaev and J. Liese. Harmonic numbers, Catalan’s triangle and mesh patterns, Discrete Math., 313 (2013), 1515–1531.arxiv.org/abs/1209.6423
- [14]S. Kitaev and P. B. Zhang. Distributions of mesh patterns of short lengths, Adv. Appl. Math., 110 (2019) 1–32.arxiv.org/abs/1811.07679
- [15]S. Kitaev, P. B. Zhang and X. Zhang. Distributions of several infinite families of mesh patterns, Appl. Math. Comput., 372 (2020) 124984.arxiv.org/abs/1903.00672
- [16]D. Li and P. B. Zhang. Distributions of mesh patterns of short lengths on king permutations. Discrete Math. 349 (2026), no. 1, Paper No. 114681, 15 pp.arxiv.org/abs/2411.18131
- [17]S. Lv and S. Kitaev. On (joint) equidistributions of mesh patterns 123 and 132 with symmetric shadings, Adv. Appl. Math., 166 (2025), 102856.arxiv.org/abs/2408.09401
- [18]S. Lv and P. B. Zhang. Joint equidistributions of mesh patterns 123 and 132 with minus antipodal shadings.Discrete Appl. Math. 379 (2026), 419–433.
- [19]S. Lv and P. B. Zhang. Joint equidistributions of mesh patterns 123 and 321 with symmetric and minus-antipodal shadings, Ann. Comb. (2026). https://doi.org/10.1007/s00026-025-00793-8.
- [20]B. E. Tenner. Mesh patterns with superfluous mesh, Adv. Appl. Math., 51 (2013), 606–618.arxiv.org/abs/1302.1883








