Answer is option B. 1560
here is the explanation
1. Total number of 6-digit combinations using 4 digits:Each of the 6 positions in the number can be filled by any of the 4 digits (5, 6, 7, 8). Therefore, the total number of 6-digit numbers is:
4^6 = 4096
2.Subtract the cases where at least one digit is missing:If one digit is missing, there are 3 choices for the remaining digits, and each of the 6 positions can be filled by any of these 3 digits:
3^6 = 729
There are 4 ways to choose which digit is missing, so the number of cases where exactly one digit is missing is:
4 × 729 = 2916
3. Add the cases where exactly two digits are missing (because they were subtracted twice):If two digits are missing, there are 2 choices for the remaining digits, and each of the 6 positions can be filled by either of these 2 digits:
2^6 = 64
There are 4C2 = 6 ways to choose which 2 digits are missing, so the number of cases where exactly two digits are missing is:
6×64=384
4. Subtract the cases where exactly three digits are missing (because they were added back in three times):
If three digits are missing, there is only 1 choice for the remaining digit, and each of the 6 positions must be filled by this digit:
There are 4C3 = 4 ways to choose which 3 digits are missing, so the number of cases where exactly three digits are missing is:
4×1=4
5. Combine using the principle of inclusion-exclusion:
4096−2916+384−4=1560
which is
option B