Docsity

Materials on Combinatorics - Midterm Exam | MATH 180, Exams of Mathematics

Toggle sidebar
bg1
Midterm I Material
Addition Rule
If the set we are counting can be broken into disjoint
pieces, then the size of the set it the sum of the size
of the pieces.
S=
m
[
i=1
Si, Si∩Sj=∅if i6=j⇒ |S|=
m
X
i=1
|Si|.
Multiplication Rule
Suppose we can describe the elements in our set us-
ing a procedure with msteps, where at the ith step
we have richoices available. (Where the number
of choices is independent of our previous choices.)
Then the size of the set is r1r2· · · rm.
Probability is counting
Probability is a measurement of how likely an
outcome is to occur. If we are dealing with
finitely many possible outcomes and each outcome
is equally likely (very common assumptions!) then
the probability that a certain outcome occurs is the
ratio of the outcomes with the desired result divided
by the number of all possible outcomes.
The number of ways to arrange robjects from a set
of npossible objects is
P(n, r) = n!
(n−r)!.
The number of ways to choose robjects from a set of
npossible objects is
C(n, r) = n
r=n!
r!(n−r)!.
Given n1objects of type 1, n2objects of type 2, .. .,
nkobjects of type kand n=n1+n2+· · · +nkthen
the number of ways to arrange these objects is
n
n1n−n1
n2· · · n−n1−n2− · · · − nk−1
nk
=n!
n1!n2!· · · nk!=n
n1, n2, . . . , nk.
This also counts the number of ways to distribute n1
objects to bin 1, n2objects to bin 2, . . .,nkobjects
to bin kwhere the objects are all distinct.
Sometimes it is easier to count the complement.
The number of ways to distribute nidentical objects
into kdistinguished boxes is
n+k−1
k−1=n+k−1
n.
Binomial theorem: (x+y)n=
n
X
k=0 n
kxkyn−k.
n
k=n
n−k,n
k=n−1
k−1+n−1
k.
Identities involving binomial coefficients can be
proved in various ways. For instance by using the bino-
mial theorem; or by giving a combinatorial argument
(i.e., count some object in two different ways and set
the two methods for counting equal to each other).
n
0+n+ 1
1+· · · +n+k
k=n+k+ 1
k,
and
k
k+k+ 1
k+· · · +n
k=n+ 1
k+ 1.
Generating functions can be used to solve problems
involving combinations and arrangements. There are
two main types of generating functions we have looked
at, ordinary and exponential.
Type of generating
function form used to count
ordinary X
n≥0
anxncombinations
exponential X
n≥0
an
xn
n!arrangements
Ordinary generating functions are useful for count-
ing solutions to
n1+n2+· · · +nk=n,
where the values of niare restricted. (If there is no
restriction then the number of solutions is n+k−1
k−1.)
If ni∈Sifor each ithen the (ordinary) generating
function where the nth coefficient counts the number
of solutions when right hand side is nis given by
g(x) = X
`∈S1
x` X
`∈S2
x`· · · X
`∈Sk
x`.
Exponential generating functions are useful for
counting the number of ways to arrange n1objects
pf2

Partial preview of the text

Download Materials on Combinatorics - Midterm Exam | MATH 180 and more Exams Mathematics in PDF only on Docsity!

Midterm I Material

Addition Rule If the set we are counting can be broken into disjoint pieces, then the size of the set it the sum of the size of the pieces.

S =

⋃^ m

i=

Si, Si ∩ Sj = ∅ if i 6 = j ⇒ |S| =

∑^ m

i=

|Si|.

Multiplication Rule Suppose we can describe the elements in our set us- ing a procedure with m steps, where at the ith step we have ri choices available. (Where the number of choices is independent of our previous choices.) Then the size of the set is r 1 r 2 · · · rm.

Probability is counting Probability is a measurement of how likely an outcome is to occur. If we are dealing with finitely many possible outcomes and each outcome is equally likely (very common assumptions!) then the probability that a certain outcome occurs is the ratio of the outcomes with the desired result divided by the number of all possible outcomes.

The number of ways to arrange r objects from a set of n possible objects is

P (n, r) = n! (n − r)!

The number of ways to choose r objects from a set of n possible objects is

C(n, r) =

n r

n! r!(n − r)!

Given n 1 objects of type 1, n 2 objects of type 2,.. ., nk objects of type k and n = n 1 + n 2 + · · · + nk then the number of ways to arrange these objects is ( n n 1

n − n 1 n 2

n − n 1 − n 2 − · · · − nk− 1 nk

n! n 1 !n 2! · · · nk!

n n 1 , n 2 ,... , nk

This also counts the number of ways to distribute n 1 objects to bin 1, n 2 objects to bin 2,.. ., nk objects to bin k where the objects are all distinct.

Sometimes it is easier to count the complement.

The number of ways to distribute n identical objects into k distinguished boxes is ( n + k − 1 k − 1

n + k − 1 n

Binomial theorem: (x + y)n^ =

∑^ n

k=

n k

xkyn−k.

n k

n n − k

n k

n − 1 k − 1

n − 1 k

Identities involving binomial coefficients can be proved in various ways. For instance by using the bino- mial theorem; or by giving a combinatorial argument (i.e., count some object in two different ways and set the two methods for counting equal to each other).

( n 0

n + 1 1

n + k k

n + k + 1 k

and ( k k

k + 1 k

n k

n + 1 k + 1

Generating functions can be used to solve problems involving combinations and arrangements. There are two main types of generating functions we have looked at, ordinary and exponential.

Type of generating function form^ used to count ordinary

n≥ 0

anxn^ combinations

exponential

n≥ 0

an xn n!

arrangements

Ordinary generating functions are useful for count- ing solutions to

n 1 + n 2 + · · · + nk = n,

where the values of ni are restricted. (If there is no restriction then the number of solutions is

(n+k− 1 k− 1

If ni ∈ Si for each i then the (ordinary) generating function where the nth coefficient counts the number of solutions when right hand side is n is given by

g(x) =

`∈S 1

x`

`∈S 2

x`

`∈Sk

x`

Exponential generating functions are useful for counting the number of ways to arrange n 1 objects

of type 1, n 2 objects of type 2,.. ., nk objects of type k where n 1 + · · · + nk = n,

and the values of ni are restricted. (An example of this is counting the number of words that can be formed using some restricted set of letters. If there is no re- striction then the number of solutions is kn.) If ni ∈ Si for each i then the (exponential) generating function where the nth coefficient counts the number of solu- tions when right hand side is n is given by

g(x) =

`∈S 1

x!

`∈S 2

x!

`∈Sk

x!

Basics for ordinary generating functions:

(1 + x)n^ =

∑^ n

k=

n k

xk

(1 − xm)n^ =

∑^ n

k=

(−1)k

n k

xmk

1 − xm+ 1 − x = 1 + x + x^2 + · · · + xm

1 − x

= 1 + x + x^2 + · · · (for |x| < 1)

(1 − x)n^

k≥ 0

n − 1 + k k

xk

If f (x) =

n≥ 0

anxn^ and g(x) =

n≥ 0

bnxn

then f (x)g(x)=

n≥ 0

cnxn^ where cn=

∑^ n

k=

akbn−k.

Basics for exponential generating functions:

ex^ =

∑^ ∞

k=

xk k!

e`x^ =

∑^ ∞

k=

`k^ xk k!

ex^ + e−x 2

x^2 2!

x^4 4!

x^6 6!

ex^ − e−x 2 = x +

x^3 3!

x^5 5!

x^7 7!

k≥n

xk k! = ex^ − 1 − x −

x^2 2!

x^3 3!

xn−^1 (n − 1)!

If f (x) =

n≥ 0

an

xn n! and g(x) =

n≥ 0

bn

xn n!

then f (x)g(x)=

n≥ 0

cn xn n!

where cn=

∑^ n

k=

n k

akbn−k.

Partitions of n, denoted p(n), are the number of ways to break n up as a sum of smaller terms (the order of the terms is not important). So for instance p(4) = 5 since 4 can be partitioned as

1 + 1 + 1 + 1, 1 + 1 + 2, 1 + 3, 2 + 2, 4.

The generating function for p(n) is ∑

n≥ 0

p(n)xn^ =

k≥ 1

1 − xk^

Partitions can be represented visually as a series of rows of dots. The number of dots in each row is the size of the part and rows are arranged in weakly decreasing order. These are called Ferrer’s diagrams. The Ferrer’s diagram for the partition 4 + 3 + 1 + 1 is shown below.

The transpose of the Ferrer’s diagram takes rows to columns and columns to rows. The result is a new partition on the same number of points. For example the transpose of 4+3+1+1 is the partition 4+2+2+1. Using transposes it is easy to establish the following fact.

There is a one-to-one correspondence between the number of partitions of n into exactly m parts and the number of partitions of n into parts of size at most m with at least one part of size m.

It is easy to count partitions with parts of size at most m with at least one part of size m. In particular if we let

∣ (^) mn

∣ (^) denote the number of partitions of n into exactly m parts then we have ∑

n≥ 0

n m

∣ x

n (^) = x m (1 − x)(1 − x^2 ) · · · (1 − xm)