多米诺铺砖计数
How many ways are there to tile dominos
题目详情
用 的多米诺骨牌铺满一个 的棋盘,有多少种铺法?
铺满一个 的棋盘,有多少种铺法?
英文原题
How many ways are there to tile dominos (with size ) on a grid of ? How about on a grid of ?
解析
(1)
设 为 的铺法数。
- 若最左列竖放一块,则剩余 : 种;
- 若最左两列横放两块,则剩余 : 种。
因此
所以 (斐波那契数)。
(2)
设 为 的铺法数。经典结果满足递推
由此可依次算出 。
英文解析
(1)
Let be the number of ways to tile a rectangle.
- If the leftmost column is covered by a vertical domino, the remaining area is , giving ways;
- If the leftmost two columns are covered by two horizontal dominoes, the remaining area is , giving ways.
Therefore,
so (the Fibonacci numbers).
(2)
Let be the number of ways to tile a rectangle. The classical result satisfies the recurrence
From this, we can compute sequentially.