2012 AMC 12B Problem 18

Attempt Problem 18 of the 2012 AMC 12B 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 12B solutions, or check the answer key.

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

18.

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 \le 10 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?
120120
512512
10241024
181,440181{,}440
362,880362{,}880
Answer: B
Concepts:bijectioncombinations
Small hint:
The numbers greater than or equal to a1a_1 must appear in increasing order, and those less than a1a_1 in decreasing order
Big hint:
Choosing which positions hold the small numbers determines the list, giving ∑k(9k)\sum_k \binom{9}{k}
Solution:
Once a1=ka_1=k is fixed, the numbers k,k+1,…,10k,k+1,\ldots,10 must appear left to right in increasing order, and the numbers 1,…,k−11,\ldots,k-1 must appear from right to left in increasing order (so each new small number has its successor already placed).
For each k,k, the list is determined by choosing which of the 99 positions after the first hold the numbers below k,k, giving (9k−1)\binom{9}{k-1} lists.
Summing, ∑k=110(9k−1)=∑j=09(9j)=29=512. \begin{aligned} \sum_{k=1}^{10}\binom{9}{k-1} &= \sum_{j=0}^{9}\binom{9}{j} \\ &= 2^9=512. \end{aligned}
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.