AIME 1999 · 第 5 题
AIME 1999 — Problem 5
题目详情
Problem
For any positive integer , let be the sum of the digits of , and let be For example, How many values of do not exceed 1999?
解析
Solution
For most values of , will equal . For those that don't, the difference must be bumping the number up a ten, a hundred, etc. If we take as an example,
And in general, the values of will then be in the form of . From to , there are solutions; including and there are a total of solutions.