Skip to main content

AMC 12 Mock Exam 8 Problem 21

Problem 21 of 25

A gardener divides a rectangular bed into a 2×52\times5 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 WW for clover, RR for roses, and TT for tulips. A column (top plot, bottom plot) may not be RRRR or TTTT, so there are 77 possible columns, of three kinds:

  • type aa: WWWW (1 column);
  • type bb: one clover and one flower: WRWR, WTWT, RWRW, TWTW (4 columns);
  • type cc: RTRT or TRTR (2 columns).

Two neighboring columns are compatible when the top plots are not both RR or both TT, and likewise the bottom plots. Checking one column of each type: after WWWW any of the 77 columns may follow (11 of type aa, 44 of type bb, 22 of type cc); after WRWR the next column is WWWW, WTWT, RWRW, TWTW, or RTRT (1,3,11,3,1); after RTRT the next column is WWWW, WRWR, TWTW, or TRTR (1,2,11,2,1). By symmetry the same holds for the other columns of each type.

Let an,bn,cna_n,b_n,c_n count the valid 2×n2\times n beds whose last column has each type. Then an+1=an+bn+cn,bn+1=4an+3bn+2cn,cn+1=2an+bn+cn.a_{n+1}=a_n+b_n+c_n,\qquad b_{n+1}=4a_n+3b_n+2c_n,\qquad c_{n+1}=2a_n+b_n+c_n. Starting from (a1,b1,c1)=(1,4,2)(a_1,b_1,c_1)=(1,4,2): (1,4,2)→(7,20,8)→(35,104,42)→(181,536,216)→(933,2764,1114).(1,4,2)\to(7,20,8)\to(35,104,42)\to(181,536,216)\to(933,2764,1114). So the number of plantings of the 2×52\times5 bed is 933+2764+1114=4811933+2764+1114=\boxed{4811}.

(Ignoring the side-by-side rule gives 75=168077^5=16807; planting the two rows independently ignores the vertical rule and gives 992=980199^2=9801; forbidding roses next to tulips as well gives 773773.)

Tagged: 2-by-n grid with adjacency constraints (transfer recursion)