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 (→Reasoning for the 400 Combinations) |
||
(21 intermediate revisions by 17 users not shown) | |||
Line 1: | Line 1: | ||
− | ==Problem | + | ==Problem== |
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> to represent <math>10</math> through <math>15</math>. Among the first <math>1000</math> positive integers, there are <math>n</math> whose hexadecimal representation contains only numeric digits. What is the sum of the digits of <math>n</math>? | 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> to represent <math>10</math> through <math>15</math>. Among the first <math>1000</math> positive integers, there are <math>n</math> whose hexadecimal representation contains only numeric digits. What is the sum of the digits of <math>n</math>? | ||
<math> \textbf{(A) }17\qquad\textbf{(B) }18\qquad\textbf{(C) }19\qquad\textbf{(D) }20\qquad\textbf{(E) }21 </math> | <math> \textbf{(A) }17\qquad\textbf{(B) }18\qquad\textbf{(C) }19\qquad\textbf{(D) }20\qquad\textbf{(E) }21 </math> | ||
− | ==Solution== | + | ==Solution 1== |
− | Notice that 1000 is 3E8 in hexadecimal. | + | Notice that <math>1000</math> is <math>3E8</math> when converted to hexadecimal (<math>3 \cdot 16^2 + 14 \cdot 16^1 + 8 \cdot 16^0</math>). We will proceed by constructing numbers that consist of only numeric digits in hexadecimal. |
+ | |||
+ | The first digit could be <math>0,</math> <math>1,</math> <math>2,</math> or <math>3,</math> and the second two could be any digit <math>0 - 9</math>, giving <math>4 \cdot 10 \cdot 10 = 400</math> combinations. However, this includes <math>000,</math> so this number must be diminished by <math>1.</math> Therefore, there are <math>399</math> valid <math>n</math> corresponding to those <math>399</math> positive integers less than <math>1000</math> that consist of only numeric digits. (Notice that <math>399</math> is the least hexadecimal number using only decimal digits before <math>3E8</math>.) Therefore, our answer is <math>3 + 9 + 9 = \boxed{\textbf{(E) } 21}</math> | ||
+ | |||
+ | ==Solution 2 (Casework)== | ||
+ | First, we set a bound by writing <math>1000</math> in base-<math>16</math>. <math>1000_{10}=3E8_{16}</math>. Therefore, we are considering numbers with a maximum of <math>3</math> digits, and a maximum of <math>3</math> in the <math>256</math>ths-place (the first place in a <math>3</math>-digit number). | ||
+ | |||
+ | Case <math>1</math>: <math>1</math>-digit numbers: | ||
+ | There are evidently <math>9</math> numbers that fit this category. | ||
+ | |||
+ | Case <math>2</math>: <math>2</math>-digit numbers: | ||
+ | There are <math>9\cdot10=90</math> numbers that fit this category. | ||
+ | |||
+ | Case <math>3</math>: <math>3</math>-digit numbers: | ||
+ | There are <math>3\cdot10\cdot10=300</math> numbers that fit this category | ||
+ | |||
+ | Adding these up, we get <math>9+90+300=399</math> numbers. <math>3 + 9 + 9 = \boxed{\textbf{(E) } 21}</math> ~sosiaops | ||
+ | |||
+ | ==Solution 3 == | ||
+ | We can quickly see that <math>400</math> in hexadecimal = <math>0+0+16^2*4</math> = 1024. If we go down to 399 in hexadecimal, we have <math>9+9*16+3*256</math> which is <math>921</math>, which is obviously less than 1000. Therefore, the answer is <math>3+9+9</math> = <math>\boxed{\textbf{(E) } 21}</math> | ||
+ | |||
+ | ~Arcticturn | ||
+ | |||
+ | == Video Solutions == | ||
+ | https://youtu.be/ZhAZ1oPe5Ds?t=4596 | ||
+ | |||
+ | https://www.youtube.com/watch?v=2DVSkWu_H1g | ||
+ | |||
+ | https://youtu.be/jkxWTsfbAjQ | ||
+ | |||
+ | ~savannahsolver | ||
+ | |||
+ | ==See Also== | ||
+ | |||
+ | {{AMC10 box|year=2015|ab=A|num-b=17|num-a=19}} | ||
+ | {{MAA Notice}} | ||
+ | |||
+ | [[Category: Introductory Number Theory Problems]] |
Latest revision as of 08:45, 10 July 2024
Problem
Hexadecimal (base-16) numbers are written using numeric digits through as well as the letters through to represent through . Among the first positive integers, there are whose hexadecimal representation contains only numeric digits. What is the sum of the digits of ?
Solution 1
Notice that is when converted to hexadecimal (). We will proceed by constructing numbers that consist of only numeric digits in hexadecimal.
The first digit could be or and the second two could be any digit , giving combinations. However, this includes so this number must be diminished by Therefore, there are valid corresponding to those positive integers less than that consist of only numeric digits. (Notice that is the least hexadecimal number using only decimal digits before .) Therefore, our answer is
Solution 2 (Casework)
First, we set a bound by writing in base-. . Therefore, we are considering numbers with a maximum of digits, and a maximum of in the ths-place (the first place in a -digit number).
Case : -digit numbers: There are evidently numbers that fit this category.
Case : -digit numbers: There are numbers that fit this category.
Case : -digit numbers: There are numbers that fit this category
Adding these up, we get numbers. ~sosiaops
Solution 3
We can quickly see that in hexadecimal = = 1024. If we go down to 399 in hexadecimal, we have which is , which is obviously less than 1000. Therefore, the answer is =
~Arcticturn
Video Solutions
https://youtu.be/ZhAZ1oPe5Ds?t=4596
https://www.youtube.com/watch?v=2DVSkWu_H1g
~savannahsolver
See Also
2015 AMC 10A (Problems • Answer Key • Resources) | ||
Preceded by Problem 17 |
Followed by Problem 19 | |
1 • 2 • 3 • 4 • 5 • 6 • 7 • 8 • 9 • 10 • 11 • 12 • 13 • 14 • 15 • 16 • 17 • 18 • 19 • 20 • 21 • 22 • 23 • 24 • 25 | ||
All AMC 10 Problems and Solutions |
The problems on this page are copyrighted by the Mathematical Association of America's American Mathematics Competitions.