Let an be the number of ways to cover a 2 x n chessboard using 2 x 1 red tiles and 2 x 1 blue tiles. Find a formula for an. Find a recurrence relation for an, with initial conditions.
Solution: given 2 x 1 red and blue tiles
If n =1 (2 x 1) then there are 2 ways to cover the chessboard. 1st: 1 red tile, 2nd 1 blue tile --> a1 = 2
If n = 2 (2 x 2) then there are {r, r}, {b, b}, {r, b}, {b, r} --> a2 = 4
If n = 3 (2 x 3) we have:
For red:
{r, r, r}, {r, b, r}, {r, r, b}, {b, r, r}
For blue:
{b, b, b}, {b, r, b}, {b, b, r}, {r, b, b}
--> a3 = 8
If n = 4 ( 2 x 4) then
For red:
{r, r, r, r}, {r, b, r, r}, {r, r, b, r} {r, r, r, b}, {b, r, r, r}, {r, b, b, r}, {r, b, r, b},
For blue:
{b, b, b, b},{b, r, b, b}, {b, b, r, b} {b, b, b, r}, {r, b, b, b}, {b, r, r, b}, {b, r, b, r}.
--> a4 = 14
At this point, I was unsure of my red and blue order. For example is {b, b, r} and {r ,b, b} the same thing? Am I overcounting the number of solutions for each an? Please help
Let $b_n$ be the number of tilings of $2 \times n$ with uncolored dominoes. Then \begin{align} b_1&=1\\ b_2&=2\\ b_n&=b_{n-1}+b_{n-2} &&\text{for $n\ge 3$} \end{align} which you can derive by conditioning on the last column. Note that $b_n$ satisfies the same recurrence as the Fibonacci numbers. Now $a_n = 2^n b_n$ because you have two choices for the color of each domino. So \begin{align} a_1&=2 b_1 = 2\\ a_2&=4 b_2 = 8\\ a_n&=2 a_{n-1} + 4 a_{n-2} &&\text{for $n\ge 3$} \end{align}