

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Solutions to assignment 2 in the enumerative combinatorics course (math 689). It includes proofs for the recurrence relation and equality of eulerian numbers, as well as solutions to various problems related to permutations, their descent sets, and generating functions.
Typology: Assignments
1 / 2
This page cannot be seen from the preview
Don't miss anything!


A(n, k) = kA(n − 1 , k) + (n − k + 1)A(n − 1 , k − 1), for 2 ≤ k ≤ n,
with boundary conditions A(n, 0) = 0, A(n, 1) = A(n, n) = 1 and A(n, k) = 0 for k > n. Solution. For a permutation π = a 1 a 2... an ∈ Sn, assume n = ai. Case 1. If i = n, or i 6 = n and ai− 1 > ai+1, then removing n will yield a permutation of length n − 1 with k − 1 descents. There are A(n − 1 , k) such permutations in Sn− 1. Conversely, for each such a permutation, one can insert n back in any of the descent position, or at the position n. There are k such choices. Therefore, kA(n − 1 , k) permutations in Sn fall into this case. Case 2. If i 6 = n but ai− 1 < ai+1, then removing n will yield a permutation of length n − 1 with k − 2 descents. Conversely, for each such a permutation, one can insert n into the first position, or any of the non-descent positions. There are (n − 1) − (k − 2) = n − k + 1 choices. Hence there are (n − k + 1)A(n − 1 , k − 1) permutations in Sn fall into this case.
A(n, k) = A(n, n + 1 − k).
Solution. If a 1 a 2 · · · an has k −1 descents, then anan− 1 · · · a 2 a 1 has n− 1 −(k −1) = n−k descents.
(n i
. Hence the maximal is reached when i = bn/ 2 c and dn/ 2 e.
6.Exercises on page 49, Problem 31. For a permutation π, let m(π) denote the number of left-to-right maxima of π and i(π) the number of inversions of π. Compute the generating function
F (x, q) =
π∈Sn
xm(π)qi(π).
Please state your reason. Solution. Consider the inversion table (b 1 , b 2 ,... , bn) for π. A number i is a left-to-right maximal iff bi = 0. Hence F (x, q) =
(b 1 ,b 2 ,...,bn)
x
P i χ(bi=0)q
P i bi^ ,
where 0 ≤ bi ≤ n − i, and χ(bi = 0) is the indicator of bi = 0, which is 1 if bi = 0, and is 0 otherwise. Separating variables, we get
F (x, q) =
n∑− 1
b 1 =
xχ(b^1 =0)qb^1
n∑− 2
b 2 =
xχ(b^2 =0)qb^2
n∑−n
bn=
xχ(bn=0)qbn
∏^ n
i=
(x + q + q^2 + · · · + qi−^1 )
The total number is 256.