For the following question: "An office manager must choose a four-digit lock code for the office door. The first and last digits of the code must be odd, and no repetition of digits is allowed. How many different lock codes are possible?"
The answer is: 5*8*7*4.
I am confused as to how you guarantee there are no repetitions. I realize that you reduce the middle slots to reduce the repetition, but what is preventing the numbers from all being let's say 3 even when you reduce the numbers? Also, why do you start with the first slot and then the last slot... is it because those are more restrictive? Initially, I did 5*9*8*2 thinking that the second number could be any number but the one chosen for the first slot, the third spot cannot be the first two, and for the fourth spot... I have to account for the two previous spots.
I am very confused. Any insights would be so appreciated.