How many words can be made from the letters M N C F A E I O U such that a group of exactly two vowels is together?
I tried to solve it as :
no. of ways in which we can arrange $4$ consonants is $4!$, so there are $5$ places for $4$ vowels but there can be one or two group of vowels so
when we have one pair of vowels no. of words is $4! \cdot 5p3 \cdot 4c2 \cdot 2$
when we have two pair of vowels no.of words is $4! \cdot 5p2 \cdot 4c2 \cdot 2c2 \cdot 2 \cdot 2$
Since there are five vowels, we can have one or two pairs with exactly two vowels together. If we have one group with exactly two vowels together, then the vowels can be distributed in two ways, a group of two and a group of three or as a group of two and three single vowels. If we have exactly two groups with exactly two vowels together, then the vowels must be distributed as two groups of two and a single vowel.
A group with exactly two vowels and a group with exactly three vowels: There are $4!$ ways of arranging the consonants, which creates five spaces in which to place the vowels, three between successive consonants and two at the ends of the row. There are five ways to choose the space in which exactly two vowels will be placed and four ways to choose one of the remaining four spaces in which to place three vowels. The vowels can then be arranged from left to right in the selected spaces in $5!$ ways. Hence, the number of such arrangements is $$4! \cdot \binom{5}{1} \cdot \binom{4}{1} \cdot 5!$$
A group with exactly two vowels and three single vowels: Again, there are $4!$ ways to arrange the consonants, which creates five spaces. Thus, there are five ways to choose the space in which exactly two vowels will be placed. There are $\binom{4}{3}$ ways to choose three of the four remaining spaces for the single vowels. The vowels can then be arranged from left to right in the selected spaces in $5!$ ways. Hence, the number of such arrangements is $$4! \cdot \binom{5}{1} \cdot \binom{4}{3} \cdot 5!$$
Two groups with exactly two vowels and a single vowel: As before, there are $4!$ ways to arrange the consonants, which creates five spaces. There are $\binom{5}{2}$ to choose two of these spaces in which to place exactly two vowels and three ways to choose one of the remaining three spaces for the single vowel. The vowels can then be arranged from left to right in the selected spaces in $5!$ ways. Hence, the number of such arrangements is $$4! \cdot \binom{5}{2} \cdot \binom{3}{1} \cdot 5!$$
Since the three cases are mutually exclusive and exhaustive, the desired answer is found by adding the above cases.