<p>from bigE's post: "1 obviously, then 12-19 (thats eight more) and then 21, 31, 41, 51, 61, 71, 81,91, 100. So from 1-100 you have 18 that work."</p>
<p>what about 10?</p>
<p>you have 19 that work for 1-100 inclusive. these are 1,10,12-19(eight),21,32,41,51,61,71,81,91,100. </p>
<p>then for 101-200 inclusive, its the same thing, subtract
101,110-119(ten more),121,131,141,151,161,171,181,191,200(because unlike the first set, the last term 200 does not work). thats 20. </p>
<p>or also you could reason the 19 don't work for 101-200 inclusive, and in addition 111 does not work. again thats 20 working with those 100 numbers (101-200). </p>
<p>100-20 = 80<br>
80+19 = 99.</p>