Say I have three objects: Object A, B, and C. I may not choose object B two times in a row. How many choices would there be for n = 2? n=3?
My goal is to find a recurrence relation for this, but I am struggling to understand how this would even work mathematically.
Let $w_n$ denote the number of ways of choosing the objects $n$ times, so that the last chosen object (object chosen the $n^{th}$ time) is not $B$. Then we cab derive the following recurrence relation for $w_n$:
$$w_n=2(w_{n-1}+w_{n-2})$$ This is because in the $n^{th}$ round either $A$ or $C$ has to be chosen, according to our defintion of $w_n$ and there are two options upto the $(n-1)^{th}$ round: