2012 AMC 10B Problem 22

Attempt Problem 22 of the 2012 AMC 10B below, then check your answer against the professionally curated solution from LIVE by Po-Shen Loh. You can also try the full timed exam, view all 2012 AMC 10B solutions, or check the answer key.

All problems are used with official legal permission of the Mathematical Association of America (MAA).

22.

Let (a1,a2,…,a10)(a_1,a_2,\ldots,a_{10}) be a list of the first 1010 positive integers such that for each 2≤i≤102\le i\le10 either ai+1a_i + 1 or ai−1a_i-1 or both appear somewhere before aia_i in the list. How many such lists are there?
 120 \ 120
512 512
 1024 \ 1024
181,440181{,}440
362,880362{,}880
Answer: B
Concepts:arrangements with restrictionsrecursive countingwork backwards
Small hint:
At each reverse step, remove either the smallest or largest remaining number
Big hint:
There are 22 choices until the final number is forced
Solution:
Every prefix a1,a2,…,aia_1,a_2,\ldots,a_i 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 [1,10].[1,10].
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 a10,a9,…,a2,a_{10},a_9,\ldots,a_2, after which a1a_1 is forced. Hence there are 29=5122^9=512 lists.
Thus, the correct answer is B .
LIVE by Po-Shen Loh
Programs

LIVE Classes

Self-Paced Classes

Stars

Scholarship

About Us

Who Is Po-Shen Loh?

Email Contact

Newsletter

Jobs

Become a Star

For a more Thought Full world.

© 2026 Expii, Inc.