Skip to main content

2018 AMC 12A Problem 13

Problem 13 of 25IntermediateNumber TheoryCounting & Probability

How many nonnegative integers can be written in the form a737+a636+a535+a434+a333+a232+a131+a030, \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 0i7?0 \le i \le 7?

Answer choices

Show solution

Solution

Adding 11 to every aia_i gives a bijection between these expressions and the base-33 numerals for 00 through 381,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(65611)=3281 1 + \tfrac12(6561 - 1) = 3281 nonnegative integers, namely 00 through 3280.3280. Thus, the correct answer is D.

More practice

Concepts: number base · bijection · symmetry

Problem text and solution from the LIVE past-contest archive. See also the AoPS wiki page for community solutions.