Docsity

Homework 4 Questions - Combinatorics | MATH 180, Assignments of Mathematics

Toggle sidebar
bg1
Homework 4 – Due Wednesday, April 29
Section A.2 (page 417): 1 (also give a non-induction proof), 9, 12, 16, 21
Section 7.1 (page 287): 3, 6, 11, 21, 27, 38
Supplemental problems:
1. A Dyck path of length 2nis a walk in the plane from (0,0) to (2n, 0) with steps of the form (x, y)→(x+1, y +1)
and (x, y)→(x+ 1, y −1) that does not go below the x-axis. Let Cnbe the number of Dyck paths of length
2n. We let C0= 1. The first few numbers are C1= 1, C2= 2 and C3= 5 (the last case is shown below). (The
numbers Ciare called the Catalan numbers and show up in hundreds of different mathematical problems.)
(a) Show that Cn=2n
n−2n
n−1=1
n+ 12n
n. (Hint: show that the number of walks that go below
the x-axis is in one-to-one correspondence with walks that start from (0,−2) and go to (2n, 0).)
(b) Show that Cn+1 =
n
X
k=0
CkCn−k.
(c) Show that if f(x) =
∞
X
n=0
Cnxnis the ordinary generating function for the Catalan numbers then the
relationship in part (b) implies f(x) = xf(x)2+ 1.
(d) Solve the quadratic equation in part (c) to find a simple expression of the ordinary generating function
for the Catalan numbers. (Make sure to decide which of ±to go with in the quadratic formula.)
2. The nth Bell number, B(n), counts the number of different ways to partition the set {1,2, . . . , n}. We let
B(0) = 1. The first few terms are B(1) = 1, B(2) = 2, B(3) = 5 (i.e., {1},{2},{3},{1,2},{3},
{1,3},{2},{1},{2,3},{1,2,3}).
(a) Show that B(n+ 1) =
n
X
k=0 n
kB(n−k).
(b) If g(x) =
∞
X
n=0
B(n)xn
n!is the exponential generating function for the Bell numbers, show g0(x) = exg(x).
(c) Solve the differential equation in part (b) to find a simple expression of the exponential generating function
for the Bell numbers.
3. Consider a variation of the tower of Hanoi problem where we have three poles A,Band Cand start with a
stack of ndifferent sized discs on pole Aarranged going from the bottom to the top by largest to smallest. We
again consider the problem of moving the discs from pole Ato pole C. There are three rules: (i) We can only
move one disc at a time. (ii) We can never put a larger disc over a smaller disc. (iii) We can not move a disc
directly from Ato Cor from Cto A. So for example, if n= 1 we now need two moves to transfer from pole
Ato pole C, first move from Ato Band second move from Bto C.
(a) Let R(n) be the minimal number of moves needed to move all ndiscs from pole Ato pole C. Set up a
recurrence for R(n), explain your reasoning behind the recurrence.
(b) Find R(1), R(2), R(3), R(4), and in general find R(n).
4. The Fibonacci numbers Fnare (correctly) defined by F0= 0, F1= 1 and Fn=Fn−1+Fn−2for n≥2.
(a) Prove by induction that for n≥1, 1 1
1 0n
=Fn+1 Fn
FnFn−1.
(b) Show that Fn+1Fn−1−F2
n= (−1)n. (Hint: use determinants on part (a).)
(c) Show that Fn+1Fm+FnFm−1=Fm+n. (Hint: AmAn=Am+n.)
(d) Show that Fndivides Fkn for k≥1. (Hint: use induction along with part (c).)

Partial preview of the text

Download Homework 4 Questions - Combinatorics | MATH 180 and more Assignments Mathematics in PDF only on Docsity!

Homework 4 – Due Wednesday, April 29

Section A.2 (page 417): 1 (also give a non-induction proof), 9, 12, 16, 21

Section 7.1 (page 287): 3, 6, 11, 21, 27, 38

Supplemental problems:

  1. A Dyck path of length 2n is a walk in the plane from (0, 0) to (2n, 0) with steps of the form (x, y) → (x+1, y +1) and (x, y) → (x + 1, y − 1) that does not go below the x-axis. Let Cn be the number of Dyck paths of length 2 n. We let C 0 = 1. The first few numbers are C 1 = 1, C 2 = 2 and C 3 = 5 (the last case is shown below). (The numbers Ci are called the Catalan numbers and show up in hundreds of different mathematical problems.)

(a) Show that Cn =

2 n

n

2 n

n − 1

n + 1

2 n

n

. (Hint: show that the number of walks that go below

the x-axis is in one-to-one correspondence with walks that start from (0, −2) and go to (2n, 0).)

(b) Show that Cn+1 =

∑^ n

k=

CkCn−k.

(c) Show that if f (x) =

∑^ ∞

n=

Cnx n is the ordinary generating function for the Catalan numbers then the

relationship in part (b) implies f (x) = x

f (x)

(d) Solve the quadratic equation in part (c) to find a simple expression of the ordinary generating function for the Catalan numbers. (Make sure to decide which of ± to go with in the quadratic formula.)

  1. The nth Bell number, B(n), counts the number of different ways to partition the set { 1 , 2 ,... , n}. We let B(0) = 1. The first few terms are B(1) = 1, B(2) = 2, B(3) = 5 (i.e.,

(a) Show that B(n + 1) =

∑^ n

k=

n

k

B(n − k).

(b) If g(x) =

∑^ ∞

n=

B(n)

xn

n!

is the exponential generating function for the Bell numbers, show g ′ (x) = e x g(x).

(c) Solve the differential equation in part (b) to find a simple expression of the exponential generating function for the Bell numbers.

  1. Consider a variation of the tower of Hanoi problem where we have three poles A, B and C and start with a stack of n different sized discs on pole A arranged going from the bottom to the top by largest to smallest. We again consider the problem of moving the discs from pole A to pole C. There are three rules: (i) We can only move one disc at a time. (ii) We can never put a larger disc over a smaller disc. (iii) We can not move a disc directly from A to C or from C to A. So for example, if n = 1 we now need two moves to transfer from pole A to pole C, first move from A to B and second move from B to C.

(a) Let R(n) be the minimal number of moves needed to move all n discs from pole A to pole C. Set up a recurrence for R(n), explain your reasoning behind the recurrence.

(b) Find R(1), R(2), R(3), R(4), and in general find R(n).

  1. The Fibonacci numbers Fn are (correctly) defined by F 0 = 0, F 1 = 1 and Fn = Fn− 1 + Fn− 2 for n ≥ 2.

(a) Prove by induction that for n ≥ 1,

)n

=

Fn+1 Fn Fn Fn− 1

(b) Show that Fn+1Fn− 1 − F 2 n = (−1)

n

. (Hint: use determinants on part (a).)

(c) Show that Fn+1Fm + FnFm− 1 = Fm+n. (Hint: A m A n = A m+n .)

(d) Show that Fn divides Fkn for k ≥ 1. (Hint: use induction along with part (c).)