Skip to main content

2018 AMC 12A Problem 13

Problem 13 of 25IntermediateCombinatoricsArithmeticProblem-Solving Techniques

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?

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 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.
AoPS wiki

Tagged: number base · bijection · symmetry

More practice