Suppose you have n dollars and can buy coffee for $1, milk for $2, and orange juice
Question:
Suppose you have n dollars and can buy coffee for $1, milk for $2, and orange juice for $2. Let C(n) count the number of different ways of spending all your money.
(a) Explain why C(n) = C(n−1) + 2C(n−2), C(0) = C(1) = 1.
(b) Find an explicit formula for C(n).
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Related Book For
Question Posted: