17. Let n be the smallest positive integer such that the sum of its digits is 2011 . How many digits does n have?
A number or a short expression. Spacing and $ signs are ignored.
Official solution
17. Answer: 224 . For smallest possible n, we need to have 9 as the digits of n as many as poesible. So n is the integer whose first digit is 2011−223×9=4 and followed by 2239 's.
Source: NuminaMath-1.5,
licensed Apache-2.0.
Statement and solution reproduced as published; topic, difficulty and ordering added
by this site.