Skip to main content
Library homepage
 

Text Color

Text Size

 

Margin Size

 

Font Type

Enable Dyslexic Font
Mathematics LibreTexts

8.1: The Fundamental Counting Principle

( \newcommand{\kernel}{\mathrm{null}\,}\)

A tree diagram is a useful tool for visualizing systematic counting.

Example 1

Let’s say that a person walks into a restaurant for a three course dinner. There are four different salads, three different entrees, and two different desserts to choose from. Assuming the person wants to eat a salad, an entrée and a desert, how many different meals are possible?

Solution

imageedit_1_8071501825.png
Figure 8.1.1: Tree Diagram for Three-Course Dinner

Looking at the tree diagram we can see that the total number of meals is 24. The first meal is salad 1, entrée 1, and dessert 1. The 24th meal is salad 4, entrée 3, dessert 2.

The Three Course Dinner example is easier to count the possible meals by using The Fundamental Counting Principle

The Fundamental Counting Principle

If there are n1 ways to of choosing the first item, n2 ways of choosing the second item after the first item is chosen, n3 ways of choosing the third item after the first two have been chosen, and so on until there are nk ways of choosing the last item after the earlier choices, then the total number of choices overall is given by

n1×n2×n3×n4×n5...×nk.

Example 1

Let’s look at the number of ways that four people can line up. We can choose any of the four people to be first. Then there are three people who can be second and two people who can be third. At this point there is only one person left to be last. Using the multiplication principle there are

4×3×2×1=24ways

for four people to line up.

This type of calculation occurs frequently in counting problems so we have some notation to simplify the problem.

Factorial

The factorial of n, read “n factorial” is

n!=n(n1)(n2)(n3)...(2)(1).

By this definition, 0!=1.

Example 2

5!=5×4×3×2×1=1208!=8×7×6×5×4×3×2×1=40,320

Factorials get very large very fast.

20!=2.43×1018

and

40!=8.16×1047.

70! is larger than most calculators can handle.

The fundamental counting principle may seem like a very simple idea but it is very powerful. Many complex counting problems can be solved using the fundamental counting principle.

Example 3

Some license plates in Arizona consist of three digits followed by three letters. How many license plates of this type are possible if:

  1. There are 10 digits (0, 1, 2, 3, …, 9) and 26 letters. (101010)(262626)digits=17,576,000license plates 
  2. letters can be repeated but digits cannot? (10_9_8_)(262626)letters=12,654,720license plates
  3. the first digit cannot be zero and both digits and letters can be repeated? (9_10_10_)digits(26_2626)letters=15,818,400license plates
  4. neither digits nor numbers can be repeated. (10_9_8_)digits(26_25_24_)letters=11,232,000license plates

This page titled 8.1: The Fundamental Counting Principle is shared under a CC BY-SA 4.0 license and was authored, remixed, and/or curated by Maxie Inigo, Jennifer Jameson, Kathryn Kozak, Maya Lanzetta, & Kim Sonier via source content that was edited to the style and standards of the LibreTexts platform.

Support Center

How can we help?