16 Combinatorics of Compositions and Words
to the subword pattern 12. Heubach and Mansour [92] enumerated compo-
sitions according to subword patterns of length three. Some of their results
were further generalized by Mansour and Sirhan [145] to enumerating com-
positions according to patterns from families of -letter patterns, for example
the pattern 1
−1
2.
Having obtained very general results on the statistics rises, levels, parts
and order of compositions, we can look at special cases. Since partitions can
be thought of as the nonincreasing compositions, they can be enumerated as
compositions without rises. This allows us to obtain results for partitions
from our results for compositions. We will present these results in Chapter 4.
1.3.3 Pattern avoidance in compositions
In Chapter 5, we will change our focus from enumeration of compositions
and words according to the number of times a certain pattern occurs to the
avoidance of such patterns. Clearly, we can obtain results for pattern avoid-
ance of subword patterns from the previous chapter by looking at zero oc-
currences. In this chapter, we will look at more general patterns, namely
subsequence, generalized, and partially ordered patterns. Subsequence pat-
terns are those where the individual parts of the pattern do not have adjacency
requirements, while generalized patterns have some adjacency requirements.
Partially ordered patterns is a further generalization in the sense that some
of the letters of the pattern are not comparable.
Pattern avoidance was first studied for S
n
, the set of permutations of [n],
avoiding a pattern τ ∈S
3
. Knuth [122] found that, for any τ ∈S
3
,thenumber
of permutations of [n] avoiding τ is given by the n-th Catalan number. Later,
Simion and Schmidt [179] determined |S
n
(T )|, the number of permutations
of [n] simultaneously avoiding any given set of patterns T ⊆S
3
.Burstein
[31] extended this to words of length n on the alphabet [k], determining the
number of words that avoid a set of patterns T ⊆S
3
. Burstein and Man-
sour [33, 34] considered forbidden patterns with repeated letters. Recently,
pattern avoidance has been studied for compositions. Savage and Wilf [176]
considered pattern avoidance in compositions for a single subsequence pattern
τ ∈S
3
, and showed that the number of compositions of n with parts in N
avoiding τ ∈S
3
is independent of τ. Heubach and Mansour answered the
same questions for subsequence patterns of length three with repeated letters
[91]. For longer subsequence patterns, the results by Jel´ınek and Mansour
[105] allow for a complete classification according to avoidance in both words
and compositions.
We will also provide new results on the avoidance of generalized patterns of
length three in Section 5.3, both for permutation patterns and those that have
repeated letters, thereby giving results on the only three-letter patterns not
yet studied. Finally, Section 5.4 contains results on the number of composi-
tions that contain or avoid partially ordered patterns. Kitaev [108] originally
studied avoidance of partially ordered patterns in permutations, and he and
© 2010 by Taylor and Francis Group, LLC