100 Combinatorics of Compositions and Words
Example 4.18 (Partitions with distinct parts) Another interesting applica-
tion of Corollary 4.16 concerns partitions with distinct parts, which just means
that the number of levels is zero. Setting =0and d =1in Corollary 4.16,
we obtain that the generating function for the number of partitions of n with
m distinct parts in A is given by
C
A
(x, y, 0, 0, 1) =
1
1 −
k
j=1
x
a
j
y
j
i=1
(1 + x
a
i
y)
−1
=
k
j=1
(1 + x
a
j
y),
where the second equality is easily proved by induction. In particular, the
generating function for the number of partitions of n with distinct parts is
given by
j≥1
(1+x
j
). This result can be proved directly by using the approach
of Example 2.65, as each part j occurs at most once.
As before, we can compute the partial derivatives
∂
∂
C
A
(x, y, 0, 1, 1) and
∂
∂d
C
A
(x, y, 0, 1, 1) to obtain results on the number of levels and drops in
partitions (see Exercise 4.7 for a special case).
4.3 Longer subword patterns
As mentioned at the beginning of this chapter, rises, levels and drops can
be considered as 2-letter subword patterns. Because there are only three such
patterns, we were able to derive results for all patterns at once in Theorem 4.3.
As the length of the pattern increases, the corresponding number of patterns
increases rapidly, so we will derive generating functions for one pattern at
a time. We will use the following notation to keep track of the number of
occurrences of specific patterns.
Definition 4.19 We denote the number of occurrences of the pattern τ in a
composition σ by occ
τ
(σ).
Before we dive into longer patterns, we will summarize the results obtained
for rises, levels and drops in terms of 2-letter patterns. Setting r = d =1and
= q in Theorem 4.3 for the pattern 11, and = d =1andr = q for the
patterns 12 and 21, we obtain the results listed in Table 4.1.
We are now ready to look at longer subword patterns. The first paper on
3-letter subword patterns was a direct extension of the statistics rise, level
and drop [92]. The authors enumerated compositions according to 3-letter
subword patterns formed by the concatenation of any two of the patterns
level, rise, and drop. For example, a level followed by a level corresponds
to the single pattern 111 and we will refer to this statistic by the shorthand
level+level. On the other hand, the statistic rise+drop is comprised of three
different patterns, namely 121, 132, and 231.
© 2010 by Taylor and Francis Group, LLC