返回题库

AIME 2020 II · 第 5 题

AIME 2020 II — Problem 5

专题
Contest Math
难度
L4
来源
AIME

题目详情

Problem

For each positive integer nn, let f(n)f(n) be the sum of the digits in the base-four representation of nn and let g(n)g(n) be the sum of the digits in the base-eight representation of f(n)f(n). For example, f(2020)=f(1332104)=10=128f(2020) = f(133210_{\text{4}}) = 10 = 12_{\text{8}}, and g(2020)=the digit sum of 128=3g(2020) = \text{the digit sum of }12_{\text{8}} = 3. Let NN be the least value of nn such that the base-sixteen representation of g(n)g(n) cannot be expressed using only the digits 00 through 99. Find the remainder when NN is divided by 10001000.

解析

Solution 1

Let's work backwards. The minimum base-sixteen representation of g(n)g(n) that cannot be expressed using only the digits 00 through 99 is A16A_{16}, which is equal to 1010 in base 10. Thus, the sum of the digits of the base-eight representation of the sum of the digits of f(n)f(n) is 1010. The minimum value for which this is achieved is 37837_8. We have that 378=3137_8 = 31. Thus, the sum of the digits of the base-four representation of nn is 3131. The minimum value for which this is achieved is 13,333,333,333413,333,333,333_4. We just need this value in base 10 modulo 1000. We get 13,333,333,3334=3(1+4+42++48+49)+410=3(41013)+410=2410113,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. Taking this value modulo 10001000, we get the final answer of 151\boxed{151}. (If you are having trouble with this step, note that 210=102424(mod1000)2^{10} = 1024 \equiv 24 \pmod{1000}) ~ TopNotchMath

Solution 2 (Official MAA)

First note that if hb(s)h_b(s) is the least positive integer whose digit sum, in some fixed base bb, is ss, then hbh_b is a strictly increasing function. This together with the fact that g(N)10g(N) \ge 10 shows that f(N)f(N) is the least positive integer whose base-eight digit sum is 10. Thus f(N)=37eight=31f(N) = 37_\text{eight} = 31, and NN is the least positive integer whose base-four digit sum is 31.31. Therefore

N=13333333333four=24101=2102421N = 13333333333_\text{four} = 2\cdot4^{10} - 1 = 2\cdot1024^2 - 1 22421151(mod1000).\equiv 2\cdot24^2 - 1 \equiv 151 \pmod{1000}.

Video Solutions

https://youtu.be/lTyiRQTtIZI

https://youtu.be/ZWe_99091e4

Video Solution by OmegaLearn

https://youtu.be/ZhAZ1oPe5Ds?t=5032

~ pi_is_3.14