[Math] Combinations: combinations vs permutations in particular exercise

combinationscombinatoricspermutations

I am confused by the following exercise. First, I will present the exercise with solution, after that there is a problem that I have about this exercise.

Exercise. From 7 consonants and 5 vowels, how many words can be formed consisting of 4 different consonants and 3 different vowels? The words need not have meaning.

Solution. The 4 different consonants can be selected in $_{7}C_{4}$ ways, the 3 different vowels can be selected in $_{5}C_{3}$ ways, and the resulting 7 different letters (4 consonants, 3 vowels) can then be arranged among themselves in $_{7}P_{7}$ – $7!$ ways. Then Number of words – $_{7}C_{4}$ $_{5}C_{3} 7! = 1,764,000$.

Problem. The problem is I don't understand when I need to use combinations and when permutation and this examples demonstrates my confusion. The idea of the solution is to generate the different sets of letters (combinations) of two kinds all possible sets of 4 consonants from 7 consonants and sets of 3 vowels from 5 vowels. After generation, mix up everything by multiplying by 7!. Without learning the solution I thought that the permutation is more approprite for this case and can avoid the 3rd step – mixing up. So in my opinion something like $_{7}P_{4}$$_{5}P_{3}$ should give the right answer, however here is the second confusion we should somehow to mix up two these sets together.

Of course, the solution with permutations is not right, but it seems like the exercise can be solved by using permutations.

Can you solve this exercise with permutations?

Can you give an explanations when is better to use combinations and when permutations.

Best Answer

You should think of this as a two-part problem: first you must pick the $7$ letters to be used, and then you must arrange them. You can’t arrange them until you’ve picked them. Picking them is just picking sets of things: order is irrelevant, so you’re counting combinations. Arranging them, on the other hand, is clearly a matter os specifying an order, so you’re dealing with permutations.

Are there other ways to solve the problem? Yes, but they’re more difficult. You could begin by picking an ordered string of $4$ consonants; this can be done, as you said, in $_7P_4$ ways. You now have a skeleton $s_1C_1s_2C_2s_3C_3s_4C_4s_5$, where $C_1,C_2,C_3$, and $C_4$ are the consonants, and $s_1,s_2,s_3,s_4$, and $s_5$ are the slots into which you can insert vowels. There are now $_5P_3$ ways to select an ordered string $V_1V_2V_3$ of $3$ vowels, and the problem is to count the ways to fit these vowels into the $5$ open slots in the consonant skeleton. Doing that is a matter of selecting a multiset of $3$ not necessarily distinct slots from the $5$ available. This can be done in

$$\binom{5+3-1}3=\binom73={_7C_3}=35$$

ways, so the there are $840\cdot60\cdot35=1,764,000$ such words, exactly the figure obtained by the other computation.

Related Question