Counting Principles
By the end of this section, you will be able to:
- Solve counting problems using the Addition Principle
- Solve counting problems using the Multiplication Principle
- Solve counting problems using permutations involving distinct objects
- Solve counting problems using combinations
- Find the number of subsets of a given set
- Solve counting problems using permutations involving non-distinct objects
A new company sells customizable cases for tablets and smartphones. Each case comes in a variety of colors and can be personalized for an additional fee with images or a monogram. A customer can choose not to personalize or could choose to have one, two, or three images or a monogram. The customer can choose the order of the images and the letters in the monogram. The company is working with an agency to develop a marketing campaign with a focus on the huge number of options they offer. Counting the possibilities is challenging!
We encounter a wide variety of counting problems every day. There is a branch of mathematics devoted to the study of counting problems such as this one. Other applications of counting include secure passwords, horse racing outcomes, and college scheduling choices. We will examine this type of mathematics in this section.
Using the Addition Principle
The company that sells customizable cases offers cases for tablets and smartphones. There are 3 supported tablet models and 5 supported smartphone models. The Addition Principle tells us that we can add the number of tablet options to the number of smartphone options to find the total number of options. By the Addition Principle, there are 8 total options: .
Example. There are 2 vegetarian entrée options and 5 meat entrée options on a dinner menu. What is the total number of entrée options?
Solution. We can add the number of vegetarian options to the number of meat options to find the total number of entrée options: . There are 7 total options.
A student is shopping for a new computer. He is deciding among 3 desktop computers and 4 laptop computers. What is the total number of computer options?
The two groups share no common option, so add the number of desktops to the number of laptops.Using the Multiplication Principle
The Multiplication Principle applies when we are making more than one selection. Suppose we are choosing an appetizer, an entrée, and a dessert. If there are 2 appetizer options, 3 entrée options, and 2 dessert options on a fixed-price dinner menu, there are a total of 12 possible choices of one each, as shown in the tree diagram below.
The possible choices are:
- soup, chicken, cake
- soup, chicken, pudding
- soup, fish, cake
- soup, fish, pudding
- soup, steak, cake
- soup, steak, pudding
- salad, chicken, cake
- salad, chicken, pudding
- salad, fish, cake
- salad, fish, pudding
- salad, steak, cake
- salad, steak, pudding
We can also find the total number of possible dinners by multiplying. We could also conclude that there are 12 possible dinner choices simply by applying the Multiplication Principle.
Example. Diane packed 2 skirts, 4 blouses, and 2 sweaters for her business trip. She will need to choose a skirt and a blouse for each outfit and decide whether to wear the sweater. Use the Multiplication Principle to find the total number of possible outfits.
Solution. To find the total number of outfits, find the product of the number of skirt options, the number of blouse options, and the number of sweater options: . There are 16 possible outfits.
A restaurant offers a breakfast special that includes a breakfast sandwich, a side dish, and a beverage. There are 3 types of breakfast sandwiches, 4 side dish options, and 5 beverage choices. Find the total number of possible breakfast specials.
Multiply the number of sandwich options by the number of side options by the number of beverage options.Finding the Number of Permutations of Distinct Objects
The Multiplication Principle can be used to solve a variety of problem types. One type of problem involves placing objects in order. We arrange letters into words and digits into numbers, line up for photographs, decorate rooms, and more. An ordering of objects is called a permutation.
Finding the Number of Permutations of Distinct Objects Using the Multiplication Principle
To solve permutation problems, it is often helpful to draw line segments for each option. That enables us to determine the number of each option so we can multiply. For instance, suppose we have four paintings, and we want to find the number of ways we can hang three of the paintings in order on the wall. We can draw three lines to represent the three places on the wall.
There are four options for the first place, so we write a 4 on the first line. After the first place has been filled, there are three options for the second place, so we write a 3 on the second line. After the second place has been filled, there are two options for the third place, so we write a 2 on the third line. Finally, we find the product.
There are 24 possible permutations of the paintings.
How To: given distinct options, determine how many permutations there are.
- Determine how many options there are for the first situation.
- Determine how many options are left for the second situation.
- Continue until all of the spots are filled.
- Multiply the numbers together.
Example. At a swimming competition, nine swimmers compete in a race.
a. How many ways can they place first, second, and third? b. How many ways can they place first, second, and third if a swimmer named Ariel wins first place? (Assume there is only one contestant named Ariel.) c. How many ways can all nine swimmers line up for a photo?
Solution.
a. There are 9 options for first place. Once someone has won first place, there are 8 remaining options for second place. Once first and second place have been won, there are 7 remaining options for third place: . Multiply to find that there are 504 ways for the swimmers to place. b. We know Ariel must win first place, so there is only 1 option for first place. There are 8 remaining options for second place, and then 7 remaining options for third place: . Multiply to find that there are 56 ways for the swimmers to place if Ariel wins first. c. There are 9 choices for the first spot, then 8 for the second, 7 for the third, 6 for the fourth, and so on until only 1 person remains for the last spot: . There are 362,880 possible permutations for the swimmers to line up.
Analysis. Note that in part c, we found there were ways for 9 people to line up. The number of permutations of distinct objects can always be found by .
A family of five is having portraits taken. Use the Multiplication Principle to find the following.
A family of five is having portraits taken. How many ways can the family line up for the portrait?
All 5 family members are being placed in order, so the count is.A family of five is having portraits taken. How many ways can the photographer line up 3 of the 5 family members?
There are 5 choices for the first spot, 4 for the second, and 3 for the third.A family of five is having portraits taken. How many ways can the family line up for the portrait if the parents are required to stand on each end?
There are 2 ways to arrange the parents on the two ends, then arrange the 3 children in the middle 3 spots.Finding the Number of Permutations of Distinct Objects Using a Formula
For some permutation problems, it is inconvenient to use the Multiplication Principle because there are so many numbers to multiply. Fortunately, we can solve these problems using a formula. Before we learn the formula, let’s look at two common notations for permutations. If we have a set of objects and we want to choose objects from the set in order, we write . Another way to write this is , a notation commonly seen on computers and calculators. To calculate , we begin by finding , the number of ways to line up all objects. We then divide by to cancel out the items that we do not wish to line up.
Let’s see how this works with a simple example. Imagine a club of six people. They need to elect a president, a vice president, and a treasurer. Six people can be elected president, any one of the five remaining people can be elected vice president, and any of the remaining four people could be elected treasurer. The number of ways this may be done is . Using factorials, we get the same result.
There are 120 ways to select 3 officers in order from a club with 6 members. We refer to this as a permutation of 6 taken 3 at a time. The general formula is as follows.
Note that the formula still works if we are choosing all objects and placing them in order. In that case we would be dividing by or , which we said earlier is equal to 1. So the number of permutations of objects taken at a time is or just .
Formula for Permutations of Distinct Objects. Given distinct objects, the number of ways to select objects from the set in order is
How To: given a word problem, evaluate the possible permutations.
- Identify from the given information.
- Identify from the given information.
- Replace and in the formula with the given values.
- Evaluate.
Example. A professor is creating an exam of 9 questions from a test bank of 12 questions. How many ways can she select and arrange the questions?
Solution. Substitute and into the permutation formula and simplify.
There are 79,833,600 possible permutations of exam questions!
Q&A. Could we have solved this example using the Multiplication Principle?
Yes. We could have multiplied to find the same answer.
A play has a cast of 7 actors preparing to make their curtain call. Use the permutation formula to find the following.
A play has a cast of 7 actors preparing to make their curtain call. How many ways can the 7 actors line up?
All 7 actors are placed in order, so use.A play has a cast of 7 actors preparing to make their curtain call. How many ways can 5 of the 7 actors be chosen to line up?
Use the permutation formulawithand.Find the Number of Combinations Using the Formula
So far, we have looked at problems asking us to put objects in order. There are many problems in which we want to select a few objects from a group of objects, but we do not care about the order. When we are selecting objects and the order does not matter, we are dealing with combinations. A selection of objects from a set of objects where the order does not matter can be written as . Just as with permutations, can also be written as . In this case, the general formula is as follows.
An earlier problem considered choosing 3 of 4 possible paintings to hang on a wall. We found that there were 24 ways to select 3 of the 4 paintings in order. But what if we did not care about the order? We would expect a smaller number because selecting paintings 1, 2, 3 would be the same as selecting paintings 2, 3, 1. To find the number of ways to select 3 of the 4 paintings, disregarding the order of the paintings, divide the number of permutations by the number of ways to order 3 paintings. There are ways to order 3 paintings. There are , or 4 ways to select 3 of the 4 paintings. This number makes sense because every time we are selecting 3 paintings, we are not selecting 1 painting. There are 4 paintings we could choose not to select, so there are 4 ways to select 3 of the 4 paintings.
Formula for Combinations of Distinct Objects. Given distinct objects, the number of ways to select objects from the set is
How To: given a number of options, determine the possible number of combinations.
- Identify from the given information.
- Identify from the given information.
- Replace and in the formula with the given values.
- Evaluate.
Example. A fast food restaurant offers five side dish options. Your meal comes with two side dishes.
a. How many ways can you select your side dishes? b. How many ways can you select 3 side dishes?
Solution.
a. We want to choose 2 side dishes from 5 options: . b. We want to choose 3 side dishes from 5 options: .
Q&A. Is it a coincidence that parts (a) and (b) above have the same answers?
No. When we choose objects from objects, we are not choosing objects. Therefore, .
An ice cream shop offers 10 flavors of ice cream. How many ways are there to choose 3 flavors for a banana split?
Order does not matter here, so use the combination formula.Finding the Number of Subsets of a Set
We have looked only at combination problems in which we chose exactly objects. In some problems, we want to consider choosing every possible number of objects. Consider, for example, a pizza restaurant that offers 5 toppings. Any number of toppings can be ordered. How many different pizzas are possible?
To answer this question, we need to consider pizzas with any number of toppings. There is way to order a pizza with no toppings. There are ways to order a pizza with exactly one topping. If we continue this process, we get
There are 32 possible pizzas. This result is equal to .
We are presented with a sequence of choices. For each of the objects we have two choices: include it in the subset or not. So for the whole subset we have made choices, each with two options. So there are a total of possible resulting subsets, all the way from the empty subset, which we obtain when we say “no” each time, to the original set itself, which we obtain when we say “yes” each time.
Example. A restaurant offers butter, cheese, chives, and sour cream as toppings for a baked potato. How many different ways are there to order a potato?
Solution. We are looking for the number of subsets of a set with 4 objects. Substitute into the formula.
There are 16 possible ways to order a potato.
A sundae bar at a wedding has 6 toppings to choose from. Any number of toppings can be chosen. How many different sundaes are possible?
A set of 6 distinct toppings hassubsets, including the subset with no toppings.Finding the Number of Permutations of Non-Distinct Objects
We have studied permutations where all of the objects involved were distinct. What happens if some of the objects are indistinguishable? For example, suppose there is a sheet of 12 stickers. If all of the stickers were distinct, there would be ways to order the stickers. However, 4 of the stickers are identical stars, and 3 are identical moons. Because all of the objects are not distinct, many of the permutations we counted are duplicates. The general formula for this situation is as follows.
In this example, we need to divide by the number of ways to order the 4 stars and the ways to order the 3 moons to find the number of unique permutations of the stickers. There are ways to order the stars and ways to order the moons.
There are 3,326,400 ways to order the sheet of stickers.
Formula for Finding the Number of Permutations of Non-Distinct Objects. If there are elements in a set and are alike, are alike, are alike, and so on through , the number of permutations can be found by
Example. Find the number of rearrangements of the letters in the word DISTINCT.
Solution. There are 8 letters. Both I and T are repeated 2 times. Substitute , , and into the formula.
There are 10,080 arrangements.
Find the number of rearrangements of the letters in the word CARRIER.
There are 7 letters, and the letter R repeats 3 times; divideby.Key equations
| number of permutations of distinct objects taken at a time | |
|---|---|
| number of combinations of distinct objects taken at a time | |
| number of permutations of non-distinct objects |
Key concepts
- If one event can occur in ways and a second event with no common outcomes can occur in ways, then the first or second event can occur in ways.
- If one event can occur in ways and a second event can occur in ways after the first event has occurred, then the two events can occur in ways.
- A permutation is an ordering of objects.
- If we have a set of objects and we want to choose objects from the set in order, we write .
- Permutation problems can be solved using the Multiplication Principle or the formula for .
- A selection of objects where the order does not matter is a combination.
- Given distinct objects, the number of ways to select objects from the set is , and can be found using a formula.
- A set containing distinct objects has subsets.
- A permutation of non-distinct objects, where are alike, are alike, and so on through , is found by dividing by .
Practice
Solve counting problems using the Addition Principle
Two separate events are joined by the word “or” when counting their combined outcomes. Which counting principle applies?
The word “or” signals that the events’ outcome counts should be combined, not multiplied.Let the set. How many ways are there to choose a positive number or an odd number from?
Count the positive numbers, count the odd numbers, and add — no number inis both positive and odd.How many ways are there to pick a paint color from 5 shades of green, 4 shades of blue, or 7 shades of yellow?
The three color groups share no shade, so add the three counts.Solve counting problems using the Multiplication Principle
How many outcomes are possible from tossing a coin and rolling a 6-sided die?
Multiply the number of coin outcomes by the number of die outcomes.How many ways are there to construct a string of 3 digits if digits can be repeated?
There are 10 choices for each of the 3 positions; multiply.A wholesale T-shirt company offers sizes small, medium, large, and extra-large in organic or non-organic cotton and colors white, black, gray, blue, and red. How many different T-shirts are there to choose from?
Multiply the number of sizes by the number of cotton types by the number of colors.Solve counting problems using permutations involving distinct objects
Evaluate.
Usewithand.Evaluate.
Usewithand.How many ways can a baseball coach arrange the order of 9 batters if there are 15 players on the team?
The batting order matters and not every player bats, so use.Solve counting problems using combinations
What is the term for an arrangement that selectsobjects from a set ofobjects when the order of theobjects is not important?
Order does not matter, which is the defining feature of one of the two named selections in this section.Evaluate.
Usewithand.A motorcycle shop has 10 choppers, 6 bobbers, and 5 café racers — different types of vintage motorcycles. How many ways can the shop choose 3 choppers, 5 bobbers, and 2 café racers for a weekend showcase?
Order does not matter within each type, so multiply.Find the number of subsets of a given set
Find the number of subsets of the set.
A set of 10 distinct objects hassubsets.Find the number of subsets of a set containing 5 distinct numbers, 4 distinct letters, and 3 distinct symbols.
Count the total number of distinct objects in the set, then raise 2 to that power.Find the number of subsets of the set of two-digit numbers between 1 and 100 that contain the digit 0.
First count how many two-digit numbers contain the digit 0 (they all end in 0), then raise 2 to that count.Solve counting problems using permutations involving non-distinct objects
Find the distinct number of arrangements of the letters in the word “academia.”
The word has 8 letters with the letter a repeated 3 times; divideby.Find the distinct number of arrangements of the symbols in the string #,#,#,@,@,$,$,$,%,%,%,%.
There are 12 symbols with # repeated 3 times, @ repeated 2 times, $ repeated 3 times, and % repeated 4 times; divideby the product of those factorials.Suni bought 20 plants to arrange along the border of her garden. How many distinct arrangements can she make if the plants are comprised of 6 tulips, 6 roses, and 8 daisies?
Dividebyto remove the duplicate orderings within each identical flower type.This section is adapted from Precalculus 2e, Section 11.5: Counting Principles by Jay Abramson and OpenStax, © OpenStax, licensed under CC BY-NC-SA 4.0. Access the original for free at openstax.org. Changes: omitted a coreq-skills block the pinned CNXML prepends before the section proper (its own “Objective 1” and “Objective 2” review of the Addition and Multiplication Principles, keyed to Intermediate Algebra 12.4, complete with its own worked example and two “Practice Makes Perfect” exercise sets) — confirmed against the rendered PDF, page 1137 (true PDF index 1147), where the previous section’s last Real-World Applications exercise (11.4, exercise 62) runs directly into the “11.5 Counting Principles” heading with no corequisite-skills material between them; the same prepended-block pattern is already logged in this book’s errata for other chapter-11 modules and this section joins that list. Omitted the source’s Figure 1 (a photograph-style illustration of 3 tablets plus 5 phones equaling 8 total device options): the figure is purely decorative — the count it illustrates is already fully stated in the surrounding prose () — so it is not recreated, per this book’s convention of omitting decorative photographs. Recreated the source’s Figure 2 (the tree diagram of the 12 appetizer/entrée/dessert dinner combinations) as two accessible spec-first figures, one for the Soup branch and one for the Salad branch, each drawn with the figure engine’s segment and text primitives (segments routed behind the node labels via gapTexts) rather than as a single wide diagram, to keep each figure under the composite-width guidance for this chapter; the row category labels (“Appetizers” / “Entrées” / “Desserts”) printed beside the source’s tree are omitted since the branch structure itself (Soup/Salad → Chicken/Fish/Steak → Cake/Pudding) carries the same information. Every informal “photograph of typeset arithmetic” image the source uses inside worked-example solutions (the addition/multiplication diagrams with underlined option counts, the factorial products, and so on) is transcribed as ordinary KaTeX rather than recreated as a figure, since each is a plain arithmetic statement with no diagrammatic content of its own. Kept the “Media” callout’s introductory sentence but omitted its two external video links, matching house precedent elsewhere in this book. Both Try Its following the multiplication-principle-formula example (the actor line-up questions) and the single Try It following the combinations example (the ice cream banana split) are kept exactly as the source poses them. Every count in this section is a plain-number answer with no answerForm token, since \binom{n}{k}, C(n,r), P(n,r), and {}_nC_r all parse as invalid or grade incorrect against their own value on the pinned grading engine (confirmed by replay), so printing or in a question is never itself a retype hazard; a learner who instead types the equivalent factorial quotient (e.g. \frac{5!}{2!3!}) still grades correct, which is expected and fine. The two “which term applies” Verbal exercises (adapted from the source’s own explanatory exercises on distinguishing the Addition Principle from the Multiplication Principle, and on naming the unordered-selection arrangement) are recast as multiplechoice items over the source’s own explanations, since a free-form justification cannot be graded as a math expression. Eighteen selected end-of-section exercises (16 numeric fill-ins and 2 explanatory items recast as multiple choice) were adapted into interactive Practice components, one group per objective; the section’s ten in-page Try Its are additionally kept as the source poses them, one component per Try It. Every retained answer — the 18 Practice items and the 10 Try Its alike — was independently re-derived, including by running the arithmetic in Node with exact (BigInt) factorials, rather than read off the source key.