2013 AIME II Problem 9
Problem 9 of 15IntermediateCombinatorics
A board is completely covered by tiles without overlap; each tile may cover any number of consecutive squares, and each tile lies completely on the board. Each tile is either red, blue, or green. Let be the number of tilings of the board in which all three colors are used at least once. For example, a red tile followed by a green tile, a green tile, a blue tile, and a green tile is a valid tiling. Note that if the blue tile is replaced by two blue tiles, this results in a different tiling. Find the remainder when is divided by
Your answer
Integer from 0 to 999
Show solution
Solution
First count colored tilings when colors are available. The first square’s tile can be colored in ways, and each of the remaining squares either extends the current tile or starts a new tile in one of the colors, giving choices per square. So there are tilings.
With three colors that is tilings. By inclusion-exclusion over the unused colors, the number using all three colors is
The remainder when is divided by is
Tagged: tiling · inclusion-exclusion · multiplication principle