143k views
5 votes
How many positive integers between 100 and 300 contain at least one digit 7?

User Rokumaru
by
8.0k points

1 Answer

6 votes
I am not sure if there is a mathematical procedure to find the answer. But I would use logic to solve this type of problem.

My logic is based on these:
1) count the number of 7s in the ones place.
2) count the number of 7s in the tens place.
3) Take away duplicates

----------------------------------------------------------------------------
Count the 7 in the ones place
----------------------------------------------------------------------------
100 to 109 = one 7
110 to 119 = one 7
so by that logic, 100 to 299 = 30 7s

----------------------------------------------------------------------------
Count the 7 in the tens place
----------------------------------------------------------------------------
170 to 179 = 10 7s
270 to 279 = 10 7s
Total 7s = 20

Total 7s so far = 30 + 20 = 50

----------------------------------------------------------------------------
Take away duplicates
----------------------------------------------------------------------------
Two of the number 177 and 277 are already accounted for when we calculate the 7 in the ones place.
50 - 2 = 48

----------------------------------------------------------------------------
Ans: 48 numbers have at least a digit 7 in them
----------------------------------------------------------------------------
User Sweetzyl Pili
by
8.7k points

No related questions found

Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.

9.4m questions

12.2m answers

Categories