document.write( "Question 412774: How many 4-letter code words are possible using the first 8 letters of the alphabet when letters are allowed to repeat?\r
\n" ); document.write( "\n" ); document.write( "I know the answer is 4096, but what is the answer when you cannot repeat letters? and how did you get given answer?
\n" ); document.write( "

Algebra.Com's Answer #289937 by sudhanshu_kmr(1152)\"\" \"About 
You can put this solution on YOUR website!

\n" ); document.write( "no. of possible code words when repetition allowed = 8 * 8 * 8 * 8 = 4096\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "no. of possible code, when repetition is not allowed = 8P4 = 1680\r
\n" ); document.write( "\n" ); document.write( "as repetition is not allowed, \r
\n" ); document.write( "\n" ); document.write( " no. of ways to arrange 4 letters out of 8 = 8P4 \r
\n" ); document.write( "\n" ); document.write( "another ways, \r
\n" ); document.write( "\n" ); document.write( "no. of ways to choose first letter for code = 8 \r
\n" ); document.write( "\n" ); document.write( "no. of ways to choose second letter for code = 7 (except the first one )\r
\n" ); document.write( "\n" ); document.write( "similarly, no. of ways to choose third and fourth letter are 6 and 5.\r
\n" ); document.write( "\n" ); document.write( "total no. of ways = 8*7*6*5 = 1680\r
\n" ); document.write( "\n" ); document.write( " \r
\n" ); document.write( "\n" ); document.write( "
\n" ); document.write( "
\n" );