Each user on a computer system has a password, which is six to eight characters long, where each character is an uppercase letter or a digit. Each password must contain at least one digit. How many possible passwords are there?
I am solving this in following way:
D => count(Digit 0 to 9) = 10
- => count(Digit ∪ letters) = 26 + 10 = 36
Passwords of length 6 with at least one digit = _ _ _ _ _ _ => * D * * * * => 10 x 365
Passwords of length 7 with at least one digit = _ _ _ _ _ _ => * * D * * * * => 10 x 366
Passwords of length 8 with at least one digit = _ _ _ _ _ _ => D * * * * * * * => 10 x 367
So Total sequences allowed = 10 x 365 + 10 x 366 + 10 x 367 => 806014126080
But answer is : 2,684,483,063,360 How?