Final Exam Review I


Final Exam:  Fri May 2, 2008, 10:00--12:00, in our usual room Wells C-305.


Final Review Problems I.  

  1. 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.
    1. Ordered list, repeats allowed.
    2. Ordered list, no repeats.
    3. Ordered list, each kind appearing at least once.
    4. Unordered set, no repeats.
    5. Unordered multi-set, repeats allowed.
    6. Unordered multi-set, each kind appearing at least once.

  2. Counting solutions of n1 + n2 + n3 = 10.
    1. Count the triples of whole numbers n1,n2,n3 ≥ 0  satisfying the equation n1 + n2 + n3 = 10.  Hint: Put 2 bars between 10 stars.
    2. Same, but with n1,n2,n3 ≥ 1. Hint: Interpret this also in terms of stars-and-bars.
    3. 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.

  3. Re-do the above problem using generating functions.
    1. 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 ...)
    2. Same, but with n1,n2,n3 ≥ 1.
    3. Extra Credit: Same, but with 1 ≤ ni ≤ 6. Hint: Expand the top, and take each term over the denominator.

  4. 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.