/Solutions

1. Solve a recurrence

Let T(n) be defined by the recurrence

Give a closed-form expression for T(n).

2. Triplets

Suppose you have a collection of objects of varying weights, and there are exactly ${n+5 \choose 5}$ ways to make a sequence of three of these objects with total weight n. How many objects are there with weight n?

3. Birthdays

Suppose that P and Q each have birthdays that are equally likely to be any of the 365 days of the year,1 and that the two birthdays are independent. What is the probability that both birthdays occur on the same day of the week in a non-leap year?

  1. We are conditioning on the event that neither of them is born on February 29th. (1)

CS202/2008/Assignments/HW07 (last edited 2008-11-12 16:09:44 by LevReyzin)