379 views
0 votes
0 votes
How many 5 letter (lower case) passwords are possible with with at least 2 'a's?

2 Answers

Best answer
2 votes
2 votes

How many 5 letter (lower case) passwords are possible with with at least 2 'a's?

number of ways of filling a box with all letter = 26 and without a = 25.

solution :

way 1:

possible passwords with 2a's , 3a's, 4a's or 5a's.

way 2:

total possible passwords with all lower case alphabets - (0 a's + 1 a's).

following way 2  as its short :

total passwords possible= 26=11881376

possible passwords with 0 a's = 255=9765625

possible passwords with 1 a = 5C1 * 254=1953125

                 (no of ways a can be placed in 5 places = 5C1 and other 4 places can be filled by other 25 alphabets in 254 ways)

required possible way = 265-255 - 5* 254

                                    =162626

if we use way 1 : 

No of 5 letter passwords using two a's= 5C2 * 253=156250

No of 5 letter passwords using three a's= 5C3 * 252=6250

No of 5 letter passwords using four a's=5C4 *25=125

No of 5 letter passwords using five a's = 5C5 =1

                                              =156250+6250+125+1 = 162626 answer.
 

 

selected by
0 votes
0 votes
there are 26 latters

total no of password possible(containing each case)=26*26*26*26*26=11881376

no of password containing 0(zero) no of a's=25*25*25*25*25=9765625

no of password containing 1 no of a's=1*25*25*25*25*5=1953125 (we multiply by 5 because single a can occur at 5 different position )

total no of password at least two a's=total no of password - (total no of password containing 0 no of a's) - (total no of password containing  1 no of a's)=11881376-9765625-1953125=162626

Related questions

0 votes
0 votes
0 answers
2
Arjun asked Feb 27, 2022
308 views
This is part of the site features explanation videos contest as explained here
0 votes
0 votes
1 answer
3
sidjha57 asked Jan 18, 2022
456 views
Why am I not able to access the course content that is to enroll in the courses on go classroom?It says that it has been ended on 21st July is there any other way to acce...
0 votes
0 votes
0 answers
4
Moni Alex asked Jun 6, 2019
406 views