SOLUTION: A book has 500 pages numbered 1, 2, 3… and so on. How many times does the digit 1 appear in the page numbers?

Algebra ->  Signed-numbers -> SOLUTION: A book has 500 pages numbered 1, 2, 3… and so on. How many times does the digit 1 appear in the page numbers?      Log On


   



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?
Answer by KMST(5328) About Me  (Show Source):
You can put this solution on YOUR website!
The digit 1 sometimes appears more than once on the same page number,
so it appears a lot.
It appears at 100 times as the first digit in pages 100 to 199.
It appears as the last digit 50 times
(on page 1, and in other page numbers preceded by 1, 2, 3, ... 49).
It appears as the tens digit in 10 2-digit numbers (10, 11, ...19),
and also appears as the tens digit in many 3-digit page numbers,
10 times preceded by each of the 4 digits 1, 2, 3,and 4.
So, the total count is
100%2B50%2B10%2B4%2A10=100%2B50%2B50=highlight%28200%29 appearances of the digit 1.

NOTE:
That does not mean that there are 200 page numbers where the number 1 appears.
That would be a different question.
In that case, I would rename the page numbers as the 3-digit numbers
001, 002, 003, .... 498, 499, 000.
(I am using 001 for 1, 002 for 2, and so on up to 099 for 99, and I use 000 for 500).
Those are 500 3-digit ordered arrangements,
with 5 choices for the first digit,
and 10 choices for each of the other two digits.
There is a total of 5%2A10%2A10=500 such arrangements.
How many contain the digit 1 at least once?
How many do not contain y=the digit 1 at all?
If we wanted to exclude the digit 1,
we could only use 4%2A9%2A9=324 of the 500 arrangements.
so 500-324=176 pages contain the digit 1 at least once.