

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


MCS 421 Midterm 2: 11/8/ Time: 50 minutes No aids allowed Each question is worth 25 points Good luck!
∑k i=0(−1)
i(k i
(k − i)n. What identities are obtained when k = n and when k > n? Solution: Let S be the set of all mappings from [n] to [k], and let Ap be the set of those members of S that do not assume the value p for p = 1,... , k. The number of surjections is |A 1 ∩ · · · ∩ Ak|. We have |S| = kn, |Ap| = (k − 1)n^ for all p, |Ap ∩ Aq | = (k − 2)n^ for all p < q, and so on. By the inclusion-exclusion principle, the number of surjections is
∑k i=0(−1) i(k i
(k − i)n. When k = n the surjections are bijections, and therefore we obtain the identity
∑n i=0(−1) i(n i
(n − i)n^ = n!. When k > n there are no surjections, and therefore
∑k i=0(−1)
i(k i
(k − i)n^ = 0.
∑n i=0hi,^ n^ ≥^ 0 with initial condition h 0 = 1. Solution 1: Let g(x) = h 1 + h 2 x + h 2 x^2 + · · ·. Multiplying by (^1) −^1 x we obtain
1 1 − x
g(x) =
i≥ 0
xi^
j≥ 0
hj xj^ =
n≥ 0
( (^) n ∑
k=
hk
xn^ =
n≥ 0
(hn+1 − 1)xn
g(x) − 1 x
n≥ 0
xn^ =
g(x) − 1 x
1 − x
Solving this equation for g(x) we obtain g(x) = (^1) −^12 x , and therefore hn = 2 n. Solution 2: By looking at small values of n we observe that hn = 2n. We prove it by induction. The base case n = 0 is clear. If the statement holds for n, then hn+1 = 1 +
∑n i=0 2
i (^) = 1 + (2n+1 (^) − 1) = 2n+1.
x+e−x 2.^ The same is true for^ b’s, and the egf for^ c’s is^
ex−e−x
The total egf is therefore
ex+e−x 2
ex−e−x 2 =^
1 8 (e
3 x (^) + ex (^) − e−x (^) − e− 3 x).
Therefore hn = 18 (3n^ + 1 − (−1)n^ − (−3)n). For even n hn = 0, and for odd n hn = 14 (3n^ + 1).