Académique Documents
Professionnel Documents
Culture Documents
Combinations
3. Factorial
Examples
Special Cases
4. Permutations
Permutations are the different arrangements of a given number of things by
taking some or all at a time.
Examples
All permutations (or arrangements) that can be formed with the letters a, b, c
by taking three at a time are (abc, acb, bac, bca, cab, cba)
All permutations (or arrangements) that can be formed with the letters a, b, c
by taking two at a time are (ab, ac, ba, bc, ca, cb)
5. Combinations
Each of the different groups or selections formed by taking some or all of a
number of objects is called a combination.
1
Examples
Suppose we want to select three out of three girls P, Q, R. Then, only possible
combination is PQR
Consider a situation where we need to find out the total number of possible
samples of two objects which can be taken from three objects P, Q, R. To
understand if the question is related to permutation or combination, we need
to find out if the order is important or not.
Hence,
If the order is important, problem will be related to permutations.
If the order is not important, problem will be related to combinations.
2
pq and qp are two different permutations, but they represent the same
combination.
7. Repetition
If repetition is allowed, the same object can be taken more than once to make
a sample. i.e., PP, QQ, RR can also be considered as possible samples.
Special Cases
nP0 = 1
nPr = 0 for r>nr>n
nPr
is also denoted by P(n,r). nPr has importance outside combinatorics as well
where it is known as the falling factorial and denoted by (n)r or nr
Examples
8 P2 = 8 7 = 56
5P4= 5 4 3 2 = 120
3
9. Number of permutations of n distinct things taking all at a time
ere 0rn0rn
Special Cases
nC0 = 1
nCr = 0 for r>nr>n
nCr is also denoted by C(n,r). nCr occurs in many other mathematical contexts
as well where it is known as binomial coefficient and denoted by (nr)(nr)
Examples
8C 2 = 87218721 = 28
5C4= 5432432154324321 = 5
4
Permutations
Number of ways in which nn things can be arranged taking them all at a time,
when p1p1 of the things are exactly alike of 11st type, p2p2 of them are exactly
alike of a 22nd type ... prpr of them are exactly alike of rrth type and the rest all
are distinct is
n!p1! p2! pr!n!p1! p2! pr!
5
Permutations under Restrictions
Case 1: When s particular things are always to be included
Number of permutations of n distinct things taking r at a time, when s
particular things are always to be included in each arrangement, is
(n-s)C(r-s) r!
Alternative Form
Some text books give the formula as (n-s)P(r-s) rPs which is same as (n-s)C(r-s)
r!
(n-s)C(r-s)
r! =(ns)!r![ns(rs)]!(rs)!=(ns)!r![ns(rs)]!(rs)! =(ns)!r!(nr)!(rs
)!=(ns)!r!(nr)!(rs)!
(n-s)P(r-
As you can see, both these formulas are indeed the same.
Alternative Form
As we have seen for case 1, the same formula can also be expressed as (n-1)P(r-
1) r
6
Case 3: When s particular things are never included
7
n! - (n m + 1)! m!
8
Combinations
Number of combinations of n distinct objects taking r at a time when each
object may be repeated any number of times
= (n+r-1)Cr
Number of ways in which one or more objects can be selected from n distinct
objects (i.e., we can select 1 or 2 or 3 or or n objects at a time)
= nC1 + nC2 + ... + nCn = 2n - 1
Number of ways in which one or more objects can be selected out of S1 alike
objects of one kind, S2 alike objects of second kind and S3 alike objects of third
kind
= (S1 + 1)(S2 + 1)(S3 + 1) - 1
Number of ways in which one or more objects can be selected out of S1 alike
objects of one kind, S2 alike objects of second kind , S3 alike objects of third
kind and so on ... Sn alike objects of nth kind
= (S1 + 1) (S2 + 1)(S3 + 1)...(Sn + 1) - 1
Number of ways in which one or more objects can be selected out of S1 alike
objects of one kind, S2 alike objects of second kind and rest p different objects
= (S1 + 1)(S2 + 1)2p - 1
Number of ways in which one or more objects can be selected out of S1 alike
objects of one kind, S2 alike objects of second kind and so on ... Sn alike objects
of nth kind and rest p different objects
= (S1 + 1) (S2 + 1) ... (Sn + 1) 2p - 1
9
Combinations under Restrictions
Case 1: When s particular things are always to be included
Case 2: r = (n-m).
10
As per the formula, ans = 4C2 - 2C0 = 6 - 1 = 5
This is correct. These 5 combinations are (A,C) (A,D) (B,C) (B,D) (C,D)
This is correct. These 10 combinations are (A,B), (A,C), (A,D), (A,E), (B,C),
(B,D), (B,E), (C,D), (C,E), (D,E)
This is correct. These 5 combinations are (A,C), (A,D), (A,E), (B,C), (B,D),
(B,E), (C,D), (C,E), (D,E),
This is correct. These 15 combinations are (A,B), (A,C), (A,D), (A,E), (A,F),
(B,C), (B,D), (B,E), (B,F), (C,D), (C,E), (C,F), (D,E), (D,F), (E,F)
11
Geometrical Figures - Permutations and Combinations
In this chapter, we are dealing with formulas related to geometrical figures
using the principles of permutations and combinations.
Suppose there are n points in a plane out of which no three points are collinear.
Number of triangles that can be formed by joining these n points
= nC3
Suppose there are n points in a plane out of which m points are collinear.
Number of straight lines that can be formed by joining these n points
= nC2 - mC2 + 1
Suppose there are n points in a plane out of which no points are collinear.
Number of straight lines that can be formed by joining these n points
= nC2
12
Number of diagonals that can be formed by joining the vertices of a polygon of
n sides
= n(n3)2
If all possible nn digit numbers using nn distinct non-zero digits are formed,
sum of all the numbers so formed
=(n1)!=(n1)! (sum of the nn digits) (111 ... nn times)
Number of handshakes
Suppose there are nn persons present in a party and every person shakes hand
with every other person. Then, total number of handshakes
= nC2=n(n1)2=n(n1)2
Derangements
n!(111!+12!13!++(1)n1n!)n!(111!+12!13!++(1)n1n!) =n!nr=0(1)r1r!
13
Useful Relations - Permutations and Combinations
n! = n.(n-1)!
nCr = nPrr!nPrr!
nPn = n!
nP0 =1
nP1 =n
nPn = nPn - 1
nPr = n(n-1Pr-1)
nCr = nC(n - r)
Example
8C6 = 8C2 =8721=28=8721=28
nCn =1
nC0 =1
nCr-1 + nCr = (n+1)Cr (Pascal's Law)
nCrnCr-1=n-r+1rnCrnCr-1=n-r+1r
Example
4C0 + 4C1 + 4C2 + 4C3+ 4C4 =24=16=24=16
14
Distributing Balls into Boxes
Here, we are counting the number of ways in which k balls can be distributed
into n boxes under various conditions.
This is an area which many students choose to ignore. However these concepts
will help us in solving many advanced problems in permutations and
combinations.
The table below explains the number of ways in which k balls can be
distributed into n boxes under various conditions. All the below mentioned
cases are derived under the assumption that the order in which the balls are
placed into the boxes is not important. (i.e., if a box has many balls, the order
of the balls inside the box is not important).
Distinct Distinct nk n
Pk S(k,n) n! n
Pn = n! if k = n
0 if k n
(formula 1) (formula 2) (formula 3) (formula 4)
(more info)
(k+n-1) n (k-1)
Identical Distinct C(n-1) Ck C(n-1) 1 if k = n
15
0 if k n
(formula 5) (formula 6) (formula 7) (formula 8)
Special Cases
S(0,0) = 1
S(k,0) = 0 for k 1
S(k,n) = 0 for k < n
Formula for P(k,n) is much harder than that of S(k, n). The following
examples will explain how we can find the value of P(k,n).
16
Hence the number of partitions of 6 into 3 parts = 3
=> P(6,3) = 3
Special Cases
P(0, 0) = P(k, k) = P(k, k-1) = P(k, 1) = 1
17
Counting non-negative integral solutionsNumber of non-negative
integral solutions of equation x1+x2++xn=kx1+x2++xn=k
=(k+n1n1)=(k+n1n1) = (k+n-1)C(n-1)
Counting positive integral solutionsNumber of positive integral
solutions of equation x1+x2++xn=kx1+x2++xn=k
=(k1n1)=(k1n1) = (k-1)C(n-1)
Example 1: Find number of non-negative integral solutions of the equation
x1+x2+x3+x4=7x1+x2+x3+x4=7
Solution 1
Using the formula, required number of solutions
= (k-1)C(n-1) = (15-1)C(3-1) = 14C2 = 91
Solution 2
Give one to x1x1, one to x2x2 and one to x3x3.
Remaining quantity is 15-3=12 which is to be distributed to x1,x2x1,x2 and x3x3
Therefore, required number of solutions
= number of non-negative integral solutions of
x1+x2+x3=12x1+x2+x3=12
= (k+n-1)C(n-1) = (12+3-1)C(3-1) = 14C2 = 91
18
Example 3: A lift starts at the basement with 10 people (6 men and 4 women,
excluding the operator) and all get out by the time lift reaches 5th floor. Find
the number of ways in which the operator could have perceived the people
leaving the lift if all people look alike to the operator?
19
1. Division and Distribution of Distinct Objects
Case 1
Case 2
=n! r!a1! a2! a3! ... ar!=n! r!a1! a2! a3! ... ar!
Case 3
=(mn)!(m!)n n!=(mn)!(m!)n n!
Case 4
20
=(mn)!(m!)n=(mn)!(m!)n
= (n+r-1)C(r-1)
Case 2
= (n-1)C(r-1)
21