How many possible passwords with six to eight character long , each character is a letter or digit and each password must at least contains a digit ?



 

Letp6=ofpasswordsofsixcharactersp7=ofpasswordsofsevencharactersp8=ofpasswordsofeightcharactersUsingsumruletherearep6+p7+p8passwords.p6=(#ofallpossiplestringsoflength6wherecharatersarelettersarenembers)(#ofallpossiblestringsoflength6wherecharatersareonlyletters)=(36)6(26)6=1867866560p7=(#ofallpossiplestringsoflength7wherecharatersarelettersarenembers)(#ofallpossiblestringsoflength7wherecharatersareonlyletters)=(36)7(26)7=70332353920p8=(#ofallpossiplestringsoflength8wherecharatersarelettersarenembers)(#ofallpossiblestringsoflength8wherecharatersareonlyletters)=(36)8(26)8=26122842880p6+p7+p82684483063360Thefollowingiswronganswer6(10)(36)5Wehavedoublecounting.

Post a Comment

Please Select Embedded Mode To Show The Comment System.*

Previous Post Next Post