2012 AMC 10B Problem 22
Problem 22 of 25HarderCounting & Probability
Let be a list of the first positive integers such that for each either or or both appear somewhere before in the list. How many such lists are there?
Answer choices
Show solution
Solution
Every prefix must form an interval of consecutive integers: each new term is required to be one more or one less than a term already present. In particular, the full set is the interval
Read the list backward. At each step, the term removed must be either the smallest or the largest integer in the current interval; removing an interior term would leave that term with no adjacent predecessor in the forward list. Conversely, every sequence of endpoint removals produces a valid list. There are two choices for each of after which is forced. Hence there are lists.
Thus, the correct answer is B .