Final Exam Review I
Final Exam: Fri May 2, 2008, 10:00--12:00, in our usual room Wells C-305.
- Basic Enumeration (Ch 2.1−2.3)
- Product Principle. Typical Problems: nk, k!, nk, (n | k),
- Multi-choose numbers: ((n | k)) = (n+k−1 | k) = (n+k−1 | n−1), bins-and-beans correspondence
- Principle of Inclusion-Exclusion (PIE):
| |Agood| | = | | A − (A1∪...∪Ar) | |
| = | |A| − ∑i |Ai| + ∑ i < j |Ai∩Aj| − ... + (−1)k|A1∩...∩Ar| |
Here A is a large set of objects, A1,...,Ar are subsets of bad objects, and our goal is to count the good objects.We use this method when the good objects are difficult to count directly, but the bad objects are easy to count.
- Generating functions (Ch 2.4.1−2.4.5)
- Goal: Given a combinatorial sequence {ak}k≥0, find an explicit formula for ak .
- Step 1: Find a simple formula for the generating functionf(x) = ∑k≥0 akxk .
- Often with ak counts the objects of size k in some (usually infinite) set A. The Product Principle for objects in A gives a product expression for f(x), often involving Geometric Series (1+x+x2+...) = 1/(1−x) .
- Recurrence for ak implies an equation involving f(x). Solve this equation for f(x).
- Step 2: Given a formula for f(x), find a formula for its coefficients ak
- Taylor's Theorem: ak = f(k)(0)/k!
- Binomial Theorem (proved using Taylor's Thm)
(1+z)n = ∑0≤k≤n (n | k) zk
(1−z)−n = ∑k≥0 ((n | k)) zk - Partial fraction decomposition: 1/(1−ax)(1−bx) = A/(1−ax) + B/(1−bx)
Final Review Problems I.
- Basic enumeration of combinations. Count the possiblities for each type of objects.
In each case, we have k elements of n kinds, with various conditions on ordering and repeats.- Ordered list, repeats allowed.
- Ordered list, no repeats.
- Ordered list, each kind appearing at least once.
- Unordered set, no repeats.
- Unordered multi-set, repeats allowed.
- Unordered multi-set, each kind appearing at least once.
- Counting solutions of n1 + n2 + n3 = 10.
- Count the triples of whole numbers n1,n2,n3 ≥ 0 satisfying the equation n1 + n2 + n3 = 10. Hint: Put 2 bars between 10 stars.
- Same, but with n1,n2,n3 ≥ 1. Hint: Interpret this also in terms of stars-and-bars.
- Extra Credit: Same, but suppose the numbers are rolls of the dice, so that each 1 ≤ ni ≤ 6. Hint: PIE, combined with the previous solution.
- Re-do the above problem using generating functions.
- Let ak be the number of triples of whole numbers n1,n2,n3 ≥ 0 satisfying the equation n1 + n2 + n3 = k. Evaluate f(x) = ∑k≥0 akxk using the Product Principle, and use this to get an expression for ak . Compare a10 with your answer above.Hint: Perform an algebraic substitution on the logical expression:(n1 = 0 or n1 = 1 or n1 = 2 or ...)and (n2 = 0 or ....) and (n3 = 0 or ...)
- Same, but with n1,n2,n3 ≥ 1.
- Extra Credit: Same, but with 1 ≤ ni ≤ 6. Hint: Expand the top, and take each term over the denominator.
- Give a formula for the sequence {ak}k≥0 defined by the recurrence ak = 3ak−1 − 2ak−2 for k ≥ 2, and a0 and a1 are arbitrary constants.
Hint: You can check your answer by computing ak directly in the case a0 = a1 = 1 , and comparing with your general answer.