IndigoIntentions
The security gate at a storage facility requires a five-digit lock code. If the lock code must consist only of digits from 1 through 7, inclusive, with no repeated digits, and the first and last digits of the code must be odd, how many lock codes are possible?
A. 120
B. 240
C. 360
D. 720
E. 1440
Security gate requires a five digit lock code.
Lock code can take digits from 1 to 7 inclusive i.e. 1,2,3,4,5,6,7... Odd nos. among these nos are 1,3,5,7,total 4 in numbers.
Lets make boxes below to check in how many digits can be placed at the 5 different places of the lock code.
| 4ways (only odd allowed) | 5ways | 4ways | 3ways | 3ways (only odd allowed) |
Let me explain this..
At the first place we can place any of the 4 digits.
At the last place we can place any of 3 digits. (as digits can't be repeated.)
Now there are 5 digits left.
So, at the 2nd place we can place any of 5 digits.
at the 3rd place we can place any of 4 digits.
at the 4th place we can place any of 3 digits.
So, total number of lock codes possible = 4 * 5 * 4 * 3 * 3 = 80 * 9 = 720.
Answer D.