AMC 12 Mock Exam 8 Problem 21
Problem 21 of 25
A gardener divides a rectangular bed into a grid of ten square plots and plants each plot with roses, tulips, or clover. Two plots that share a side may not both contain roses, and two plots that share a side may not both contain tulips; clover may be planted anywhere. How many different ways can the gardener plant the bed?
Answer choices
Show solution
Solution
Write for clover, for roses, and for tulips. A column (top plot, bottom plot) may not be or , so there are possible columns, of three kinds:
- type : (1 column);
- type : one clover and one flower: , , , (4 columns);
- type : or (2 columns).
Two neighboring columns are compatible when the top plots are not both or both , and likewise the bottom plots. Checking one column of each type: after any of the columns may follow ( of type , of type , of type ); after the next column is , , , , or (); after the next column is , , , or (). By symmetry the same holds for the other columns of each type.
Let count the valid beds whose last column has each type. Then Starting from : So the number of plantings of the bed is .
(Ignoring the side-by-side rule gives ; planting the two rows independently ignores the vertical rule and gives ; forbidding roses next to tulips as well gives .)
Tagged: 2-by-n grid with adjacency constraints (transfer recursion)