2018 AMC 12A Problem 13

Attempt Problem 13 of the 2018 AMC 12A 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 2018 AMC 12A solutions, or check the answer key.

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

13.

How many nonnegative integers can be written in the form
a7⋅37+a6⋅36+a5⋅35+a4⋅34+a3⋅33+a2⋅32+a1⋅31+a0⋅30, \begin{aligned} &a_7 \cdot 3^7 + a_6 \cdot 3^6 + a_5 \cdot 3^5 \\ &\quad {}+ a_4 \cdot 3^4 + a_3 \cdot 3^3 + a_2 \cdot 3^2 \\ &\quad {}+ a_1 \cdot 3^1 + a_0 \cdot 3^0, \end{aligned}
where ai∈{−1,0,1}a_i \in \{-1, 0, 1\} for 0≤i≤7?0 \le i \le 7?
512512
729729
10941094
32813281
59,04859{,}048
Answer: D
Concepts:number basebijectionsymmetry
Small hint:
Shifting each aia_i from {−1,0,1}\{-1, 0, 1\} to {0,1,2}\{0, 1, 2\} makes an ordinary base-33 numeral
Big hint:
The 383^8 representable integers are symmetric about 0;0; count 00 together with half of the remaining values
Solution:
Adding 11 to every aia_i gives a bijection between these expressions and the base-33 numerals for 00 through 38−1,3^8 - 1, so exactly 38=65613^8 = 6561 distinct integers occur. They are symmetric about 00 (negating all aia_i negates the value), so besides 00 itself, half are positive: 1+12(6561−1)=3281 1 + \tfrac12(6561 - 1) = 3281 nonnegative integers, namely 00 through 3280.3280.
Thus, the correct answer is D.
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.