3,424 views
0 votes
0 votes
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 understand sum rule will be applied adding P6+P7+P8

my doubt is how we will ensure password will contain one digit?

in rosen solution P6 = 36^6 - 26^6 why they did like this?

1 Answer

2 votes
2 votes

No of alphabets : 26

No of digits : (0 to 9)

total characters : 10+26 = 36

P6 =  Total no of ways to create a password with 36 characters - no of ways in which  all 6 characters are   alphabets  

     =  (36)6 - (26)6

Similarly we do with P7 and P8

then add p6+p7+p8

 

 

edited by

Related questions

0 votes
0 votes
1 answer
1
3 votes
3 votes
2 answers
3
0 votes
0 votes
1 answer
4