Docsity

Solution of Assignment 4 | Enumerative Combinatorics | MATH 630, Assignments of Mathematics

Toggle sidebar
bg1
MATH 630–600. Enumerative Combinatorics
Solution of Assignment 4.
1. Let D(n) be the number of derangement of length n. Prove that the generating function of
D(n) satisfies
X
n≥0
D(n)xn
n!=e−x
(1 −x).
Solution. All formulas on page 67 of the book can lead to this equation. For example, from
formula (11), one notices that D(n) is the convolution of an=n! and bn= (−1)n. Hence
passing to the exponential generating functions, one has PD(n)xn
n!=Pn!xn
n!P(−1)nxn
n!=
e−x/(1 −x).
2. Let m > n be two positive integers. How many ballot sequences (a1, a2,...,am+n) such that
(a) ai∈ {+1,−1},
(b) a1+a2+···+ai>0 for all i= 1,2,...,m+n,
(c) a1+a2+···+am+n=m−n. That is, the multiset {a1, . . . , am+n}={(+1)m,(−1)n}.
Solution. Any such ballot sequence must a1= 1. Hence we can count the number of subdi-
agonal paths from A= (1,0) to P= (m, n). The total number of lattice paths from Ato
Pis m+n−1
n. For those that touches the line y=x, by reflecting with respect to the last
intersection of the path and the line y=x, are in one-to-one correspondence with the lattice
paths from Ato Q= (n, m). There are m+n−1
mmany such paths. So the number that stay
below y=xis
m+n−1
n−m+n−1
m=m−n
m+nm+n
n.
3. Given a sequence (an)n≥0, let A(x) = Pn≥0anxnbe its generating function.
Suppose that the sequence (an) is the binomial transform of a sequence (bn), i.e.,
an=
n
X
i=0 n
ibi∀n≥0.
(a) Show that A(x) = 1
1−xB(x
1−x).
(b) Deduce that B(x) = 1
1+xA(x
1+x).
(c) Deduce from (b) that
bn=
n
X
i=1
(−1)n−in
iai,∀n≥0.
This is another proof of the binomial inversion formula.
Solution.
1
pf3
pf4

Partial preview of the text

Download Solution of Assignment 4 | Enumerative Combinatorics | MATH 630 and more Assignments Mathematics in PDF only on Docsity!

MATH 630–600. Enumerative Combinatorics

Solution of Assignment 4.

  1. Let D(n) be the number of derangement of length n. Prove that the generating function of

D(n) satisfies ∑

n≥ 0

D(n)x n

n!

e −x

(1 − x)

Solution. All formulas on page 67 of the book can lead to this equation. For example, from

formula (11), one notices that D(n) is the convolution of an = n! and bn = (−1) n

. Hence

passing to the exponential generating functions, one has

D(n) xn n!

n! xn n!

n xn n!

e −x /(1 − x).

  1. Let m > n be two positive integers. How many ballot sequences (a 1 , a 2 ,... , am+n) such that

(a) ai ∈ {+1, − 1 },

(b) a 1 + a 2 + · · · + ai > 0 for all i = 1, 2 ,... , m + n,

(c) a 1 + a 2 + · · · + am+n = m − n. That is, the multiset {a 1 ,... , am+n} = {(+1) m , (−1) n }.

Solution. Any such ballot sequence must a 1 = 1. Hence we can count the number of subdi-

agonal paths from A = (1, 0) to P = (m, n). The total number of lattice paths from A to

P is

m+n− 1 n

. For those that touches the line y = x, by reflecting with respect to the last

intersection of the path and the line y = x, are in one-to-one correspondence with the lattice

paths from A to Q = (n, m). There are

m+n− 1 m

many such paths. So the number that stay

