Problem 948: (2010 AIME I, 14)
For each positive integer $n,$ let $f(n) = \sum_{k = 1}^{100} \lfloor \log_{10} (kn) \rfloor$. Find the largest value of $n$ for which $f(n) \le 300$. \textbf{Note:} $\lfloor x \rfloor$ is the greatest integer less than or equal to $x$.
- $\lfloor\log_{10}(kn)\rfloor$ is the number of digits of $kn$ minus $1$, and $f(n)$ is nondecreasing in $n$.
- For $n=109$, $kn$ has $3$ digits for $k\le9$, $4$ digits for $10\le k\le91$ and $5$ for $92\le k\le100$, so $f(109)=18+246+36=300$. For $n=110$ the split is $9,81,10$, giving $18+243+40=301$.
- The answer is $\boxed{109}$.
For each positive integer $n,$ let $f(n) = \sum_{k = 1}^{50} \lfloor \log_{10} (kn) \rfloor$. Find the largest value of $n$ for which $f(n) \le 150$. \textbf{Note:} $\lfloor x \rfloor$ is the greatest integer less than or equal to $x$.