The sum of all the digits used to write the whole numbers 10 through 13 is 1+0+1+1+1+2+1+3 = 10. What is the sum of all the digits used to write the whole numbers 1 through 170, inclusive?
The sum of ALL digits from 1 to 170 inclusive =1,503