document.write( "Question 394292: the lockers at my school are numbered one through 250 how many times does the number nine appear \n" ); document.write( "
Algebra.Com's Answer #279890 by richard1234(7193)\"\" \"About 
You can put this solution on YOUR website!
The 9 occurs in the units digits for the numbers 9, 19, 29, ..., 249 and in the tens place 90, 91, ..., 99 and 190, 191, ..., 199.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "We can count each case separately since they are mutually disjoint and do not affect each other (we can count 99 and 199 in both sets since the 9 occurs twice in each number). The number of elements in the set {9, 19, ..., 249} is 25 and the number of elements in the sets {90, 91, ..., 99}, {190, 191, ..., 199} is 10 times 2, or 20. The total number of 9's is 25+20, or 45.
\n" ); document.write( "
\n" );