2026-06-01

Problem — 2026-06-01

Medium

MediumCombinatorics

In how many ways can a 2×82 \times 8 grid be tiled using 1×21 \times 2 dominoes?

Enter an integer

Show solution
Let f(n)f(n) be the number of tilings of a 2×n2 \times n grid. A tiling either ends with a vertical domino (leaving a 2×(n−1)2 \times (n-1) grid) or two horizontal dominoes (leaving 2×(n−2)2 \times (n-2)). So f(n)=f(n−1)+f(n−2)f(n) = f(n-1) + f(n-2) with f(1)=1f(1) = 1, f(2)=2f(2) = 2. Computing: f(3)=3,f(4)=5,f(5)=8,f(6)=13,f(7)=21,f(8)=34f(3)=3, f(4)=5, f(5)=8, f(6)=13, f(7)=21, f(8)=34.