0% found this document useful (0 votes)
119 views6 pages

Chapter 2 Combinatorics: 5.1 Basic Counting Principles

The document discusses fundamental principles of counting in combinatorics, including the product rule and sum rule. The product rule states that if a procedure can be broken into separate tasks, the number of ways to do the procedure is the product of the number of ways to do each task. The sum rule states that if tasks cannot be done simultaneously, the total number of ways is the sum of the number of ways for each task. Several examples demonstrate applying these rules to problems involving arrangements, selections with/without repetition, and counting solutions to equations.

Uploaded by

CarpiceKatherine
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
Download as docx, pdf, or txt
0% found this document useful (0 votes)
119 views6 pages

Chapter 2 Combinatorics: 5.1 Basic Counting Principles

The document discusses fundamental principles of counting in combinatorics, including the product rule and sum rule. The product rule states that if a procedure can be broken into separate tasks, the number of ways to do the procedure is the product of the number of ways to do each task. The sum rule states that if tasks cannot be done simultaneously, the total number of ways is the sum of the number of ways for each task. Several examples demonstrate applying these rules to problems involving arrangements, selections with/without repetition, and counting solutions to equations.

Uploaded by

CarpiceKatherine
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1/ 6

1

Chapter 2 Combinatorics
Combinatorics as the study of arrangements of objects is an important part of discrete mathematics:

 It was studied in 17th century when combinatorial questions arose in the study of gambling.
 Enumeration, an important of combinatorics deals with the counting of objects with certain
properties to solve many different types of problems.
 Permutations and Combination are arrangements in terms of ordered or unordered arrangements of
objects of a set.
 Pigeonhole principle which states that when objects are placed in the boxes and there are more
objects than boxes, then there is a box containing at least two objects.
 Principle of Inclusion can solve many counting problems such as: finding the number of primes less
than a positive integer, counting the number of onto function from one finite set to another.
 Generating function can be used to solve many types of counting number, such as the number of ways
to select or distribute objects of different kinds, subject to a variety of constraint.
 Recurrence relations can solve counting problems by finding relations, between the terms of
sequence.

MODULE 5.0 FUNDAMENTAL PRINCIPLE OF COUNTING

In this module, basic techniques of counting will be discussed which serve as the foundation for almost all
counting techniques.

5.1 Basic Counting Principles


The basic counting principles are the product rule and the sum rule will be presented and show how can be used to
solve many different counting problems.

A. The Product Rule


The product rule applies when a procedure is made up of separate tasks.

THE PRODUCT RULE

Suppose that a procedure can be broken down into a sequence of two tasks. If there are n1 ways to do the
first task and n2 ways to do the second task after the first task has been done, then there are n1 n2ways to do
the procedure.
Example 5.1.1
a. If a woman has two blouses and three skirts, how many different outfits consisting of a blouse and a skirt can she
wear?

Solution: Let b 1 and b 2 represent the two blouses.

s1 , s 2 , and s3represent the three skirts.

By tree diagram, it can show that there are 6 possibilities.

CS 213: COMBINATORICS AND GRAPH THEORYMODULE 5.0: FUNDAMENTAL PRINCIPLE OF COUNTINGPREPARED BY: EDITHA RIVERA JORDA, Ph. D.
1ST semester, SY 2020-2021
2

s1 b1 s1

b1 s2 b 1 s2

s3 b 1 s3

s1 b 2 s1

b2 s2 b 2 s2

s3 b 2 s3

The method involves two steps. First, the woman chooses a blouse. She two choices: b 1 or

b 2. If she chooses b 1, she has three skirts to match it with: s1 , s 2 , or s3. Likewise,

If she chooses b 2 , she can match it with the three skirts: s1 , s 2 , or s3. Hence, by the

product rule there are 2 ways to choose the blouse and three ways to choose the skirts. That is,

n1 n2=2 ∙ 3=6 possibilities

b. A vehicle license plate consists of three letters followed by four digits. How many such license plates are possible?

Solution: Since there are 26 letters and 10 digits, the following are the choices for each.

Letter Letter Letter Digit Digit Digit Digit


26 26 26 10 10 10 10

Therefore, the number of possible license plate


