The number of different 5 digit numbers greater than 50000 that can be formed using the digits 0, 1, 2, 3, 4, 5, 6, 7, such that the sum of their first and last digits should not be more than 8 , is
- Option A: 4608
- Option B: 5720
- Option C: 5719
- Option D: 4607
Solution
Core idea. A condition linking two digits is handled by taking each value of one of them in turn.
Concept refresher. With repetition allowed, free places can be filled from digits in
ways, and non-overlapping cases are added.
Picture the situation. A five-digit number above 50000 formed from the digits 0 to 7 starts with 5, 6 or 7. The sum of the first and last digits is at most 8, so a larger first digit leaves fewer choices for the last one. The three middle digits can be anything. One number that fits every condition except being greater than the bound is 50000 itself.
Approach. Count the numbers for each first digit, remove the bound itself, and add.
Step 1: First digit 5
The last digit can be 0, 1, 2 or 3, giving numbers. One of them is 50000, which is not greater than 50000, so 2047 remain.
Step 2: First digits 6 and 7
With first digit 6 the last digit is 0, 1 or 2, giving . With first digit 7 it is 0 or 1, giving .
Step 3: The total
The cases are distinct, so there are numbers.
Answer. (D) 4607
Sanity check. Without removing the bound the count is , one of the options; the single number 50000 accounts for the difference.
Why the other options are wrong
- (A) The value 4608 includes 50000 itself, which is not greater than 50000.
- (B) The value 5720 does not arise: the three cases give 2048, 1536 and 1024 before the correction.
- (C) The value 5719 does not arise: the three cases add to 4608 before the correction.
Key takeaway
The trap. A number equal to the bound is not greater than it.
How toppers think. They look for the smallest number counted and test it against the bound.
Remember. for free places