Question
Question: The total number of 10 digits sequences formed by only {0, 1, 2} where 1 should be used at least 5 t...
The total number of 10 digits sequences formed by only {0, 1, 2} where 1 should be used at least 5 times and 2 should be used exactly three times, is

3480
Solution
We have 10 positions.
-
Exactly three positions must be occupied by digit 2. This can be done in (310) ways.
-
The remaining 7 positions are filled with digits from {0,1}. In these 7 spots, the digit 1 must appear at least 5 times. Let x be the number of ones. Then, x=5,6, or 7.
For each case:
-
x=5: (57) ways.
-
x=6: (67) ways.
-
x=7: (77) ways.
Thus, the total number of sequences is
(310)[(57)+(67)+(77)]=120×(21+7+1)=120×29=3480.
Explanation (Minimal):
Choose three positions for 2's: (310). Fill the remaining 7 positions with 0's and 1's such that ones appear at least 5 times: (57)+(67)+(77)=29. Total = 120×29=3480.