3 4
26 ∙ 26 ∙26 ∙ 10 ∙10 ∙10 ∙ 10=26 ∙ 10

c. In how many ways can a three-question true-false be answered?

Solution: Since there are two choices for each question, then

Question 1 Question 2 Question 3


2 2 2

By Product Rule, there are 2 ∙2 ∙ 2=8different ways.

The eight possibilities are: TTT, TTF, TFT, TFF, FTF, FFT, FFF

Note that the first letter is each possibility is the answer corresponding to the first question, the second letter
corresponds to the answer to the second question and so on.

CS 213: COMBINATORICS AND GRAPH THEORYMODULE 5.0: FUNDAMENTAL PRINCIPLE OF COUNTINGPREPARED BY: EDITHA RIVERA JORDA, Ph. D.
1ST semester, SY 2020-2021
3

d. In how many different ways can four people be seated in a row?

Solution: Suppose there are four chairs in a row, and proceed to put four people in these seats.

There are four choices for the first chair. Once a person sits down in that chair, there are only three choices for
the second chair, and so on. Thus, the table illustrates in how many different ways can four people be seated in a row.

Chair 1 chair 2 Chair 3 Chair 4


4 3 2 1
Thus, there are 4 ∙3 ∙ 2∙ 1=¿ 24 different ways

e. How many ways three-letter word sequences can be formed using the letter { A , B , C } if no letter is to be repeated?

Solution: The letter e is similar to the previous example, letter d.

Suppose a child having three building blocks labelled A , B , C and put these blocks on top of each other to
make word sequences. For the first letter he has three choices, namely, A , B , C . Suppose he chooses the first to be a
B ,then for the second, he has only two choices, A or C . And for the last letter, he has only one choice. The table shows
the choices below.
First letter Second letter Third letter
3 2 1

Therefore, there are 3 ∙2 ∙ 1=6 different word sequences can be formed.

f. How many different bit strings are there of length seven.

Solution: Each of the seven bits can be chosen in two ways, since each bit is either 0 or 1.

Let b i represents the seven bits, where i=1,2 , … ,7


b1 b2 b3 b4 b5 b6 b7
2 2 2 2 2 2 2

Therefore, by product rule there are 2 ∙2 ∙ 2∙ 2∙ 2 ∙2 ∙2=27 different bit strings of length seven.

Example 5.1.2 Find the number of positive divisors of 600, inclusive of 1 and 600 itself.
Solution: Note that the number 600 has a unique factorization, namely,

600=23 × 31 × 52
Thus, it follows that a positive integer m is a divisor of 600 if and only if m is of the form

m=2a ×3 b × 5c where a , b , c ∈ Z

such that a ∈ { 0,1,2,3 } ,b ∈ { 0,1 } and c ∈ { 0,1,2 }.

Hence, by PR, the number of positive divisors of 600 is 4 ∙2 ∙ 3=24

CS 213: COMBINATORICS AND GRAPH THEORYMODULE 5.0: FUNDAMENTAL PRINCIPLE OF COUNTINGPREPARED BY: EDITHA RIVERA JORDA, Ph. D.
1ST semester, SY 2020-2021
4

B. THE SUM RULE

THE SUM RULE. If a first task can be done in n1 ways and a second task in n2
ways, and if these tasks cannot be done at the same time, then there are
n1 +n 2 ways to do one of these tasks.

Example 5.1.3
a. Suppose that either a member of the mathematics faculty or a student who is mathematics major is chosen as a
representative to a university committee. How many different choices are there for this representative if there are 37
members of the mathematics faculty and 83 mathematics majors?

Solution: n1 is the first task to choose a member of the mathematics faculty. The first task can be done in 37 ways.

n2 is the second task to choose a mathematics major. The second task can be done in 83 ways.

By the sum rule, there are

83+37=120 possible ways to pick the representative.

b. One can reach city Q from city P by sea, air, and road. Suppose there are 2 ways by the sea, 3 ways by the air and 2
ways by the road.

Solution: n1 is the first task to city Q from city P by sea. There are 2 ways.

n2 is the second task to city Q from city P by air. There are 3 ways.

n1 is the third task to city Q from city P by road. There are 2 ways.

By the sum rule, there are

2+3+2=7 the total number of ways from P to Q by sea, air or road.

