Chapter Two Combinatorics
Chapter Two Combinatorics
ELEMENTARY
COMBINATORICS
BY Dwee Mar
INTRODUCTION
Example
How many ways a person walk from A to B along the line.
He just only move right and down every block.
A
B
How many dominos can we make if we use digit from 0 to
6?
How many 6-digit password can we make from all
character ‘A’-’Z’, ‘a’-’z’ and 0-9, where repeatition is
allowed
RULES OF SUM AND PRODUCT
vowels appear together? Vowels are not at the ends of the letters
In a programming language, a variable name consist of a single letter (A,
1. Ada berapa password 6 digit ATM yang terdiri dari angka 0-9?
Ada berapa cara membagikan 12 buku cerita berbeda kepada 8
anak jika tiap anak hanya mendapakan sebuah buku saja?
2. A class contains nineteen women and ten men. How many ways to
select a team consist of 4 women and 6 men?
3. In how many ways can the ten non-identical horses on a carousel
be painted so that three are brown, three are white, and four are
black? C(3,10) C(3,7) C(4,4)
4. Ada berapa cara membagikan 8 buah apel kepada 4 anak jika
a. boleh ada anak yang tidak mendapatkan apel
b. tiap anak minimal mendapatkan satu apel
6. Ada berapa cara menyusun 8 buku berbeda ke dalam rak buku
yang terdiri dari 12 ruang yang bernomor
Example
A Student has 25 different books, but space for only 10 in her bookshelf.
In how many ways he arrange the books into those spaces:
How many ways a person walk from A to B along the line. He just only
move right and down for every block.
A
How many 6-digit password can we make from all character ‘A’-’Z’, and
digits 0-9, where
repeatition is allowed -> 366
repeatition is not allowed -> P(36,6)
EXERCISES
Example:
How many ways to arrange two identical A’s, three
identical B’s and 4 Identical C’s.
Multinomial Coefficient
have no consecutive U
Sembilan kursi dalam sebuah baris akan diduduki oleh 6 orang
siswa dan 3 profesor, yaitu A, B, dan C. Ada berapa cara mengatur
tempat duduk sehingga
Setiap professor selalu berdampingan
setiap professor dapat diapit oleh 2 siswa?
Ada berapa cara menyusun huruf-huruf pada kata “MISSISIPI”, jika
Tidak ada aturan
Semua I harus berdekatan
Tidak ada S yang berturutan
Pada susunan kubus berikut, kita ingin bergerak dari dari A ke B
dengan syarat kita hanya boleh melangkah ke kanan, ke belakang
dan ke atas saja pada sepanjang rusuk-rusuk kubus. Banyaknya
rute terpendek yang bisa ditempuh adalah
The Integer Solution of an Equation
Problem
How many integer solution are there to
X1 + X2 + … + Xn = r,
with Xi 0
Solution:
State in a different problem, but identically the
same!
The number of the solution is Multiset C(n-1+r,r)
The Integer Solution of an Equation
Problem
How many integer solution are there to
X1 + X2 + … + Xn = r,
with Xi 0
Similar to
Distribute r balls into n distinct cell with any
number balls each cell
The solution is r-multiset, that is C(n-1+r, r)
The Integer Solution of an Equation
Problem
Examples:
1. How many non negatives integer solutions
are there to X1 + X2 + X3 = 6, Xi0 [C(8,6)]
2. How many non negatives integer solutions
are there to X1 + X2 + X3 6, Xi0
3. How many non negatives integer solutions
are there to 2X1 + X2 + X3 = 10, Xi0
4. How many non negatives integer solutions
are there to X1 + X2 + X3 = 10, Xi-3
Combinatorial Identities
Pascal identiy
C(n,r)=C(n-1,r-1)+C(n-1,r)
Proof
Algebra
Combinatoric argument
Combinatorial Identities
Binomial Theorem:
(1+x)n = C(n,0) +C(n,1)xn + C(n,2)x2+…+C(n,n)xn
n k nk
n
x y x y
n
k 0 k
Evaluate n
n k
2 = 3n
k 0 k