1

enter image description here

I am assuming that the recurrence relation for a) would be $a_n = a_{n-1} + a_{n-2}+ a_{n-3}$. Correct me if I'm wrong. And I have no idea to what the answer for B is. I would really appreciate it if you provide a detailed explanation on how this problem is solved.

Thanks a lot, really.

Jack M
  • 27,819
  • 7
  • 63
  • 129

1 Answers1

1

For a, given a stack of height $n-1$, you can put either of two colors on top. For b, a stack of height $n$ can either be a stack of height $n-1$ that you put a blue chip on, or a stack of height $n-2$ that got a blue chip and now you put a red or white on. Can you make recurrences out of that?

Ross Millikan
  • 374,822