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!(nr)! 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!(nr)! is the number of r-combinations on a set of n elements.

Lemma

(nr)=(nnr)

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

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!(525)!=2,598,960


Binomial Theorem

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

(x+y)n=k=0n(nk)xkynk

Proof. The terms of the product (x+y)(x+y)(x+y)n are of the form xnjyj (i.e. the two exponents sum to n).

Therefore, if we choose

j

terms

y

from the expanded product above, there are

nj x

's. There are

(nj)

ways to select the

y

's, so the coefficient of

xnjyj

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)1nk1n=2n
Q.E.D.


Corollary 2

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

Proof.

0=0n=(1+1)n=k=0n(nk)(1)k1nk

.

Q.E.D.


Pascal's Triangle

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

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

Proof. Let T be a set with n+1 elements. Let aT 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 (nk1) subsets of S with a added. Therefore the proposition holds true.