Pertemuan 1 Kombinatorik
Pertemuan 1 Kombinatorik
Pertemuan 1 Kombinatorik
Combinatorics
6.0 INTRODUCTION
In one form or the other counting originated with the primitive man. He did not find any
problem as long as it was within the limits of his fingers. As it crossed the limits of his fingers,
he found out other devices and invented the numbers. But counting becomes laborious and
impossible even with numbers. Hence new concepts and ideas are developed which gave rise
to permutations and combinations. In discrete mathematics we frequently encounter the
problem of counting. The branch of Discrete Mathematics dealing with counting problem is
called combinatorics. The different techniques of counting problem are important in computer
science, especially in algorithm analysis and design. In this chapter we will be dealing with
two important aspects, i.e., permutation and combination. Permutation is defined as the
arrangement of elements whereas combination is defined as selection of elements.
6.3 PERMUTATION
Assume that, we have 3 digits 1, 3 and 5. Then the two digit numbers that can be formed out
of the given digits if the digits are not repeated as: 13, 15, 35, 31, 51, 53. Therefore, there are
6 possible ways of getting 2 digit numbers out of three digits. This is nothing but the
arrangement of 2 digits out of three digits. Similarly, if we make an arrangement of all the
three digits, then we have 135, 153, 351, 315, 513 and 531 as possible arrangements. The
number of different arrangement or ordering that can be made out of the given number of
objects by taking some or all at a time is called the permutation. If r-objects are arranged out
of n-distinct objects, then we call it as r-permutation.
Theorem The number of arrangements of r different objects out of n distinct objects ( r ≤ n )
is denoted by P (n, r) and is call r-permutation of n objects. It is defined as
P (n, r) = n (n 1) (n 2)
. (n r + 1)
n!
=
(n − r)!
Proof: Given that there are n distinct objects and we have to arrange r objects. This is same
as the number of ways in which r places can be filled up by n distinct objects.
st nd rd
1 2 3 rth
From the figure it is clear that any one of the n object can be put in 1st place i.e., the 1st
place can be filled up in n distinct ways. Therefore, we are left out with (n 1) objects, so the
2nd place can be filled up in (n 1) distinct ways. Since each way of filling up the first place can
be associated with each way of filling up the second place, so by multiplication principle the
first two places can be filled up in n (n 1) ways. Similarly, for the 3rd place we have left out
with (n 2) objects, so the 3rd place can be filled up by any one of these (n 2) objects.
Therefore, by multiplication principle the first three places can be filled up in n(n 1)(n 2)
ways. Proceeding in this manner the total number of ways in which r places can be filled up is
given as
P (n, r) = n(n − 1)(n − 2)...r factors
= n (n 1) (n 2)
. (n r + 1)
Combinatorics 143
6.4 COMBINATION
We have seen that permutation is an ordered arrangement of objects. However, it is observed
that order is not significant in some cases. For example, consider an examination and a
student has to answer four questions out of seven questions. In this case, a selection is to be
made irrespective of order. We call it as combination. Assume that, we have 3 objects A, B and
C. If we consider the groups of two objects without taking into account the order then the
different groups are AB, BC and CA. Therefore, the total number of groups is 3. This is nothing
but the selection of 2 objects out of three objects. The number of different selections that can
be made out of given number of objects by taking some or all of them at a time is called the
combination. In combination we do not give importance to the order of arrangement.
Combinatorics 145
Theorem The number of selections or combinations of r-different objects out of n-objects
(r ≤ n) is denoted by C (n, r) and we call it as r-combination of n-objects. This is defined as
n!
C (n, r) = .
r ! (n − r)!
n!
Proof: We know that P(n, r) = ; r≤n
(n − r)!
As discussed earlier the order of arrangement is not significant in combination. In every
combination there are r-objects that can be arranged among them in r! number of ways.
Therefore, C (n, r) combinations will lead to r! × C(n, r) number of permutations. We call it as
a permutation of r-objects out of n-objects i.e., P(n, r). Hence we get,
r! C(n, r) = P(n, r)
P (n, r)
i.e., C (n, r) =
r!
n!
= .
r ! (n − r)!
n!
C(n, n − r) =
(n − r)!(n− (n − r))!
n!
= = C(n, r)
(n − r)! r !
n! n!
= +
(r − 1)! r (n − r)! (r − 1)! (n − r)! (n − r + 1)
n! 1 1
= +
(r − 1)! (n − r )! r (n − r + 1)
n! n+1
=
(r − 1)! (n − r)! r(n − r + 1)
(n + 1)!
= = C(n + 1, r)
r ! (n − r + 1)!
This proves the Pascals identity.
k k
= x k +1 + ∑ C(k, r) x k +1 − r yr + ∑ C(k, j ) x k − j y j +1
r =1 j =0
k k +1
= x k +1 + ∑ C( k, r) x k +1 − r yr + ∑ C(k, r − 1) x k − r +1 y r ; [on taking j = r 1]
r =1 r =1
k k
= x k +1 + ∑ C( k, r) x k +1 − r yr + ∑ C(k, r − 1) x k +1− r y r + y k +1
r =1 r =1
k
= x k +1 + ∑ (C(k, r) + C(k, r − 1)) x k +1 − r y r + y k +1
r =1
k
= x k+1 + ∑ C(k + 1, r )x ( k+1) − r y r + y k+1 ; [on using Pascals identity]
r=0
k +1
= ∑ C(k + 1, r )x ( k +1) − r
yr
r=0