AMC 12 Mock Exam 4 Problem 20
Problem 20 of 25
Priya is designing a weekly exercise routine, Monday through Sunday, that she will repeat every week indefinitely. On each day of the week she either trains or rests. To avoid injury, she must never train on three consecutive days, and this includes stretches that cross from one week into the next (for example, Saturday, Sunday, and the following Monday). How many different weekly routines are possible?
Answer choices
Show solution
Solution
First ignore the week boundary. Let be the number of length- train/rest strings with no three consecutive training days. A valid string of length ends in rest, rest–train, or rest–train–train, so with , , . This gives , , , , .
Now subtract the -day strings that are valid within the week but create a run of at least three training days across the boundary. Such a string starts with exactly training days followed by a rest, and ends with a rest followed by exactly training days, where . The days strictly between those two rests can be any valid string of length : (The all-training week is already excluded from the .) Hence the number of routines is .
Tagged: cyclic binary strings avoiding three consecutive 1s