Docsity

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

Toggle sidebar
bg1
MATH 630 Enumerative Combinatorics
Solution of Assignment 1.
1. Let f(n) be a sequence with the following exponential generating function
X
n≥0
f(n)xn
n!=exp(x+x2
2).
Evaluate the sum n
X
i=0
(−1)n−in
if(i).
Solution. Let g(n) = Pn
i=0(−1)n−in
if(i), and G(x) = Pn≥0g(n)xn/n!. Since g(n) is the convo-
lution of f(n) and an= (−1)n,G(x) = e−xF(x) = ex2/2=Pn≥0(x2/2)n/n!. Thus g(n) = 0 if nis
odd, and it is n!/(2mm!) = (n−1)!! if n= 2m.
Exercises on page 43. Solutions.
1. (a): There are 210 subsets of [10], among them 25do not contain any odd integers. So
210 −25.
1. (b): First, the number of circular permutation of [n] is (n−1)!. In this problem, two
arrangements are equivalent if one can be obtained from the other by a reflection with respect to
a diameter. Hence the answer is (n−1)!/2. Here n= 7.
1. (f): (6)4= 6 ×5×4×3.
1. (i): This is to count the number of permutations of the multiset {M, I4, S 4, P 2}, where
those having four S’s consecutive are the permutations of the multiset {M, I4, P 2, S SSS }, where
SSSS is a single symbol. Hence 11
1,4,4,2−8
1,4,2,1.
2.(a). Prove for xpositive integers. The RHS counts the number of n-subset of [x+n+ 1]. For
any n-subset Sof [x+n+ 1], let x+i+ 1 be the largest integer that is not in S. Then 0 ≤i≤n.
In this case, Scontains x+i+ 2, x +i+ 3, . . . , x +n+ 1 and other ielements from [x+i]. There
are x+i
imany ways to choose these ielements. Hence
x+n+ 1
n=
n
X
i=0 x+i
i.
2. (b). See solution on page 52.
3. See solution on page 52.
4. For part (a), see solution. For part (b), note that n
k= 0 if nor k < 0, and 2n−1
n=1
22n
n
for n > 0. So
X
n≥02n−1
nxn=1
2X
n>02n
nxn=1
2((1 −4x)−1/2−1).
5. (a). Conditioned on the form of the first step, we have the following recurrence
f(m, n)xmyn=x1y0f(m−1, n)xm−1yn+x0y1f(m, n −1)xmyn−1+x1y1f(m−1, n −1)xm−1,n−1(1)
1
pf3

Partial preview of the text

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

MATH 630 Enumerative Combinatorics

Solution of Assignment 1.

  1. Let f (n) be a sequence with the following exponential generating function ∑

n≥ 0

f (n)