below y = x is ( m + n − 1

n

m + n − 1

m

m − n

m + n

m + n

n

  1. Given a sequence (an)n≥ 0 , let A(x) =

n≥ 0 anx

n be its generating function.

Suppose that the sequence (an) is the binomial transform of a sequence (bn), i.e.,

an =

n ∑

i=

n

i

bi ∀n ≥ 0.

(a) Show that A(x) = 1 1 −x

B(

x 1 −x

(b) Deduce that B(x) = 1 1+x

A(

x 1+x

(c) Deduce from (b) that

bn =

∑^ n

i=

n−i

n

i

ai, ∀n ≥ 0.

This is another proof of the binomial inversion formula.

Solution.

(a) One checks that (1 − x)A(x) =

n(an^ −^ an−^1 )x

n , where

an − an− 1 =

∑^ n

i=

n

i

n − 1

i

)bi =

n∑− 1

i=

n − 1

i − 1

bi.

On the other hand,

B(

x

1 − x

i

bi(

x

1 − x

i

i

bix

i (

j

i + j − 1

j

x

j ).

The coefficient of x n in B(

x 1 −x ) is obtained by summing over all indices i, j with i+j = n,

which gives

∑

i+j=n

bi

i + j − 1

j

n∑− 1

i=

n − 1

i − 1

bi.

(b) Let y = x/(1 − x), then x = y/(y + 1). Substitute into (a).

(c) We compute

1 + x

A(

x

1 − x

i

i x i )[

j

aj x j (

k

k

j + k − 1

k

x k )]

i

i x

i )(

j+k=m

k aj

j + k − 1

k

x

j+k )

i

i x

i )(

m

m−j aj

m − 1

k

x

m )

Hence the coefficient of x n in the above formula is

∑^ n

m=

n−m (

∑^ m

j=

m−j aj

m − 1

j − 1

∑^ n

m=

∑^ m

j=

n−j aj

m − 1

j − 1

∑^ n

j=

n−j aj

n

j

The last equation uses the identity

∑n m=j

m− 1 j− 1

n j

  1. A sequence of positive integers (a 1 , a 2 ,... , an) is said to be of restricted growth if

a 1 = 1, ai+1 ≤ 1 + max{a 1 ,... , ai},

for all i = 1, 2 ,... , n.

(a) Write all restricted growth sequences for n = 4.

(b) Show that the number of restricted growth sequences is the Bell number Bn.

(c) Describe the Stirling numbers S(n, k) in terms of restricted growth sequences.

Solution. For (b), define a bijection from the restricted growth sequences to the set of parti-

tions of [n] as follows: given a restricted growth sequence a 1 , a 2 ,... , , an, let Bi = {j : aj = i}.

Then {B 1 , B 2 , · · · Bk} is a partition of [n], where k is the maximal value of a 1 , a 2 ,... , an. Con-

versely, given a partition π of [n], list the blocks of π by the numerical value of the minimal

element in the blocks, and assume the blocks are B 1 , B 2 ,... , Bk. Then let ai = j if the integer

x+y=n

O

T

x=p−k

y=n−(p−k)

P=(p, m+n−p)

We count lattice paths from O(0, 0) to P (p, m+n−p) by its area. Assume this path intersects

the line x + y = n at T = (p − k, n − (p − k). Then the path P consists of two part, P 1 from

O to T , and P 2 from T to P , where area(P ) = area(P 1 ) + area(P 2 ) + (p − k)(m − k). Hence

n + m

p

q

P

q area(P ) =

p ∑

k=

q (p−k)(m−k) (

P 1

q area(P 1 ) )(

P 2

q area(P −2) )

p ∑

k=

q (m−k)(p−k)

m

k

q

n

p − k

q

  1. Exercise 1, 2a and 7 on textbook.

Solution. 1, 2a See solution in page 91.

  1. List all the k-subsets of [n] as C 1 , C 2 ,... , C ( n k)

, and let Ai be the set of permutations which

contain a cycle of length k built on Ci. Then fk(n) = |A 1 ∪ · · · ∪ A (

n k)

|. Note that

|Ai 1 ∩ Ai 2 · · · ∩ Air | = ((k − 1)!)

r (n − rk)!

if Ci 1 ,... , Cir are disjoint. Otherwise it is 0. Hence

fk(n) =

r≥ 0

r

n

k,... , k, n − rk

r!

((k − 1)!)

r (n − rk)! =

n/k ∑

r=

r n! i!ki^

It follows that

lim n→∞

fk(n)

n!

r≥ 0

r 1 i!ki^

= e − 1 /k .