Learn / Library / Brainteasers
Paving a corridor
A corridor floor is units wide and units long and is paved with by slabs, each laid flat on the floor, either lengthwise or crosswise, with no gaps and no overlaps. How many different pavings are there?
Checking an answer needs JavaScript. The hint and the solution open without it.
Hint
Look at how the cells of the last column of the floor are covered, and set up counts: full floors and floors missing one corner cell.
Solution
- Let count pavings of a by floor and count pavings of such a floor from which the bottom cell of the last column is missing. A slab along the floor covers cells of one row, and a slab across covers cells of one column.
- In the last column of a full floor, either the top cells are covered by a slab across, which forces the bottom cell to take a slab along and leaves the floor of columns missing a bottom corner cell, or the same happens with the bottom cells, or all cells take slabs along covering the last columns; so .
- For a floor missing the bottom cell of the last column, the top cells of that column are either covered by one slab across, leaving a full floor of columns, or each takes a slab along, which forces the bottom cell of column to take one too and leaves a floor of columns missing a corner cell; so .
- Starting from and , this gives , , , , , , , , and finally .
Answer: