SOLUTION: A three-letter code is generated using the letters of the alphabet. How many of these codes contain at least 1 vowel? The answer is apparently 7620. Does order matter? Are repetiti

Algebra ->  Permutations -> SOLUTION: A three-letter code is generated using the letters of the alphabet. How many of these codes contain at least 1 vowel? The answer is apparently 7620. Does order matter? Are repetiti      Log On


   



Question 880687: A three-letter code is generated using the letters of the alphabet. How many of these codes contain at least 1 vowel? The answer is apparently 7620. Does order matter? Are repetitions allowed?
This is what I have tried so far:
At least 1 vowel means that the 3 letter code can either contain 1 vowel, 2 vowels, or 3 vowels so I set up my equation like this:
(5C1 * 21C2) + (5C2 * 21C1) + (5C3 * 21C0) = 1270

Answer by KMST(5328) About Me  (Show Source):
You can put this solution on YOUR website!
You used combinations rather than permutations;
so you are finding the number of sets (order does not matter) of 3 letters including at least one vowel, no repetitions allowed.
One of your sets is {A,B,C}.
However, the set {A,B,C} is shared by 6 different codes.
Codes ABC, ACB, BAC, BCA, CAB, and CBA are considered different codes, because they are different permutations of the elements of the set, and for a code order matters.
Each of your 1270 sets of 3 letters generates 3%21=6 codes,
and 1270%2A6=7620 .

The result 7620 requires that it be specified that repetitions are not allowed. (If repetitions were allowed, as usually happens for codes< the result would be a higher number, but the problem would not be so interesting).
That result 7620 can be reached most directly by
subtracting the number of 3-consonant no-repeat codes, 21%2A20%2A19=7980 ,
from the number of 3-letter no-repeat codes, 26%2A25%2A24=15600 .