2018 AMC 10A Problem 18

Below is the professionally curated solution for Problem 18 of the 2018 AMC 10A, from LIVE by Po-Shen Loh. You can also try the full timed exam, view all 2018 AMC 10A solutions, or check the answer key.

All of the real AMC 8, AMC 10, AMC 12, and AIME problems in our complete solution collection are used with official legal permission of the Mathematical Association of America (MAA).

Concepts:number basesymmetrypairing and grouping

Difficulty rating: 1770

18.

How many nonnegative integers can be written in the form a737+a636+a535a_7\cdot3^7+a_6\cdot3^6+a_5\cdot3^5+a434+a333+a232+a_4\cdot3^4+a_3\cdot3^3+a_2\cdot3^2+a131+a030,+a_1\cdot3^1+a_0\cdot3^0, where ai{1,0,1}a_i\in \{-1,0,1\} for 0i7?0\le i \le 7?

512512

729729

10941094

32813281

59,04859,048

Solution:

Note that every number formed by this sum is either positive, negative, or zero.

The number of positive numbers equals the number of negative numbers due to symmetry (flip the 11 s to 1-1 s and 1-1 s to 11 s).

The only way for the sum to be 00 is if all the coefficients are 0.0.

The total number of numbers is 38=6561.3^8 = 6561. Because each power of 33 is larger than the sum of all previous powers of three, each combination of coefficients yields different numbers.

Therefore, there are 656112+1=3281 \dfrac{6561 - 1}{2} + 1 = 3281 distinct nonnegative integers.

Thus, D is the correct answer.

Problem 18 in Other Years