# Combinatorics: Number of possible 8 Characters words from Alphabets

I found following Problem in Introductory Combinatorics text book:

How many eight-letter words can be constructed by using the 26 letters of the alphabet if each word contains three vowels? It is understood that there is no restriction on the number of times a letter can be used in a word

Self Attempt: I tried to solve the problem in following manners:
There are 5C3 ways we can select 3 vowels from the alphabet and 21C5 ways to select 5 consonant from 21 consonants. For each such 8 characters selection we can arrange the word in $$8^8$$ ways (as repetition of character is allowed).
My answer: $$5C3 \cdot 21C5 \cdot 8^8$$

But textbook has the following answer: $$8C5 \cdot 5^3 \cdot 21^5$$

• This tutorial explains how to typeset mathematics on this site. Feb 7, 2022 at 13:10
• @N.F.Taussig Thanks. Feb 7, 2022 at 13:11

The textbook is saying "choose the $$5$$ out of $$8$$ positions for consonants (so $$3$$ for vowels), then choose the $$3$$ vowels possibly with repetition and the $$5$$ consonants possibly with repetition"
$$^{5}C_3$$ would be choosing three distinct vowels in any order rather than the $$5^3$$ since order matters and repetitions are allowed, and similarly $$^{21}C_5$$ should be $$21^5$$ for the same reason.
I am not clear what your $$8^8$$ was intended to be. If the question had prohibited repeated letters, the answer would have been $$8!\,^{5}C_3\, ^{21}C_5$$
• @fluty $8^8$ would count for example the possibility of the same consonant being used $8$ times, which would preclude there being $3$ vowels, and many similar cases. Looked at another way, you have chosen $3$ distinct vowels and $5$ distinct consonants in your $\,^{5}C_3\, ^{21}C_5$ but if you do not use them all then how do know which ones were the unused ones you chose? Feb 7, 2022 at 13:40