Question

A password is made out of 8 characters. The password must contain exactly 8 characters and...

  1. A password is made out of 8 characters. The password must contain exactly 8 characters and can consist of any uppercase letter, lowercase letter, number, or pound character. How many possible passwords are there given the following specification:

a) password cannot have a number character.

b) password must have exactly 1-pound (#) character that is not at the beginning or end of a variable name.

c) password must have at least one number.

2. Alison has 10 bananas and 15 pineapples. He realized that he only can eat 6 fruits today. If she does not care about the order each fruit has to be eaten, how many ways are there to eat the fruits if:

  1. she would like to eat at least as many pineapples as bananas?
  2. She would like to eat as many bananas as pineapples, but she cannot eat the banana without eating the pineapple.

Homework Answers

Answer #1

In the solution I am going to be using permutation and combinations, the formula for

nPr is = (n!)/(n-r)!

The formula for nCr is (n!)/(r!)(n-r)!

1)

Number of upper case letters = 26

Number of lower case letters = 26

Number of number characters = 10

Plus one pound sign can be used.

a) We cannot use number characters -

Total characters we can use = 26 (Upper case) + 26 (lower case) + 1 (pound sign) = 53

So we need to place 53 characters in 8 places, where order matters -

This comes out to be 53P8 = 53*52*51*50*49*48*47*46 = 35736531667200

b)

We need to place pound sign but not at first or last position.

Total ways to place pound sign - 6

In remaining 7 positions, we need to place letters (52) + numbers (10) = 62.

Total ways to arrange in remaining positions = 62P7 = 62*61*....*56 = 2478652606080

Total ways to arrange all 8 characters = 6 * 62P7 = 14871915636480

c) Atleast one number needs to be present =

Number of ways to create using all characters - Number of ways to create using no number

= 63P8 - 35736531667200 (Answer from part a)

= 120418582515840

2)

a) To have total of 6 fruits while having atleast as many pineapples as bananas, Alison can have -

3 pineapples, 3 bananas

4 pineapples, 2 bananas

5 pineapples, 1 bananas

6 pineapples, 0 bananas

Total pineapples = 15

Total bananas = 10

Total ways to select x pineapples = 10Cx

Total ways to select x bananas = 15Cx

total ways to do this , we multiply total ways to find x bananas and y pineapples (multiplication rule)

10C3*15C3 + 10C4*15C2 + 10C5*15C1 + 10C6*15C0

= 80640 after calculating.

b)

She needs to eat 3 bananas and 3 pineapples, but it is given that she needs to eat the pineapple first-

So we need to eat 3 more bananas and 2 more pineapples after the first pineapple-

Number of ways to select the first pineapple - 15 (as there are 15 pineapples we have 15 choices)

Remaining 14 pineapples we select 2 more = 14C2 ways.

From 10 bananas we select 3 = 10C3 ways

Total ways = 15*14C2*10C3 = 163800

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
For a certain computer program a password must be exactly 5 characters long. The first character...
For a certain computer program a password must be exactly 5 characters long. The first character can be any lowercase letter, the second must be an uppercase letter, the third character must be a number from 0 – 9, the fourth character can either be a lowercase letter or a number 0 - 9, the fifth character has to be exactly the same as the first character.                                                                                         (6) How many possible passwords are there? What is the...
Suppose that a certain computer password is allowed to be from 8 to 12 characters long,...
Suppose that a certain computer password is allowed to be from 8 to 12 characters long, and may contain only lowercase letters (a to z), uppercase letters (A to Z), and numbers (0 to 9). 1. How many such passwords are possible? 2. How many such passwords are possible if you cannot repeat characters? 3. How many such passwords are possible if you cannot repeat characters, and you must include at least one number?
A computer system uses passwords that contain exactly 5 characters, and each character is 1 of...
A computer system uses passwords that contain exactly 5 characters, and each character is 1 of the 26 lowercase letters (a–z) or 26 uppercase letters (A–Z) or 10 integers (0–9). Let Ω denote the set of all possible passwords, and let A and B denote the events that consist of passwords with only letters or only integers, respectively. Determine the probability that a password contains at least 1 uppercase letter given that it contains only letters. The answer is not...
Each user on a computer system has a password, which is seven to nine characters long,...
Each user on a computer system has a password, which is seven to nine characters long, where each character is an uppercase letter or a digit. Each password must contain at least one digit or at least one Uppercase letter. How many possible passwords are there?
The AccessPlus system at ISU has the following policy for creating a password: -Passwords must be...
The AccessPlus system at ISU 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 AccessPlus passwords are available? (Round to the nearest trillion)
A company wants to impose a more secure password system for its employees to use on...
A company wants to impose a more secure password system for its employees to use on the company’s network. The current policy requires a minimum of seven characters. The system under consideration requires a minimum of eight characters. The new system will allow repetition of characters, but not doubling (e.g., the sequence 121 would be acceptable, but not 112). For both password systems, assume the following: Only alphanumeric characters can be used in the passwords, without any spaces or symbols....
a password must be 4 characters long and contain only digits and lowercase english letters. The...
a password must be 4 characters long and contain only digits and lowercase english letters. The english alphabet contains 5 vowels. Assuming that digits and letters can be repeated how many differnt passwords contain exactly one vowel? enter the exact numeric number
A computer password consists of six characters. 36a. How many different passwords are possible if each...
A computer password consists of six characters. 36a. How many different passwords are possible if each character may be any lowercase letter or digit, and at least one character must be a digit? Please enter your result in scientific notation, making sure the answer in the left box is between 1 and 10. 36b. A computer system requires that passwords contain at least one digit. If six characters are generated at random, and each is equally likely to be any...
1) Assume that a password can contain upper and lower-case letters (26), digits, and special characters...
1) Assume that a password can contain upper and lower-case letters (26), digits, and special characters from the set { !, #, $, %, &, * }. Furthermore, each password must start with a letter and must contain at least one digit and one special character. How many different six-character passwords can be formed according to this specification?
A computer password can be 5 - 6 characters. The password must contain at least 1...
A computer password can be 5 - 6 characters. The password must contain at least 1 digit. All other characters must either be digits or lower case letters. How many unique passwords exists?