Fundamental Counting Principle and Permutation
Fundamental Counting Principle and Permutation
The next three problems examples of the Counting Principle. They may be a little more
involved, but the strategy to solve them is identical to what we have already done. To
use the Counting Principle create a spot for each object that needs to be placed. Then
we write the number of choices for each spot and multiply the numbers to get an
answer.
Example: A computer password is to consist of two lower case letters followed by four
digits. Determine how many passwords are possible if…..
Each of the spot marked “L” will get a 26 above it as there are 26 letters. . I won’t
increment down by one as repetition is allowed.
Each of the spot marked “#” will get a 10 above it as there are 10 digits
(0,1,2,3,4,5,6,7,8,9) to choose from. I won’t increment down by one as repetition is
allowed.
26 * 26 *10*10*10*10 = 6,760,000
L L # # # #
Each of the spot marked “L” will get a 26 above it as there are 26 letters. I need to
increment down by one as repetition is NOT allowed.
Each of the spot marked “#” will get a 10 above it as there are 10 digits
(0,1,2,3,4,5,6,7,8,9) to choose from. I need to increment down by one as repetition is
NOT allowed.
26 * 25 * 10 * 9 *8* 7 = 3,276,000
L L # # # #
C) The first letter must be a vowel (a, e, i, o, u) and repetition of letters is NOT
permitted. The first digit cannot be a 0, and repetition of digits is NOT permitted.
The second letter has 25 choices. Repetition is not permitted. I can use any of the 25
letters not already used.
The first digit has 9 choices as it can be any of the 10 digits other than 0.
{1,2,3,4,5,6,7,8,9}
The second digit also has 9 choices as it can be the 0 and any of the 8 numbers not
selected for the first number.
The third and 4th digit will increment down 1 as repetition is NOT permitted.
5*25*9*9*8*7 = 567,000
V L # # # #
I make 5 lines, one for each person that is going to wait in the line.
This has to be considered a repetition is not permitted problem, as each person can only
occupy one space. I will need to increment down by 1.
5* 4 * 3 * 2 * 1 = 120
B) How many ways can they line up if Larry insists on being in the middle?
I need to form 5 spaces again, one for each person. Larry’s position is pre-determined. I
will begin by putting a 1 above Larry’s spot in line, as there is only one choice for that
position.
Larry
Next I will fill in the rest of the numbers. The first person can be any of the other 4 and I
will increment down by 1 person as the same person can only hold one spot in line.
4 * 3 * 1 * 2 * 1 = 24
Answer: 24 ways
C) If Sue insists on being first and Bob has to be last, how many ways?
I set up my 5 spots (one for each person). I put a 1 above Sue and Bob’s position as
there is only one person that can stand in those spots.
Sue Bob
There are 3 people that can line up second, and I will increment down by 1 again.
1*3*2*1*1=6
Answer: 6 ways
I need to introduce a new word – (permutation) and a new formula. This formula gives
us another way to solve problems that can be solved using the Counting Principle.
Most of the problems in this section can be solved using two methods:
The permutation formula is quite a bit trickier to use when solving the types of
problems in this section. I will solve a few problems both ways. That is with both the
permutation formula and using the Counting Principle. You won’t be responsible for
solving problems with the permutation formula on the test.
n!
Pr
n
n r !
We need to be familiar with the factorial symbol “!” to use the permutation formula.
Where n! = n(n-1)(n-2)….(1)
This problem can be solved using the permutation formula above as this is an ordered
arrangement of 5 of 5 letters. We also can use the counting principle and make 5 lines,
put numbers above the lines and multiply. I prefer the counting principle, but both
methods will work.
n = 5 and r = 5 (“n” represents the number of letters in the hat, and “r” represents the
total number of letters I am removing.)
5! 5∗4∗3∗2∗1 120
nPr = 5P5 = (5−5)! = =
0! 1
This problem can also be solved using the Counting Principle. To do this I make 5 lines,
one for each letter. There are 5 letters to choose for the first letter. I am assuming that
a letter can’t be used more than once. I will increment down by 1 each time.
5 * 4 * 3 * 2 * 1 = 120
This problem can be solved using the permutation formula above as this is an ordered
arrangement of 3 of 5 letters. We also can use the counting principle. I prefer the
counting principle, but both methods will work.
n = 5 and r = 3 (“n” represents the number of letters in the hat, and “r” represents the
number of letters I am removing.)
5! 5∗4∗3∗2∗1 120
nPr = 5P5 = (5−3)! = =
2! 2
Answer: 60 ways
This problem can also be solved using the Counting Principle. To do this I make 5 lines,
one for each letter. There are 5 letters to choose for the first letter. I am assuming that
a letter can’t be used more than once. I will increment down by 1 each time.
5 * 4 * 3 = 60
Answer: 60 ways
8! 8! 8∗7∗6∗5∗4∗3∗2∗1
P
(8−3)!
= 5! = = 8 ∗ 7 ∗ 6 = 336
8 3
5∗4∗3∗2∗1
Solved using the Counting Principle (I solve this as a without repetition problem as I
assume one person can’t hold two jobs.)
8 * 7 * 6 = 336
The Counting Principle only works when each object is distinct. It doesn’t work when
there are duplicate objects. It over counts when there are duplicate objects.
Example: How many ways are there to order the letters a,a,b?
If you use the Counting Principle you would make three slots.
3 * 2 * 1 = 6 ways.
Answer: 6 ways (Answer should be 3.) The Counting Principle over counts if there are
duplicate objects. In our problem there are 2 “a’s” and the Counting Principle will not
work.
The number of distinct permutations of n objects where n1 of the objects are identical,
n2 of the objects are identical… nr of the objects are identical is found by the formula…
n!
n1 ! n2 ! n3 ! nr !
This is an impressive formula. Basically the numerator is the total number of objects
factorial and the denominator contains a factorial for each duplicated object. This
formula will be easy to use once we do a few examples.
Here is how the a,a,b example will be solved using the formula:
3! 3∗2∗1
= =3
2! 2∗1
Answer: 3 ways
Example: In how many ways can the letters in the word “TALLAHASSEE” be arranged?
(There really isn’t a nice way to solve this using the counting principle because of the
duplicate letters and we are stuck with the formula approach)
Work: Of the 11 letters, 3 are A’s, 2 are L’s, 2 are S’s and 2 are E’s.
11! 11∗10∗9∗8∗7∗6∗5∗4∗3∗2∗1
= 831,600
3!2!2!2! 3∗2∗1∗2∗1∗2∗1∗2∗1
Example: In how many ways can the letters in the word “starburst” be arranged?
Work: Of the 9 letters, 2 are R’s, 2 are S’s and 2 are T’s.
9! 9∗8∗7∗6∗5∗4∗3∗2∗1
= 45360
2!∗2!∗2! 2∗1∗2∗1∗2∗1∗2∗1
1) The daily double at most racetracks consists of selecting the winning horse in both
the first and the second race. If the first race has 7 entries and the second has 8 entries,
how many daily double tickets mush you purchase to guarantee a win?
5) A social security number consists of nine digits. How many different social security
numbers are possible if repetition of digits is NOT permitted?
6) A social security number consists of nine digits. How many different social security
numbers are possible if repetition of digits is permitted?
7) A class ring has three stone options (emerald, ruby or sapphire), two metal options
(gold and silver). How many different class rings are possible?
8) Anthony has 6 dress shirts and 4 ties. How many shirt and tie outfits can he make?
9) How many different sandwiches can be made with 2 choices of bread, 3 choices of
toppings and 2 choices of meat?
10) A batting order must be created from the 9 starters on a baseball team. How many
batting orders are possible?
11) A batting order must be created from the 9 starters on a baseball team. How many
batting orders are possible if the pitcher must bat last?
12) A batting order must be created from the 9 starters on a baseball team. How many
batting orders are possible is a specific person must hit 4th?
13) A batting order must be created from the 9 starters on a baseball team. How many
batting orders are possible if the first 4 batters are already assigned?
14) A multiple choice test has 5 questions and each question has 4 choices. How many
ways are there to answer the questions?
15) A multiple choice test has 5 questions and each question has 4 choices. How many
ways are there to answer the questions if you know the answer to the first question?
16) A multiple choice test has 5 questions and each question has 4 choices. How many
ways are there to answer the questions if you know the answer to the first two
questions?
Homework #21-24: a license plate is to consist of three digits followed by two uppercase
letters. Determine the number of different license plates possible if
23) The first digit cannot be a zero, and repetition is not permitted
n!
Homework #25-30: Use the permutation of distinct objects formula to
n1 ! n2 ! n3 ! nr !
solve the following