CSCE 222 Lecture 21

From Notes
Jump to navigation Jump to search

« previous | Monday, March 28, 2011 | next »


Permutations

Ordered arrangement of r elements is called an r-permuation.

P(n,r)=n!(n−r)! is the number of r-permutations on a set of n elements.


Combinations

An unordered selection of r elements is called an r-combination (a subset with r elements).

C(n,r)=(nr)=P(n,r)r!=n!r!(n−r)! is the number of r-combinations on a set of n elements.

Lemma

(nr)=(nn−r)

Proof. n!r!(n−r)!=n!(n−r)!(n−(n−r))!

Example

How may 5-card poker hands can be dealt from a deck of 52 cards (notice that order doesn't matter here since one can rearrange the cards in any fashion).

(525)=52!5!(52−5)!=2,598,960


Binomial Theorem

Let x and y be variables and n be a nonnegative integer.

(x+y)n=∑k=0n(nk)xkyn−k

Proof. The terms of the product (x+y)(x+y)…(x+y)⏟n are of the form xn−jyj (i.e. the two exponents sum to n).

Therefore, if we choose

j

terms

y

from the expanded product above, there are

n−j x

's. There are

(nj)

ways to select the

y

's, so the coefficient of

xn−jyj

is

(nj)

.

Q.E.D.


Corollary 1

∑k=0n(nk)=2n

Proof. Substitute

x=y=1

into the Binomial Theorem, then

(1+1)n=∑k=0n(nk)1n−k1n=2n
Q.E.D.


Corollary 2

∑k=0n(−1)k(nk)=0

Proof.

0=0n=(−1+1)n=∑k=0n(nk)(−1)k1n−k

.

Q.E.D.


Pascal's Triangle

For any row of Pascal's Triangle, let n,k>0 and n≥k:

(n+1k)=(nk−1)+(nk)

Proof. Let T be a set with n+1 elements. Let a∈T be a fixed element S=T−{a}. There are (n+1k) subsets of cardinality k in T. The subsets either do or do not contain a. There are (nk) subsets of S (i.e. subsets of T that do not contain a). The number of subsets of T that do contain a correspond to the (nk−1) subsets of S with a added. Therefore the proposition holds true.