Tiling a 2 × n board with dominoes and squares
Statement
Let be the number of ways to tile a board with dominoes (placed either way) and squares. Find a recurrence for , then prove
How many tilings are there for ?
Hint
Look at the rightmost column. How can it be covered? Then solve the recurrence by its characteristic equation or by a generating function.
Show solutionHide solution
Solution
Idea. Condition on what covers the last column(s).
Recurrence. Put (empty tiling) and (one vertical domino). For , look at the right end of the board:
- a vertical domino covers the last column: tilings of the rest;
- otherwise the top-right cell is covered by a horizontal domino, which then forces a second horizontal domino directly below it: this covers the last two columns, tilings of the rest;
- a square covers the last two columns: tilings of the rest.
These three cases are exhaustive and disjoint, so
Solving. The characteristic equation has roots and , so . From and : and , giving , . Hence .
Generating function check. With , the recurrence gives , that is , the same formula.
Value. .
Lesson. Condition on the last block, turn the count into a linear recurrence, solve it with the characteristic equation or a generating function.