document.write( "Question 1203679: contest consists of finding all of the code words that can be formed from the letters in the name \"ATARI.\" Assume that the letter A can be used twice, but the others at most once.
\n" ); document.write( "A) How many five-letter words can be formed?
\n" ); document.write( "B) How many two-letter words can be formed?
\n" ); document.write( "C) How many words can be formed?
\n" ); document.write( "

Algebra.Com's Answer #839433 by math_tutor2020(3817)\"\" \"About 
You can put this solution on YOUR website!

\n" ); document.write( "Part (a)\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "If we could tell the \"A\"s apart, then there would be 5! = 5*4*3*2*1 = 120 different five-letter permutations. \r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "But because we cannot tell the \"A\"s apart, we must divide by 2 which corrects the erroneous double-count.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "We'll have 120/2 = 60 different five-letter words possible.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "-------------------------------\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Part (b)\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "We have these four possible cases:
  1. The letter \"A\" is used twice
  2. The letter \"A\" is used exactly once in the 1st slot.
  3. The letter \"A\" is used exactly once in the 2nd slot.
  4. The letter \"A\" is not chosen at all.
Case 1 has exactly one outcome. That outcome is AA.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Case 2 has 3 choices for the 2nd slot, which means we have the 3 permutations AT, AR, AI\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Case 3 also has 3 outcomes. The logic is similar to case 2.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Case 4 has 3*2 = 6 permutations of the letters {T,R,I}\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Add up the results
\n" ); document.write( "1+3+3+6 = 13
\n" ); document.write( "There are 13 different two letter sequences\r
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "The entire list is
  1. AA
  2. AT
  3. AR
  4. AI
  5. TA
  6. TR
  7. TI
  8. RA
  9. RT
  10. RI
  11. IA
  12. IT
  13. IR
A combinatorics calculator I recommend is this
\n" ); document.write( "https://www.mathsisfun.com/combinatorics/combinations-permutations-calculator.html
\n" ); document.write( "It computes the nPr value, and also lists the different permutations.
\n" ); document.write( "Refer to the \"List Them\" section on that page.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "-------------------------------\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Part (c)\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "The previous part calculated 13 different two-letter words.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Let's calculate how many three-letter sequences are possible.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "We have these cases
  1. The letter \"A\" is used twice.
  2. The letter \"A\" is used exactly once.
  3. The letter \"A\" is not chosen at all.
\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Case 1
\n" ); document.write( "There are 3 slots to pick from where the letters T, R, or I will go.
\n" ); document.write( "After that slot is chosen, the other two slots are locked in as \"A\"
\n" ); document.write( "Therefore, we have 3*3 = 9 ways to do case 1.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Case 2
\n" ); document.write( "There are 3 slots to pick for the letter \"A\".
\n" ); document.write( "We have two more slots and 3 more letters to pick from to fill said slots. We'll have 3*2 = 6 permutations of those other letters.
\n" ); document.write( "Overall we have 3*6 = 18 ways to carry out case 2.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Case 3
\n" ); document.write( "There are 3*2*1 = 6 permutations of the letters {T,R,I}\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Add up the results
\n" ); document.write( "9+18+6 = 33
\n" ); document.write( "We find there are 33 different three-letter words.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "I'll let you do the scratch work to determine how many four-letter words are possible.
\n" ); document.write( "You should find there are 60 different four-letter words possible.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "To summarize we have...
  • 60 ways to form a five-letter word.
  • 60 ways to form a four-letter word.
  • 33 ways to form a three-letter word.
  • 13 ways to form a two-letter word.
There are 60+60+33+13 = 166 different words possible when we can only select letters from the list {A,T,A,R,I} where \"A\" can be used at most twice, but the other letters at most once.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "-------------------------------\r
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Answers:
\n" ); document.write( "(a) 60
\n" ); document.write( "(b) 13
\n" ); document.write( "(c) 166
\n" ); document.write( "
\n" ); document.write( "
\n" );