Let be the smallest positive integer whose digits add up to 2012. What is the first digit of ?
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
To have the smallest n , it is obvious that we pack as many 9's as possible as its digits so that n is "shortest" with the least number of digits. The maximum number of 9's possible is given by ⌊ 9 2 0 1 2 ⌋ = 2 2 3 . The remaining digit is 2 0 1 2 − 2 2 3 × 9 = 5 . Therefore, n = 5 Number of 9’s = 2 2 3 9 9 9 9 9 ⋯ 9 9 9 9 9 and n + 1 = 6 Number of 0’s = 2 2 3 0 0 0 0 0 ⋯ 0 0 0 0 0 . The first digit of n + 1 is 6 .