Difference between revisions of "2015 AMC 10A Problems/Problem 18"

(Created page with "==Problem 18== Hexadecimal (base-16) numbers are written using numeric digits <math>0</math> through <math>9</math> as well as the letters <math>A</math> through <math>F</math> t...")
 
m (Solution)
Line 5: Line 5:
  
 
==Solution==
 
==Solution==
Notice that 1000 is 3E8 in hexadecimal. Thus, there are 399 valid <math>n</math>, corresponding to those 399 positive integers less than 1000 with hexadecimal representation less than 1000. (Notice that 399 < 3E8 in hexadecimal.) Our answer is <math>3 + 9 + 9 = 21</math> <math>\textbf{(E) }</math>.
+
Notice that 1000 is 3E8 in hexadecimal. The first digit could be 0, 1, 2, or 3 and the second two could be any digit 0-9. 4 • 10 • 10 = 400. However, this includes 3E9, so subtract one. Thus, there are 399 valid <math>n</math>, corresponding to those 399 positive integers less than 1000 with hexadecimal representation less than 1000. (Notice that 399 < 3E8 in hexadecimal.) Our answer is <math>3 + 9 + 9 = 21</math> <math>\textbf{(E) }</math>.

Revision as of 20:03, 4 February 2015

Problem 18

Hexadecimal (base-16) numbers are written using numeric digits $0$ through $9$ as well as the letters $A$ through $F$ to represent $10$ through $15$. Among the first $1000$ positive integers, there are $n$ whose hexadecimal representation contains only numeric digits. What is the sum of the digits of $n$?

$\textbf{(A) }17\qquad\textbf{(B) }18\qquad\textbf{(C) }19\qquad\textbf{(D) }20\qquad\textbf{(E) }21$

Solution

Notice that 1000 is 3E8 in hexadecimal. The first digit could be 0, 1, 2, or 3 and the second two could be any digit 0-9. 4 • 10 • 10 = 400. However, this includes 3E9, so subtract one. Thus, there are 399 valid $n$, corresponding to those 399 positive integers less than 1000 with hexadecimal representation less than 1000. (Notice that 399 < 3E8 in hexadecimal.) Our answer is $3 + 9 + 9 = 21$ $\textbf{(E) }$.