Counting Principle
Counting Principle
PRINCIPLE
RJA
Topics to Be Discussed:
■ Counting Rules
■ Mathematical Functions in Combinatorics
■ Permutation
■ Combination
■ Pigeonhole Principle
■ Tree Diagram
BASIC COUNTING PRINCIPLES:
■ There are two basic counting principles used throughout this chapter. The first one
involves addition and the second one multiplication.
Elaboration:
■ Sum Rule: If no two events can occur at the same time, then one of the events can
occur in:
– n1 + n2 + n3 +・ ・ ・ ways.
■ Product Rule: If the events occur one after the other, then all the events can occur in
the order indicated in:
– n ・ n ・ n ・ . . . ways.
1 2 3
Application:
– The number m of ways a student can choose one of each kind of courses is:
■ m = 3(4)(2) = 24
– The number n of ways a student can choose just one of the courses is:
■ n=3+4+2=9
Rewriting the Concept in terms of Sets:
■ Product Rule Principle: Let A × B be the Cartesian product of sets A and B. Then
n(A × B) = n(A) ・ n(B)
MATHEMATICAL FUNCTIONS:
■ We discuss two important mathematical functions frequently used in combinatorics.
– Factorial Function
– The product of the positive integers from 1 to n inclusive is denoted by n!, read “n
factorial.” Namely:
– n! = 1 ・ 2 ・ 3 ・ . . . ・ (n−2)(n−1)n = n(n−1)(n−2) ・ . . . ・ 3 ・ 2 ・ 1
– Binomial Coefficients
Binomial Coefficients and Pascal’s
Triangle
The coefficients of the successive powers of a + b can be arranged in a triangular array of numbers,
called Pascal’s triangle, as pictured in Fig. 5-1. The numbers in Pascal’s triangle have the following
interesting properties:
(i) The first and last number in each row is 1.
(ii) Every other number can be obtained by adding the two numbers appearing above it.
PERMUTATIONS
■ (i) BDCA, DCBA, and ACDB are permutations of the four letters (taken all at a time).
■ (ii) BAD, ACB, DBC are permutations of the four letters taken three at a time.
■ (iii) AD, BC, CA are permutations of the four letters taken two at a time.
Theorem in Permutation:
– In other words, find the number of “three-letter words” using only the given six letters
without repetition.
– Let us represent the general three-letter word by the following three positions:
——, ——, ——
– The first letter can be chosen in 6 ways; following this the second letter can be chosen
in 5 ways; and, finally, the third letter can be chosen in 4 ways.
– By the Product Rule there are m = 6 ・ 5 ・ 4 = 120 possible three-letter words without
repetition from the six letters. Namely, there are 120 permutations of 6 objects taken 3
at a time.
Permutations with Repetitions:
■ Frequently we want to know the number of permutations of a multiset, that is, a set
of objects some of which are alike. We will let
■ EXAMPLE 5.5 Find the number m of seven-letter words that can be formed using the
letters of the word “BENZENE.”
– We seek the number of permutations of 7 objects of which 3 are alike (the
three E’s), and 2 are alike (the two N’s).
Ordered Samples:
■ Many problems are concerned with choosing an element from a set S, say, with n
elements. When we choose one element after another, say, r times, we call the
choice an ordered sample of size r. We consider two cases.
– (1) Sampling with replacement
– (2) Sampling without replacement
Sampling with replacement
■ Here the element is replaced in the set S before the next element is chosen. Thus,
each time there are n ways to choose an element (repetitions are allowed). The
Product rule tells us that the number of such samples is:
■ Here the element is not replaced in the set S before the next element is chosen.
Thus, there is no repetition in the ordered sample. Such a sample is simply an r-
permutation. Thus the number of such samples is:
■ EXAMPLE 5.6 Three cards are chosen one after the other from a 52-card deck. Find
the number m of ways this can be done: (a) with replacement; (b) without
replacement.
– (a) Each card can be chosen in 52 ways. Thus m = 52(52)(52) = 140 608.
– Here there is no replacement. Thus the first card can be chosen in 52 ways,
the second in 51 ways, and the third in 50 ways. Therefore:
m = P(52, 3) = 52(51)(50) = 132 600
COMBINATIONS
■ Many results in combinational theory come from the following almost obvious
statement.
– In other words, to find the number n(A∪B) of elements in the union of A and B,
we add n(A) and n(B) and then we subtract n(A ∩ B); that is, we “include” n(A)
and n(B), and we “exclude” n(A ∩ B).
■ EXAMPLE 5.11 Find the number of mathematics students at a college taking at least
one of the languages French, German, and Russian, given the following data:
– 65 study French, 20 study French and German,
– 45 study German, 25 study French and Russian, 8 study all three languages.
– 42 study Russian, 15 study German and Russian,
TREE DIAGRAMS