in Quantitative Aptitude
3,365 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?
in Quantitative Aptitude
3.4k views

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
by

1 comment

okay i got it just edit  no of digits : 0 to 9
0
0
Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true