Difference between revisions of "2020 AIME II Problems/Problem 5"
Topnotchmath (talk | contribs) (→Solution) |
Topnotchmath (talk | contribs) |
||
Line 2: | Line 2: | ||
For each positive integer <math>n</math>, left <math>f(n)</math> be the sum of the digits in the base-four representation of <math>n</math> and let <math>g(n)</math> be the sum of the digits in the base-eight representation of <math>f(n)</math>. For example, <math>f(2020) = f(133210_{\text{four}}) = 10 = 12_{\text{eight}}</math>, and <math>g(2020) = \text{the digit sum of }12_{\text{eight}} = 3</math>. Let <math>N</math> be the least value of <math>n</math> such that the base-sixteen representation of <math>g(n)</math> cannot be expressed using only the digits <math>0</math> through <math>9</math>. Find the remainder when <math>N</math> is divided by <math>1000</math>. | For each positive integer <math>n</math>, left <math>f(n)</math> be the sum of the digits in the base-four representation of <math>n</math> and let <math>g(n)</math> be the sum of the digits in the base-eight representation of <math>f(n)</math>. For example, <math>f(2020) = f(133210_{\text{four}}) = 10 = 12_{\text{eight}}</math>, and <math>g(2020) = \text{the digit sum of }12_{\text{eight}} = 3</math>. Let <math>N</math> be the least value of <math>n</math> such that the base-sixteen representation of <math>g(n)</math> cannot be expressed using only the digits <math>0</math> through <math>9</math>. Find the remainder when <math>N</math> is divided by <math>1000</math>. | ||
==Solution== | ==Solution== | ||
− | Let's work backwards. The minimum base-sixteen representation of <math>g(n)</math> that cannot be expressed using only the digits <math>0</math> through <math>9</math> is <math>A_{16}</math>, which is equal to <math>10</math> in base 10. Thus, the sum of the digits of the base-eight representation of the sum of the digits of <math>f(n)</math> is <math>10</math>. The minimum value for which this is achieved is <math>37_8</math>. We have that <math>37_8 = 31</math>. Thus, the sum of the digits of the base-four representation of <math>n</math> is <math>31</math>. The minimum value for which this is achieved is <math>13,333,333,333_4</math>. We just need this value in base 10 modulo 1000. We get <math>13,333,333,333_4 = 3(1 + 4 + 4^2 + \dots + 4^8 + 4^9) + 4^{10} = 3\left(\dfrac{4^10 - 1}{3}\right) + 4^{10} = 2*4^{10} - 1</math>. Taking this value modulo <math>1000</math>, we get the final answer of <math>\boxed{151}</math>. (If you are having trouble with this step, note that <math>2^10 = 1024 \ | + | Let's work backwards. The minimum base-sixteen representation of <math>g(n)</math> that cannot be expressed using only the digits <math>0</math> through <math>9</math> is <math>A_{16}</math>, which is equal to <math>10</math> in base 10. Thus, the sum of the digits of the base-eight representation of the sum of the digits of <math>f(n)</math> is <math>10</math>. The minimum value for which this is achieved is <math>37_8</math>. We have that <math>37_8 = 31</math>. Thus, the sum of the digits of the base-four representation of <math>n</math> is <math>31</math>. The minimum value for which this is achieved is <math>13,333,333,333_4</math>. We just need this value in base 10 modulo 1000. We get <math>13,333,333,333_4 = 3(1 + 4 + 4^2 + \dots + 4^8 + 4^9) + 4^{10} = 3\left(\dfrac{4^{10} - 1}{3}\right) + 4^{10} = 2*4^{10} - 1</math>. Taking this value modulo <math>1000</math>, we get the final answer of <math>\boxed{151}</math>. (If you are having trouble with this step, note that <math>2^10 = 1024 \equiv 24 \pmod{1000}</math>) ~ TopNotchMath |
==See Also== | ==See Also== | ||
{{AIME box|year=2020|n=II|num-b=4|num-a=6}} | {{AIME box|year=2020|n=II|num-b=4|num-a=6}} | ||
{{MAA Notice}} | {{MAA Notice}} |
Revision as of 22:25, 7 June 2020
Problem
For each positive integer , left be the sum of the digits in the base-four representation of and let be the sum of the digits in the base-eight representation of . For example, , and . Let be the least value of such that the base-sixteen representation of cannot be expressed using only the digits through . Find the remainder when is divided by .
Solution
Let's work backwards. The minimum base-sixteen representation of that cannot be expressed using only the digits through is , which is equal to in base 10. Thus, the sum of the digits of the base-eight representation of the sum of the digits of is . The minimum value for which this is achieved is . We have that . Thus, the sum of the digits of the base-four representation of is . The minimum value for which this is achieved is . We just need this value in base 10 modulo 1000. We get . Taking this value modulo , we get the final answer of . (If you are having trouble with this step, note that ) ~ TopNotchMath
See Also
2020 AIME II (Problems • Answer Key • Resources) | ||
Preceded by Problem 4 |
Followed by Problem 6 | |
1 • 2 • 3 • 4 • 5 • 6 • 7 • 8 • 9 • 10 • 11 • 12 • 13 • 14 • 15 | ||
All AIME Problems and Solutions |
The problems on this page are copyrighted by the Mathematical Association of America's American Mathematics Competitions.