A IT professional needs to create a password for new employees joining the company, the password must be of length 6. The letters must be from lowercase letters or digits. The passwords must contain at least two lowercase letters, at least one digit, and repetition is not allowed for digits. How many ways are there to generate the password?
6 characters length.
At least 2 lower case letters.
At least 1 digit.
No repetition allowed for digits.
Please correct me if I'm wrong, but the way I have been thinking would be to calculate with 5 lower case letters + 1 digit, then calculate 2 lower case letter + 4 digits. After getting these two subtract and that would be my result, is this right?
26^5 X 10 = 118813760
26^2 X 10 X 9 X 8 X 7 = 3407040
Now 118813760 - 3407040 = 115406720?
Is this right? I feel like I'm doing something wrong here.
6⋅5 - this would be number of place holders we have for the different characters, right?
Thanks!
– Notsosmart Jun 10 '21 at 10:52