Question

In: Statistics and Probability

In an exactly 8 character long password where capital letters, small letters, and digits (0 to...

In an exactly 8 character long password where capital letters, small letters, and digits (0 to 9) must be used. Regardless of the order, how many passwords will use exactly 5 ones, 4 twos, and one Z?

Solutions

Expert Solution

solution:

Given that

No.of capital letters = 26

No.of small letters = 26

No.of digits(0-9) = 10

Total No.of characters = 26+26+10 = 62

i) No.of passwords will use exactly 5 one's

---> Regardless of the order,

ex-1 :

1 1 1 1 1

ex-2:

1 1 1 1 1

The no.of possible ways to keep 5 one's in password = 8C5 = 56

The no.of possible ways possible ways to keep remaining 3 characters = 61*61*61 [ since 1 is not concerned here and we may keep any character from remaining 61 characters at each digit] By product rule:

   Total No.of passwords that contains exactly 5 ones = 56 * 61 * 61 * 61 = 56*61^3

ii) No.of passwords will exactly use 4 two's  

Regardless order,  

2 2 2 2

The no.of possible ways to keep 4 two's in password = 8C4 = 70

The no.of possible ways possible ways to keep remaining 4 characters = 61*61*61*61 [ since 2 is not concerned here and we may keep any character from remaining 61 characters at each digit]

By product rule:

   Total No.of passwords that contains exactly 4 two's = 70 * 61 * 61 * 61 * 61 = 70*61^4

iii) No.of passwords will use exactly one Z(capital)

   The no.of possible ways to keep one Z in password = 8C1 = 8

The no.of possible ways to keep remaining 7 characters = 61^7   [ since Z(capital) is not concerned here and we may keep any character from remaining 61 characters at each digit]

By product rule:

   Total No.of passwords that contains exactly one Z = 8 * 61 * 61 * 61 * 61 * 61 * 61*61 = 8 * 61^7

The Total No.of passwords will use exactly 5 one's, 4 two's and one Z = (56 * 61^3) + (70*61^4) + (8*61^7)


Related Solutions

An 8-digit password is required to have exactly three 0’s. The other 5 digits can be...
An 8-digit password is required to have exactly three 0’s. The other 5 digits can be any number 1-7, but numbers 1-7 may not be repeated. Write a program that lists all the possible outcomes. Provide your code and first 100 outcomes (Python).
A password is a sequence of letters (a–z) and digits (0–9). Findthe number of passwords...
A password is a sequence of letters (a–z) and digits (0–9). Find the number of passwords of length 10 under the constraints in (a), (b) or (c) (three separate problems). Express your answer using factorials and integers, products and ratios of them, and/or sums of such things.(a) There are 3 letters and 7 digits, and at most one ‘9’.(b) There are 6 letters and 4 digits, and no digit occurs twice.(c) No letters are used BUT the first four digits...
A password is a sequence of letters (a–z) and digits (0–9). Find the number of passwords...
A password is a sequence of letters (a–z) and digits (0–9). Find the number of passwords of length 10 under the constraints in (a), (b) or (c) (three separate problems). Express your answer using factorials and integers, products and ratios of them, and/or sums of such things. (a) There are 3 letters and 7 digits, and at most one ‘9’. (b) There are 6 letters and 4 digits, and no digit occurs twice. (c) No letters are used BUT the...
Think of a password 8 character long which uses at last one lower-case letter, one capital...
Think of a password 8 character long which uses at last one lower-case letter, one capital letter, and one number, but uses none more than once. What's your password? How many possible permutations are there for an 8 character password which meets those criteria? How many fewer combinations without regard to order are there for an 8 character password which meets those requirements. How would you calculate how many permutations there are for an 8 to 12 character password which...
An 8-character password consists of four numbers (from 1 to 9) followed by two letters (from...
An 8-character password consists of four numbers (from 1 to 9) followed by two letters (from A to Z) followed by two more numbers (from 1 to 9). a) How many different passwords can be formed if letters and numbers can be repeated? b) How many different passwords can be formed that have no repeated number or letters?
A password is a sequence of five characters. Each character is one of twenty-six uppercase letters...
A password is a sequence of five characters. Each character is one of twenty-six uppercase letters (“A” through “Z”), one of ten digits (“0” through “9”), or one of five symbols (“+”, “-”, “!”, “<”, “>”). Count the number of possible passwords that can be created in each of the following scenarios. Consider each part of this questions separately. (a) There are no restrictions on how the characters are chosen. (b) A password must begin with a letter and end...
A certain website wants you to build a 6-character password from the letters a through i,...
A certain website wants you to build a 6-character password from the letters a through i, the numbers 0 − 9, or the symbols @, #, or &. Clearly, the order of the characters in the password matters (a) How many passwords are there in total? (b) How many passwords are there that consist of distinct characters? (c) How many passwords have the first two characters be letters, the middle two character be one of the symbols and the last...
A password is a string of ten characters, where each character is a lowercase letter, a...
A password is a string of ten characters, where each character is a lowercase letter, a digit, or one of the eight special characters !, @, #, $, %, &, (, and ). A password is called awesome, if it contains at least one digit or at least one special character. Determine the number of awesome passwords.
A website has the following policy for creating a password: • Passwords must be exactly 8...
A website has the following policy for creating a password: • Passwords must be exactly 8 characters in length. • Passwords must include at least one letter (a-z, A-Z) or supported special character (@, #, $ only). All letters are case-sensitive. • Passwords must include at least one number (0-9). • Passwords cannot contain spaces or unsupported special characters According to this policy, how many possible passwords are available? (Round to the nearest trillion)
--A software company uniformly randomly generates 14-character encryption keys from 26 letters and 10 digits. Repeated...
--A software company uniformly randomly generates 14-character encryption keys from 26 letters and 10 digits. Repeated characters are allowed, and the order of the characters matters. (a) How many different keys can be generated, if there are no restrictions at all on the keys? (b) What is the probability that a key consists of only letters? (c) What is the probability that a key starts and ends with a digit? (d) If the digits are removed from the 14-character key...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT