Find the number of three-letter code words that can be formed from the letters of the word WARDAYA.
I am stuck on the part of the repetition of As. I know how to use permutations on the distinct letters, but I'm stuck after that. I do not how to find the final answer with the $3$ As.
I researched this kind of questions, and I found out I need to find the distinct letters first and ignore the repeated ones first. (In this case, there are $3$ As). WARDAYA has $5$ distinct letters, so $P(5,3) = 5 \times 4 \times 3 = 60$ ways (No repetition). I do not know what I should do after this.
Strategy: A three-letter code from the letters of the word WARDAYA can have up to three As. Break into cases depending on the number of repeated letters.
Since these three cases are mutually exclusive and exhaustive, the answer can be obtained by adding the results for the three cases.