I'm trying to calculate the number of possible passwords provided that the length is 6 characters long. The characters can be any of the 26 lowercase letters or the digits 0-9. Supposing that the password must contain at least three letters, how many valid passwords are there to choose from?
I know that I would take the characters + digits (26 + 10) to the power of 6 (the length of the password). But how would I account for the constraint of the password containing at least three letters. E.g. "ab1234" is not a valid password.
36^6 - (10^6 * 2)
but i'm not sure if that's correct. $\endgroup$