Skip to main content

2010 AIME I Problem 14

Problem 14 of 15HarderAlgebraNumber Theory

For each positive integer n,n, let f(n)=∑k=1100⌊log⁡10(kn)⌋.f(n) = \sum_{k=1}^{100} \lfloor \log_{10}(kn) \rfloor. Find the largest value of nn for which f(n)≤300.f(n) \le 300. Note: ⌊x⌋\lfloor x \rfloor is the greatest integer less than or equal to x.x.

Your answer

Integer from 0 to 999
Show solution

Solution

Each term ⌊log⁡10(kn)⌋\lfloor \log_{10}(kn) \rfloor is nondecreasing in n,n, so ff is nondecreasing and we just locate where it passes 300.300. For n=100:n = 100: the products knkn run from 100100 to 104,10^4, giving ⌊log⁡10⌋=2\lfloor \log_{10} \rfloor = 2 for k≤9,k \le 9, 33 for 10≤k≤99,10 \le k \le 99, and 44 for k=100,k = 100, so f(100)=9⋅2+90⋅3f(100) = 9 \cdot 2 + 90 \cdot 3 +4=292.+ 4 = 292. For n=109:n = 109: since 9⋅109=981<10009 \cdot 109 = 981 \lt 1000 and 91⋅109=9919<104,91 \cdot 109 = 9919 \lt 10^4, the terms are 22 for k≤9,k \le 9, 33 for 10≤k≤91,10 \le k \le 91, and 44 for 92≤k≤100:92 \le k \le 100: f(109)=9⋅2+82⋅3+9⋅4=300. \begin{aligned} f(109) &= 9 \cdot 2 + 82 \cdot 3 \\ &\quad {}+ 9 \cdot 4 = 300. \end{aligned} For n=110:n = 110: now 91⋅110=10010≥104,91 \cdot 110 = 10010 \ge 10^4, so ten terms equal 44 and f(110)=18+81⋅3f(110) = 18 + 81 \cdot 3 +10⋅4=301>300.+ 10 \cdot 4 = 301 \gt 300. By monotonicity, the largest valid nn is 109.109.
AoPS wiki

Tagged: floor and ceiling functions · logarithm · digits

More practice