How many ways can a 2×n rectangle be tiled using 1×2 dominoes?

Answer: The number of ways to tile a 2×n2 \times n rectangle using 1×21 \times 2 dominoes is Fn+1F_{n+1}, where FnF_n is the nn -th Fibonacci number with F1=1F_1=1 and F2=1F_2=1.

Step-by-step solution

Step 1: Define the problem and base cases

Let ana_n represent the number of ways to tile a 2×n2 \times n rectangle using 1×21 \times 2 dominoes. We need to find a recurrence relation for ana_n. First, let's consider the base cases for small values of nn.

Step 2: Calculate base cases for n=1n=1 and n=2n=2

For n=1n=1, a 2×12 \times 1 rectangle can only be tiled in one way: with a single vertical domino. So, a1=1a_1 = 1. For n=2n=2, a 2×22 \times 2 rectangle can be tiled in two ways: either with two vertical dominoes or with two horizontal dominoes. So, a2=2a_2 = 2.

Step 3: Derive the recurrence relation

Consider the rightmost column(s) of the 2×n2 \times n rectangle. There are two possibilities for placing the last dominoes: \\ 1. A single vertical domino in the last column. The remaining 2×(n−1)2 \times (n-1) rectangle can be tiled in an−1a_{n-1} ways. \\ 2. Two horizontal dominoes occupying the last two columns. The remaining 2×(n−2)2 \times (n-2) rectangle can be tiled in an−2a_{n-2} ways. \\ These two cases are mutually exclusive and exhaustive, so an=an−1+an−2a_n = a_{n-1} + a_{n-2}.

Step 4: Recognize the Fibonacci sequence

The recurrence relation an=an−1+an−2a_n = a_{n-1} + a_{n-2} with initial conditions a1=1a_1 = 1 and a2=2a_2 = 2 defines a shifted Fibonacci sequence. The standard Fibonacci sequence is F0=0,F1=1,F2=1,F3=2,F4=3,…F_0=0, F_1=1, F_2=1, F_3=2, F_4=3, \dots. Comparing, we see that an=Fn+1a_n = F_{n+1}.

More from this chapter

All Permutations and Combinations solutions →

Solve your own maths question free →