Discrete Mathematics: Ay Seg Ul Gen Cata Yayımlı H. Turgut Uyar
Discrete Mathematics: Ay Seg Ul Gen Cata Yayımlı H. Turgut Uyar
Counting
2013-2016
License
c 2013-2016 A. Yayımlı, T. Uyar
You are free to:
Share – copy and redistribute the material in any medium or format
Adapt – remix, transform, and build upon the material
Under the following terms:
Attribution – You must give appropriate credit, provide a link to the license,
and indicate if changes were made.
NonCommercial – You may not use the material for commercial purposes.
ShareAlike – If you remix, transform, or build upon the material, you must
distribute your contributions under the same license as the original.
For more information:
https://creativecommons.org/licenses/by-nc-sa/4.0/
Read the full license:
https://creativecommons.org/licenses/by-nc-sa/4.0/legalcode
Topics
1 Combinatorics
Introduction
Basic Principles
2 Permutations
Introduction
Circular Arrangements
3 Combinations
Introduction
With Repetition
Topics
1 Combinatorics
Introduction
Basic Principles
2 Permutations
Introduction
Circular Arrangements
3 Combinations
Introduction
With Repetition
Combinatorics
1 Combinatorics
Introduction
Basic Principles
2 Permutations
Introduction
Circular Arrangements
3 Combinations
Introduction
With Repetition
Sum Rule
repetitions allowed:
26 · 26 · 10 · 10 · 10 · 10 = 6, 760, 000
repetitions allowed:
26 · 26 · 10 · 10 · 10 · 10 = 6, 760, 000
repetitions allowed:
26 · 26 · 10 · 10 · 10 · 10 = 6, 760, 000
repetitions allowed:
26 · 26 · 10 · 10 · 10 · 10 = 6, 760, 000
1 Combinatorics
Introduction
Basic Principles
2 Permutations
Introduction
Circular Arrangements
3 Combinations
Introduction
With Repetition
Permutation
6·5·4·3·2·1
10 · 9 · 8 · 7 = 10 · 9 · 8 · 7 ·
6·5·4·3·2·1
10!
=
6!
Permutation Example
6·5·4·3·2·1
10 · 9 · 8 · 7 = 10 · 9 · 8 · 7 ·
6·5·4·3·2·1
10!
=
6!
Permutations
n distinct objects
number of permutations of size r (where 1 ≤ r ≤ n):
P(n, r ) = n · (n − 1) · (n − 2) · · · (n − r + 1)
n!
=
(n − r )!
n distinct objects
number of permutations of size r (where 1 ≤ r ≤ n):
P(n, r ) = n · (n − 1) · (n − 2) · · · (n − r + 1)
n!
=
(n − r )!
example
example
4!
number of arrangements: 2 = 12
Arrangements Example
4!
number of arrangements: 2 = 12
Arrangements Example
n objects
n1 indistinguishable objects of type1
n2 indistinguishable objects of type2
...
nr indistinguishable objects of typer
n1 + n2 + ... + nr = n
n objects
n1 indistinguishable objects of type1
n2 indistinguishable objects of type2
...
nr indistinguishable objects of typer
n1 + n2 + ... + nr = n
1 Combinatorics
Introduction
Basic Principles
2 Permutations
Introduction
Circular Arrangements
3 Combinations
Introduction
With Repetition
Circular Arrangements Example
1 Combinatorics
Introduction
Basic Principles
2 Permutations
Introduction
Circular Arrangements
3 Combinations
Introduction
With Repetition
Combination
52!
52 · 51 · 50 = = P(52, 3) = 132, 600
49!
Combination Example
52!
52 · 51 · 50 = = P(52, 3) = 132, 600
49!
Combination Example
n distinct objects
each combination of r objects: r ! permutations of size r
n distinct objects
each combination of r objects: r ! permutations of size r
number of combinations:
n!
C (n, r ) =
r ! · (n − r )!
note that:
C (n, 0) = 1 = C (n, n)
C (n, 1) = n = C (n, n − 1)
Number of Combinations
number of combinations:
n!
C (n, r ) =
r ! · (n − r )!
note that:
C (n, 0) = 1 = C (n, n)
C (n, 1) = n = C (n, n − 1)
Number of Combinations Example
if no restrictions: 53
9 = 4, 431, 613, 550
if two juniors and one senior are
best spikers
and must be on the team: 50 6 = 15, 890, 700
if there
has to be four juniors and five seniors:
28 25
4 5 = 1, 087, 836, 750
Number of Combinations Examples
if no restrictions: 53
9 = 4, 431, 613, 550
if two juniors and one senior are
best spikers
and must be on the team: 50 6 = 15, 890, 700
if there
has to be four juniors and five seniors:
28 25
4 5 = 1, 087, 836, 750
Number of Combinations Examples
if no restrictions: 53
9 = 4, 431, 613, 550
if two juniors and one senior are
best spikers
and must be on the team: 50 6 = 15, 890, 700
if there
has to be four juniors and five seniors:
28 25
4 5 = 1, 087, 836, 750
Number of Combinations Examples
if no restrictions: 53
9 = 4, 431, 613, 550
if two juniors and one senior are
best spikers
and must be on the team: 50 6 = 15, 890, 700
if there
has to be four juniors and five seniors:
28 25
4 5 = 1, 087, 836, 750
Binomial Theorem
Theorem
if x and y are variables and n is a positive integer, then:
n n 0 n n 1 n−1 n 2 n−2
(x + y ) = x y + x y + x y + ···
0 1 2
n n n 0
+ x n−1 y 1 + x y
n−1 n
n
X n k n−k
= x y
k
k=0
n
k : binomial coefficient
Binomial Theorem Examples
Theorem
For positive integers n, t, the coefficient of x1n1 x2n2 x3n3 · · · xtnt
in the expansion of (x1 + x2 + x3 + · · · + xt )n is
n!
n1 ! · n2 ! · n3 ! · · · nt !
where each ni is an integer with 0 ≤ ni ≤ n, for all 1 ≤ i ≤ t, and
n1 + n2 + n3 + ... + nt = n.
Multinomial Theorem Examples
1 Combinatorics
Introduction
Basic Principles
2 Permutations
Introduction
Circular Arrangements
3 Combinations
Introduction
With Repetition
Combinations with Repetition Example
c c h h t t f x x | x x | x x | x
c c c c h t f x x x x | x | x | x
c c c c c c f x x x x x x | | | x
h t t f f f f | x | x x | x x x x
t t t t t t t | | x x x x x x x |
f f f f f f f | | | x x x x x x x
C (6, 3) = 20 ways
Number of Combinations with Repetition Example
C (6, 3) = 20 ways
Number of Combinations with Repetition Example
C (6, 3) = 20 ways
Number of Combinations with Repetition Example
C (9, 6) = 84 ways
C (9, 6) = 84 ways
C (9, 6) = 84 ways