I'm struggling on a question similar to the following:
Your ID can only use 3 digits. Allowed digits are 0-8. How many allowed combinations are there if repeating digits is allowed? What about if they're not allowed?
I feel like it has something to do with nPr and nCr but I really am not sure. Any help would be very much appreciated.
When repeating digits are not allowed this is a permutation because order matters. You have to choose 3 without repeating and the order matters.
$_9P_3 = \frac{9!}{(9-3)!} = 504$
When repeating digits is allowed you have 9 choices for each digit and it doesn't matter what the previous digits were so you can just use the multiplication principle.
$9^3 = 729$