2015 AMC 10A Problem 18

Attempt Problem 18 of the 2015 AMC 10A 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 2015 AMC 10A solutions, or check the answer key.

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

18.

Hexadecimal (base-1616) numbers are written using numeric digits 00 through 99 as well as the letters AA through FF to represent 1010 through 15.15. Among the first 10001000 positive integers, there are nn whose hexadecimal representation contains only numeric digits. What is the sum of the digits of n?n?
1717
1818
1919
2020
2121
Answer: E
Concepts:number basedigitsbasic counting
Small hint:
Count valid hexadecimal strings up to 3E8163E8_{16}
Big hint:
Pad shorter hexadecimal representations with leading zeros before counting digit choices
Solution:
In hexadecimal, 1000=3E816.1000=3E8_{16}. Pad each shorter representation to three digits with leading zeros. Every numeric-only string from 00016000_{16} through 39916399_{16} is at most 3E816,3E8_{16}, and these are all the possibilities.
The first digit has 44 choices, and each of the other two digits has 1010 choices. This gives 4⋅10⋅10=4004\cdot10\cdot10=400 strings, including 00016.000_{16}. Excluding zero leaves n=399.n=399.
The sum of the digits in 399399 is 21.21.
Thus, E is the correct answer.
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.