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.