How many numbers between and begin with or end with the digit ?
- A
- B
- C
- D
Solution & Step-by-step Explanation
We need to find the number of integers strictly between and (i.e., from to ) that begin with OR end with .
Let be the set of numbers that begin with .
Let be the set of numbers that end with .
1. **Numbers beginning with ( to ):**
These are all the numbers from to .
2. **Numbers ending with between and :**
These are numbers of the form .
* For the hundreds digit, it can be either or .
* For the tens digit, it can be any digit from to ( choices).
Thus, .
3. **Numbers that both begin with AND end with ():**
These are numbers of the form .
* The tens digit can be any digit from to ( choices).
Thus, .
Using the principle of inclusion-exclusion, the total count of numbers that begin with or end with is:
Let be the set of numbers that begin with .
Let be the set of numbers that end with .
1. **Numbers beginning with ( to ):**
These are all the numbers from to .
2. **Numbers ending with between and :**
These are numbers of the form .
* For the hundreds digit, it can be either or .
* For the tens digit, it can be any digit from to ( choices).
Thus, .
3. **Numbers that both begin with AND end with ():**
These are numbers of the form .
* The tens digit can be any digit from to ( choices).
Thus, .
Using the principle of inclusion-exclusion, the total count of numbers that begin with or end with is: