Skip to main content
OlympiadHQ

Browse · MATH

Print

jmc

number theory intermediate

Problem

What is the smallest number after whose digits add up to ?
Solution
For the number to be as small as possible, we want the digit at the left to be as small as possible. The smallest thousands digit is , the smallest hundreds digit is , and the smallest tens digit is . However, , so then the ones digit must be , and that is impossible because then it would be smaller than . We also cannot move up the tens digit, because that would make the digits add up to a number greater than . Thus, we move to the hundreds digit, and the next smallest possible number for it would be . Now we have , where . Since we want the left digit to be as small as possible, we have the number .
Final answer
3504