Docsity

Mathematical Computer Science: Combinatorics Final Exam | MCS 421, Exams of Mathematics

Toggle sidebar
bg1
MCS 421 Final Exam: 12/15/06
08:00–10:00 AM
No aids allowed
Each question is worth 25 points
Good luck!
1. Evaluate the sums
1
1µn
0+1
2µn
1+1
3µn
2+1
4µn
3+···
1
1µn
0−1
2µn
1+1
3µn
2−1
4µn
3+···
and use them to evaluate the sum
1
1µn
0+1
3µn
2+1
5µn
4+1
7µn
6+···
Solution: Integrate (1 + x)n=Pk¡n
k¢xkto obtain 1
n+1 (1 + x)n+1 =
Pk
1
k+1 ¡n
k¢xk+1 +C. Substitute x= 0 to find C=1
n+1 . Now substitute
x= 1 and x=−1 to obtain
1
1µn
0+1
2µn
1+1
3µn
2+1
4µn
3+··· =2n+1 −1
n+ 1
1
1µn
0−1
2µn
1+1
3µn
2−1
4µn
3+··· =1
n+ 1.
Add the last two identities to find
1
1µn
0+1
3µn
2+1
5µn
4+1
7µn
6+··· =2n
n+ 1.
2. Prove the identity
n
X
i=0
(−1)iµn
i¶µm+n−i
k−i=µm
k.
Suggestion: Consider mboys and ngirls. Let Sbe the set of all k-person
committees, and count in two ways those committees from Sthat consist
entirely of boys.
Solution: Following the suggestion, if we want committees consisting
entirely of boys, we can ignore the girls and so the number of committees
is clearly ¡m
k¢. To count in a second way, we use Inclusion-Exclusion. Let
Sbe as in the suggestion and let Apbe the set of committees from S
that contain the p-th girl and possibly others. The number of committees
we want is |A1∩ ·· · ∩ An|. We have |Ap|=¡n
1¢¡ m
k−1¢for all p,|Ap∩
Aq|=¡n
2¢¡ m
k−2¢for all p < q, and so on. Therefore |A1∩ · ·· ∩ An|=
Pn
i=0(−1)i¡n
i¢¡m+n−i
k−i¢.
pf3
pf4

Partial preview of the text

Download Mathematical Computer Science: Combinatorics Final Exam | MCS 421 and more Exams Mathematics in PDF only on Docsity!

MCS 421 Final Exam: 12/15/ 08:00–10:00 AM No aids allowed Each question is worth 25 points Good luck!

  1. Evaluate the sums

1 1

n 0

n 1

n 2

n 3

n 0

n 1

n 2

n 3

and use them to evaluate the sum

1 1

n 0

n 2

n 4

n 6

Solution: Integrate (1 + x)n^ =

k

(n k

xk^ to obtain (^) n+1^1 (1 + x)n+1^ = ∑ k

1 k+

(n k

xk+1^ + C. Substitute x = 0 to find C = (^) n+1^1. Now substitute x = 1 and x = −1 to obtain 1 1

n 0

n 1

n 2

n 3

2 n+1^ − 1 n + 1 1 1

n 0

n 1

n 2

n 3

n + 1

Add the last two identities to find

1 1

n 0

n 2

n 4

n 6

2 n n + 1

  1. Prove the identity

∑^ n

i=

(−1)i

n i

m + n − i k − i

m k

Suggestion: Consider m boys and n girls. Let S be the set of all k-person committees, and count in two ways those committees from S that consist entirely of boys. Solution: Following the suggestion, if we want committees consisting entirely of boys, we can ignore the girls and so the number of committees is clearly

(m k

. To count in a second way, we use Inclusion-Exclusion. Let S be as in the suggestion and let Ap be the set of committees from S that contain the p-th girl and possibly others. The number of committees we want is |A 1 ∩ · · · ∩ An|. We have |Ap| =

(n 1

)( (^) m k− 1

for all p, |Ap ∩ Aq | =

(n 2

)( (^) m k− 2

for all p < q, and so on. Therefore |A 1 ∩ · · · ∩ An| = ∑n i=0(−1)

i(n i

)(m+n−i k−i

  1. How many integral solutions (x 1 , x 2 ,... , xn) do the inequalities

n ≥ x 1 ≥ x 2 ≥ · · · ≥ xn ≥ 0

have? Suggestion: consider the differences n − x 1 , x 1 − x 2 ,... , xn − 0. What is their sum? Solution: Following the suggestion, let y 1 = n − x 1 , y 2 = x 1 − x 2 ,... , yn = xn− 1 − xn, yn+1 = xn. Then the yi are nonnegative integers and y 1 + · · · + yn+1 = n. Conversely, given such yi we can find xi satisfying the original conditions. Therefore the number of solutions (x 1 , x 2 ,... , xn) equals the number of solutions (y 1 , y 2 ,... , yn+1), which is

((n+1)+n− 1 n

2 n n

  1. Find the number of permutations i 1 , i 2 , i 3 , i 4 , i 5 of 1, 2 , 3 , 4 , 5 such that i 1 6 = 1, 2, i 2 6 = 1, i 3 6 = 3, 4 , 5, and i 4 6 = 3, 4 , 5. Solution: The rook polynomial in question is

× × × × × × × × ×

× ×

×

× × ×

× × ×

(1 + 3x + x^2 )(1 + 6x + 6x^2 ) = 1 + 9x + 25x^2 + 24x^3 + 6x^4. Therefore the required number is

5! − 9 · 4! + 25 · 3! − 24 · 2! + 6 · 1! − 0 · 0! = 12.

  1. Find the number of sequences of length n consisting of the digits 0, 1 , 2 in which 0 is not immediately followed by a 1, and 1 is not immediately followed by a 0. Solution: Let an be the required number, and let An, Bn, Cn denote the number of the allowed sequences beginning with 0, 1 , 2, respectively, so that an = An + Bn + Cn. The An, Bn, Cn satisfy the simultaneous recurrences

An = An− 1 + Cn− 1 (1) Bn = Bn− 1 + Cn− 1 (2) Cn = An− 1 + Bn− 1 + Cn− 1. (3)

In particular, Cn = an− 1. By symmetry An = Bn, so we eliminate Bn and are left with the simultaneous recurrences

An = An− 1 + Cn− 1 Cn = 2An− 1 + Cn− 1.

the remaining 4 faces split into 2 2-cycles). Therefore the cycle index is PG(z 1 ,... , z 6 ) = 16 (z^51 + 2z^21 z 3 + 3z 1 z^22 ). The required number is the coefficient of r^2 b^2 w in PG(r + b + w, r^2 + b^2 + w^2 ,.. .), which is equal to 1 6

5 2 , 2 , 1