my professor assigned as extra credit (and the due date has passed) but I'm still curious as to how I could go about doing this. Basically the goal is to find the amount of possible patterns there are for a 3xn grid being filled with $2\times 1$, $1\times 2$ and $1\times 1$ blocks Solving for the $3\times n$ grid using $2\times 1$ blocks is easy, but I can't figure out how to extend it to include the $1\times 1$ blocks. Here is a picture of the assignment sheet in case the description I provided is not good enough
Right now I know that the relation for a $3\times n$ with $2\times 1$ tiles is
- $f(n) = f(n-2) + 2g(n-1)$
- $g(n) = f(n-1) + g(n-2)$
- $f(0) = 1$
- $f(1) = 0$
- $g(0) = 0$
- $g(1) = 1$
I'm just having trouble breaking the problem down for the $3\times n$ with $2\times 1$ blocks and $1\times 1$ blocks. I'm particularity having trouble creating the base cases for such an operation, as finding the functions themselves is similar to the first problem.
Photo of the Assignment Page:
