document.write( "Question 665207: A book has 500 pages numbered 1, 2, 3, and so on. How many times does the digit 1 appear in the page numbers? \n" ); document.write( "
Algebra.Com's Answer #413837 by kevwill(135)\"\" \"About 
You can put this solution on YOUR website!
In the first 99 pages there are:
\n" ); document.write( "1 one in the first 9 pages,
\n" ); document.write( "11 ones in pages 10-19 (one each for 10 and 12-19, and two for 11)
\n" ); document.write( "8 ones in pages 20-99 (21, 31, 41, 51, 61, 71, 81, and 91)
\n" ); document.write( "So we have 20 ones in the first 99 pages.
\n" ); document.write( "
\n" ); document.write( "Likewise we have 20 ones in pages 200-299, 20 ones in pages 300-399, and 20 ones in pages 400-499. There are 0 ones on page 500.
\n" ); document.write( "
\n" ); document.write( "For pages 100-199, there are 100 ones for the hundreds digits in addition to the 20 ones found in the tens and ones digits.
\n" ); document.write( "
\n" ); document.write( "So we have a total of 20 + 120 + 20 + 20 + 20 = 200 ones on the page numbers.
\n" ); document.write( "
\n" ); document.write( "
\n" );