c. Find the number of ordered pairs ( x , y ) of integers such that x 2+ y 2 ≤ 5.

Solution: Divide the problem into 6 disjoint cases: x 2+ y 2=0,1,2 , … ,5.

Thus, for i=0,1,2,3,4,5 , let Si= {( x , y )|x , y ∈ Z , x 2+ y 2=i }.

For i=0 , 02 +0 2=0. Hence, S0= { ( 0,0 ) }

i=1 , ( 1 )2+ ( 0 )2=1; (−1 )2 + ( 0 )2=1 ; ( 0 )2 + ( 1 )2=1 ; ( 0 )2 + ( 1 )2=1

Hence, S1= { (1,0 ) , (−1,0 ) , ( 0,1 ) ( 0 ,−1 ) }

i=2 , ( 1 )2+ ( 1 )2=2; ( 1 )2 + (−1 )2=2 ; (−1 )2+ ( 1 )2=2; (−1 )2 + (−1 )2=2

Therefore, S2= { (1,1 ) , ( 1 ,−1 ) , (−1,1 )(−1 ,−1 ) }


CS 213: COMBINATORICS AND GRAPH THEORYMODULE 5.0: FUNDAMENTAL PRINCIPLE OF COUNTINGPREPARED BY: EDITHA RIVERA JORDA, Ph. D.
1ST semester, SY 2020-2021
5

i=3 , there is no ordered pair ( x , y ) such that x 2+ y 2=3.

So, S3=∅
2 2 2 2 2 2 2 2
i=4 , ( 0 ) + ( 2 ) =4 ; ( 0 ) + (−2 ) =4 ; ( 2 ) + ( 0 ) =4 ; (−2 ) + ( 0 ) =4

Therefore, S2= { ( 0,2 ) , ( 0 ,−2 ) , ( 2,0 ) (−2,0 ) }


2 2 2 2 2 2 2 2
i=5 , ( 1 ) + ( 2 ) =5 ; (1 ) + (−2 ) =5; ( 2 ) + ( 1 ) =5 ; ( 2 ) + (−1 ) =5;

(−1 )2 + ( 2 )2 ; (−1 )2 + (−2 )2 ; (−2 )2+ ( 1 )2 ; (−2 )2 + (−1 )2


Therefore, S2= { (1,2 ) , ( 1 ,−2 ) , ( 2,1 )( 2 ,−1 ) , (−1,2 ) , (−1 ,−2 ) , (−2,1 ) , (−2 ,−1 ) }

Thus, by the sum rule

1+4 +4 +0+ 4+ 8=21 the desired number of ordered pairs.

Exercise 5.1
Surname, Name, MI. _________________________ Course & Yr._______ Module no._____ Date of Submission: ___

Direction: Please answer Exercises 5.1 and submit based on the following requirements:
 Write the answer on the blank provide for.
 Answer should be handwritten.
 Scan your answer.

1. There are 18 mathematics major and 325 computer science majors at a college

a. How many ways are there to pick representatives, so that one is a mathematics major
and the other is a computer science major?
b. How many ways are there to pick one representative who is either a mathematics
major or a computer science major?
2. A multiple-choice test contains ten questions. There are four possible answers for each question.

a. How many ways can a student answer the questions on the test if every question is
answered?
b. How many ways can a student answer the questions on the test if the student can
leave answers blank?

3. Find the number of ways to choose a pair { a , b } of distinct numbers from the set { 1,2 , … ,50 } such that

a. |a−b|=5

b. |a−b|≤ 5
4. In each of the following, find the number of positive divisors of n (inclusive of n ) which are multiples of 3.

a. n=210

CS 213: COMBINATORICS AND GRAPH THEORYMODULE 5.0: FUNDAMENTAL PRINCIPLE OF COUNTINGPREPARED BY: EDITHA RIVERA JORDA, Ph. D.
1ST semester, SY 2020-2021
6

b. n=630

5. How many bit strings of length ten begin and end with a 1?

CS 213: COMBINATORICS AND GRAPH THEORYMODULE 5.0: FUNDAMENTAL PRINCIPLE OF COUNTINGPREPARED BY: EDITHA RIVERA JORDA, Ph. D.
1ST semester, SY 2020-2021

You might also like