document.write( "Question 945583: 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 #576766 by KMST(5328)\"\" \"About 
You can put this solution on YOUR website!
The digit 1 sometimes appears more than once on the same page number,
\n" ); document.write( "so it appears a lot.
\n" ); document.write( "It appears at \"100\" times as the first digit in pages 100 to 199.
\n" ); document.write( "It appears as the last digit \"50\" times
\n" ); document.write( "(on page 1, and in other page numbers preceded by 1, 2, 3, ... 49).
\n" ); document.write( "It appears as the tens digit in \"10\" 2-digit numbers (10, 11, ...19),
\n" ); document.write( "and also appears as the tens digit in many 3-digit page numbers,
\n" ); document.write( "\"10\" times preceded by each of the \"4\" digits 1, 2, 3,and 4.
\n" ); document.write( "So, the total count is
\n" ); document.write( "\"100%2B50%2B10%2B4%2A10=100%2B50%2B50=highlight%28200%29\" appearances of the digit 1.
\n" ); document.write( "
\n" ); document.write( "NOTE:
\n" ); document.write( "That does not mean that there are 200 page numbers where the number 1 appears.
\n" ); document.write( "That would be a different question.
\n" ); document.write( "In that case, I would rename the page numbers as the 3-digit numbers
\n" ); document.write( "001, 002, 003, .... 498, 499, 000.
\n" ); document.write( "(I am using 001 for 1, 002 for 2, and so on up to 099 for 99, and I use 000 for 500).
\n" ); document.write( "Those are 500 3-digit ordered arrangements,
\n" ); document.write( "with 5 choices for the first digit,
\n" ); document.write( "and 10 choices for each of the other two digits.
\n" ); document.write( "There is a total of \"5%2A10%2A10=500\" such arrangements.
\n" ); document.write( "How many contain the digit 1 at least once?
\n" ); document.write( "How many do not contain y=the digit 1 at all?
\n" ); document.write( "If we wanted to exclude the digit 1,
\n" ); document.write( "we could only use \"4%2A9%2A9=324\" of the \"500\" arrangements.
\n" ); document.write( "so \"500-324=176\" pages contain the digit 1 at least once.
\n" ); document.write( "
\n" );