document.write( "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?\r
\n" ); document.write( "\n" ); document.write( "This is what I have tried so far:\r
\n" ); document.write( "\n" ); document.write( "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:
\n" ); document.write( "(5C1 * 21C2) + (5C2 * 21C1) + (5C3 * 21C0) = 1270
\n" ); document.write( "

Algebra.Com's Answer #531645 by KMST(5328)\"\" \"About 
You can put this solution on YOUR website!
You used combinations rather than permutations;
\n" ); document.write( "so you are finding the number of sets (order does not matter) of 3 letters including at least one vowel, no repetitions allowed.
\n" ); document.write( "One of your sets is {A,B,C}.
\n" ); document.write( "However, the set {A,B,C} is shared by \"6\" different codes.
\n" ); document.write( "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.
\n" ); document.write( "Each of your \"1270\" sets of 3 letters generates \"3%21=6\" codes,
\n" ); document.write( "and \"1270%2A6=7620\" .
\n" ); document.write( "
\n" ); document.write( "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).
\n" ); document.write( "That result \"7620\" can be reached most directly by
\n" ); document.write( "subtracting the number of 3-consonant no-repeat codes, \"21%2A20%2A19=7980\" ,
\n" ); document.write( "from the number of 3-letter no-repeat codes, \"26%2A25%2A24=15600\" .
\n" ); document.write( "
\n" );