xn n! = exp(x +

x^2 2

Evaluate the sum (^) n ∑

i=

(−1)n−i

n i

f (i).

Solution. Let g(n) =

∑n i=0(−1)

n−i(n i

f (i), and G(x) =

n≥ 0 g(n)x

n/n!. Since g(n) is the convo-

lution of f (n) and an = (−1)n, G(x) = e−xF (x) = ex (^2) / 2 =

n≥ 0 (x (^2) /2)n/n!. Thus g(n) = 0 if n is

odd, and it is n!/(2mm!) = (n − 1)!! if n = 2m.

Exercises on page 43. Solutions.

  1. (a): There are 2^10 subsets of [10], among them 2^5 do not contain any odd integers. So 210 − 25.
  2. (b): First, the number of circular permutation of [n] is (n − 1)!. In this problem, two arrangements are equivalent if one can be obtained from the other by a reflection with respect to a diameter. Hence the answer is (n − 1)!/2. Here n = 7.
  3. (f ): (6) 4 = 6 × 5 × 4 × 3.
  4. (i): This is to count the number of permutations of the multiset {M, I^4 , S^4 , P 2 }, where those having four S’s consecutive are the permutations of the multiset {M, I^4 , P 2 , SSSS}, where SSSS is a single symbol. Hence

1 , 4 , 4 , 2

1 , 4 , 2 , 1

2.(a). Prove for x positive integers. The RHS counts the number of n-subset of [x + n + 1]. For any n-subset S of [x + n + 1], let x + i + 1 be the largest integer that is not in S. Then 0 ≤ i ≤ n. In this case, S contains x + i + 2, x + i + 3,... , x + n + 1 and other i elements from [x + i]. There are

(x+i i

many ways to choose these i elements. Hence ( x + n + 1 n

∑^ n

i=

x + i i

  1. (b). See solution on page 52.

  2. See solution on page 52.

  3. For part (a), see solution. For part (b), note that

(n k

= 0 if n or k < 0, and

( 2 n− 1 n

( 2 n n

for n > 0. So ∑

n≥ 0

2 n − 1 n

xn^ =

n> 0

2 n n

xn^ =

((1 − 4 x)−^1 /^2 − 1).

  1. (a). Conditioned on the form of the first step, we have the following recurrence

f (m, n)xmyn^ = x^1 y^0 f (m − 1 , n)xm−^1 yn^ + x^0 y^1 f (m, n − 1)xmyn−^1 + x^1 y^1 f (m − 1 , n − 1)xm−^1 ,n−^1 (1)

for m ≥ 1 , n ≥ 1. For boundary conditions, we have

f (m, 0)xmy^0 = x^1 y^0 f (m − 1 , n)xm−^1 y^0 , m ≥ 1 , (2) f (0, n)x^0 yn^ = x^0 y^1 f (0, n − 1)x^0 yn−^1 , n ≥ 1. (3)

Sum over (1),(2),(3) for m ≥ 1 , n ≥ 1. If F (x, y) =

m≥o

n≥ 0 f^ (m, n)x myn, then

F (x, y) − 1 = xF (x, y) + yF (x, y) + xyF (x, y).

It follows F (x, y) = (1 − x − y − xy)−^1. Another way to do it is to use generating functions. Let fk(m, n) be the number of paths from (0, 0) to (m, n) using exactly k steps, and

Fk(x, y) =

m≥ 0 ,n≥ 0

fk(m, n)xmyn.

Clearly F 0 (x, y) = 1, and F 1 (x, y) = x + y + xy. Given a position (m, n), adding one more step will reach positions (m + 1, n), or (m, n + 1), or (m + 1, n + 1). Hence

Fk+1(x, y) = Fk(x, y)(x + y + xy).

So Fk(x, y) = (x + y + xy)k. It follows

F (x, y) =

k≥ 0

Fk(x, y) = (1 − x − y − xy)−^1.

  1. (b). See the solution at page 52–53. Note that by Newton’s binomial theorem,

(1 − x)−m^ =

j≥ 0

−m j

(−x)j^ =

j≥ 0

m + j − 1 j

xj^.

The general method to solve this type of problem is to (1) substitute x = s and y = t/s, and (2) use Residue theorem or partial fractions. In this particular problem, we don’t need to use those big machines! –Those methods are covered in EC, vol 2, Chapter 6, if you are interested.

  1. See the solution at page 55. Problem 10 can also by done by induction.
  2. Let D 1 = T 1 , Di = Ti \ Ti− 1 , for 1 < i ≤ k, and Dk+1 = S \ Tk. Then (T 1 ,... , Tk) and (D 1 ,... , Dk+1) determine each other. And (D 1 , D 2 , · · · , Dk+1) is a sequence of disjoint subsets of S with ∪k i=1+1 Di = S. So it is the same as the number of functions from |S| = n distinguishable “balls” to k + 1 distinguishable “boxes”, and the number is (k + 1)n.
  3. Let bi = ai − (i − 1)(j − 1). Then there is an one-to-one correspondence between the desired a sequences to ( ( b 1 , b 2 ,... , bk) where 1 ≤ b 1 < b 2 < · · · < bk ≤ n − (k − 1)(j − 1). There are n−(k−1)(j−1) k

many such b sequences.

  1. (a,c,e): The goal is to establish the recurrence f (n) = f (n − 1) + f (n − 2), and then compare the initial values with that of Fibonacci numbers.
  2. (f ). The sum counts the number of ways to insert bars into the spaces between n balls such that no two bars are in the same space, and then circle one ball in each compartment. Given