Professional Documents
Culture Documents
Counting
Counting
MATHEMATICS
May 2024
Contents
1 Counting Techniques 2
1.1 Basic Principles of Counting . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1.2 Permutation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.3 Combination . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
1
1. Counting Techniques
Counting problems are problems which require one to find the number of ways to arrange or to
select a specified number of distinct elements of a set of a particular size, where the order of
these elements matters or does not matter.
Definition 1.0.1 (Factorial). For each positive integer n, the quantity n factorial denoted by n!
is defined as the product of all the integers from 1 to n i.e n! = 1 × 2 × . . . × (n − 1) × n. By
definition, 0! = 1.
Theorem 1.1.2 (Multiplication rule). If the first event can occur in r1 ways, a second in r2 ways
and the third in r3 ways, then the three events can occur in r1 r2 r2 ways.
Generally, if there are n events and each event can occur in ri ways, then n events can occur in
r1 r2 . . . rn ways.
2
Section 1.2. Permutation. Page 3
1.2 Permutation.
Permutation involves arrangement of elements where the order matters.
n n!
Pr =
(n − r)!
n n!
Pr = n Pn = = n!
(n − n)!
2. If there are n objects of which r′ s are not distinct i.e r1 are alike of one kind, r2 are alike
of second kind, . . . ri of i kind, then total number of ordered selections of these objects is
Section 1.2. Permutation. Page 4
given by:
n n!
Pri =
r1 !r2 ! . . . ri !
(e) In this case, VWLS come together and there are 4! = 24 ways of arranging these
letters. Our set then becomes {O, E, VWLS} hence n = 3 hence there are 3! = 6
ways of arranging elements of these set. It follows from product rule that there are
24 × 6 = 144 arrangements of the letters of the word VOWELS when all consonants
come together.
(f) There are 720 − 144 = 576 arrangements.
abcde
bcdea
cdeab
deabc
eabcd
To find the number of ways in which n objects can be arranged in a circle, we arbitrarily fix the
position of one object, so that the remaining (n − 1) objects can be arranged as if they were on
a straight line. This gives the following.
Theorem 1.2.5. The number of ways in which n objects can be arranged in a circular form is
given by (n − 1)!
Example 1.2.6. At a dinner party 6 men and 6 women sit at a round table. In how many ways
can they sit if:
(a) There are no restrictions.
(b) Men and women alternate.
(c) A girl named A and a girl named B must sit together.
Solution:
(a) There are (n − 1)! = (12 − 1)! = 11! ways.
(b) First seat all 6 men in a round table (leaving one seat in between). This gives
(6 − 1)! = 5! ways of seating all 6 men in a round table. Since there are 6 girls, there
are 6! ways of seating a girl in between two men. Therefore, there are 5! × 6! ways
these people can sit around a table if men and women alternate.
(c) Seat girls A and B then seat the remaining 10 people. This gives 2! × 10! ways.
1.3 Combination
Combination is a selection of objects where order does not matter.
Section 1.3. Combination Page 7
Definition 1.3.1. The number of ways of choosing r objects from n distinct objects where the
order does not matter is given by:
n
n Pr n!
Cr = =
r! r!(n − r)!
Example 1.3.2. In how many ways can a coach choose three swimmers from among five swim-
mers?
5!
Solution: n = 5, r = 3. Hence n Cr = 5 C3 = 3!(5−2)!
= 10.