Asked by brittaney
If a random password is 3 letters(a-z) and 1 number (0-9) what is the possibility that the password will have 2 of the same letters?
26x26x26=17576
26x26x26=17576
Answers
Answered by
mwlevin
There are
26^3 * 10
ways to select characters for the passwords, and
26*2 * 10
ways to select characters for which 2 letters repeat.
Assuming order matters, there are
(4 C 1) 26^3 * 10
possible passwords (we have to choose the position of the number) and
(4 C 1) (3 C 2) 26^2 * 10
passwords in which a letter repeats (we have to choose the position of the number, and which 2 letters repeat).
26^3 * 10
ways to select characters for the passwords, and
26*2 * 10
ways to select characters for which 2 letters repeat.
Assuming order matters, there are
(4 C 1) 26^3 * 10
possible passwords (we have to choose the position of the number) and
(4 C 1) (3 C 2) 26^2 * 10
passwords in which a letter repeats (we have to choose the position of the number, and which 2 letters repeat).
There are no AI answers yet. The ability to request AI answers is coming soon!
Submit Your Answer
We prioritize human answers over AI answers.
If you are human, and you can answer this question, please submit your answer.