document.write( "Question 335824: The correct combination of a lock is first turn right to d1, then turn left to d2, and last turns to d3, where d1, d2, and d3 are selected from 0, 1, 2, ..., 50. How many different lock combinations are possible with such a lock, if\r
\n" ); document.write( "\n" ); document.write( "a) the numbers may be repeated?\r
\n" ); document.write( "\n" ); document.write( "b) the numbers may not be repeated?
\n" ); document.write( "

Algebra.Com's Answer #240845 by Theo(13342)\"\" \"About 
You can put this solution on YOUR website!
On your first turn, you may pick 50 numbers.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "On your second turn, you may pick 50 numbers, if they can be repeated, and you may pick 49 numbers, if they cannot be repeated.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "On your third turn, you may pick 50 numbers, if they can be repeated, and you may pick 48 numbers, if they cannot be repeated.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "If the numbers can be repeated, your total possible combinations may be:\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "50 * 50 * 50.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "If the number cannot be repeated, your total possible combinations may be:\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "50 * 49 * 48.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "To see this more clearly, assume the numbers are from 1 to 3 only.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "With repetition, you can have 3 * 3 * 3 = 27 possible combinations.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Without repetition, you can have 3 * 2 * 1 = 6 possible combinations.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Assuming numbers 1 to 3 only, here are the total possible combinations with repetition.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "111 112 113
\n" ); document.write( "121 122 123
\n" ); document.write( "131 132 133
\n" ); document.write( "211 212 213
\n" ); document.write( "221 222 223
\n" ); document.write( "231 232 233
\n" ); document.write( "311 312 313
\n" ); document.write( "321 322 323
\n" ); document.write( "331 332 333\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "That's a total of 9 * 3 = 27 possible combinations.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Here are the total possible combinations without repetition.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "123
\n" ); document.write( "132
\n" ); document.write( "213
\n" ); document.write( "231
\n" ); document.write( "312
\n" ); document.write( "321\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "With 50 numbers, the number of possible combinations becomes much larger, but the concept remains the same.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "With 50 possible numbers and repetition allowed, you got:\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "50 * 50 * 50\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "With 3 possible numbers and repetition allowed, you got:\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "3 * 3 * 3\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "With 50 possible numbers and repetition not allowed, you got:\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "50 * 49 * 48\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "With 3 possible numbers and repetition not allowed, you got:\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "3 * 2 * 1\r
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "
\n" ); document.write( "
\n" );