[Math] 5 letter password either lowercase or uppercase

combinatoricspermutations

Given that you can have 5 letter password that contains either lowercase or uppercase. My questions are:
1) How many possible passwords are there?

I did $52^5 = 380,204,032$ since there are 52 letters, 26 lower and 26 upper.

2) How many possible passwords are lowercase only?

$26^5$ = 11,881,375 since there are only 26 lower

3) How many possible passwords are uppercase only?

$26^5$ = 11,881,375 since there are only 26 upper

4.) How many possible passwords are there that uses at least 1 uppercase and 1 lowercase?

Not sure about this one…

Best Answer

All you would have to do would be to take the number of possible passwords with uppercase and lowercase combined, then subtract the number of all uppercase and all lowercase combinations.

You would end up with $52^5 - 2*26^5$