CSCE 235

Handout 15: Combinatorics

Assigned March 12, 2003 

 

PERMUTATIONS

ORDER IS IMPORTANT, OBJECTS ARE DISTINCT

 

Definition:  A permutation of a set of distinct symbols is an arrangement of them in a line in some order.  For natural numbers n and r, with , an r-permutation of n symbols is permutation of r of them, that is, an arrangement of r of the symbols in a line in some order.

 

Definition:  For integers n and r, , , the symbol  is defined by  and

 

 

Given natural numbers n and r, with , the number of ways to place r marbles of different colors into n numbered boxes, at most one marble to a box, is

 

The number of permutations of n symbols is n!.  The number of r-permutations of n symbols is .  It is also convenient to decree , the unique 0-permutation being the empty permutation.

 

COMBINATIONS

ORDER IS NOT IMPORTANT, OBJECTS ARE NOT DISTINCT, ONE PER BOX

 

Definition:  A combination of a set of objects is a subset of them.  A subset of r objects is called an r-combination or a combination of the objects taken r at a time.  For integers n and r, , , the binomial coefficient  (read “n choose r”) is defined by

 

For integers n and r, , , the number of ways to choose r objects from n objects is .  The number of r-combinations of n objects is .

 

REPETITIONS

ORDER IS NOT IMPORTANT, OBJECTS ARE NOT DISTINCT, ANY PER BOX

 

The number of ways to put r identical marbles into n boxes is .

DERANGEMENTS

 

Definition:  A derangement of n distinct symbols which have some natural order is a permutation in which no symbol is in its correct position.  The number of derangement of n symbols is denoted .  The number of derangements of  ordered symbols is

 

.

 

THE BINOMIAL THEOREM

 

For any a and b and any natural number n,

 

.

 

This can be proved by induction using the following recursion relation:

 

  for .

 

 

RULES OF THUMB

 

Combinatorial Symbols

Uses

n!

* Number of permutations of n distinct symbols

* Number of ways to put r different colored marbles into n numbered boxes (order is important), at most one to a box

* Number of permutations of n distinct symbols used r at a time

* Number of ways to put r identical marbles into n boxes (order is not important), at most one to a box

* Number of combinations of n distinct symbols used r at a time

* Number of ways to choose r objects from n

* Number of ways to put r identical marbles into n boxes (order is not important), any number in a box

* Combinations with repetition: the number of r-combinations from a set with n elements when repetition of elements is allowed

* Number of ways to put r distinct marbles into into n boxes (order is not important), any number in a box 

* Permutations with repetition:  the number of r-permutations of a set of n objects with repetition allowed

 

Based on (Rosen 2003), (Goodaire and Parmenter 2002), and (Ross and Wright 1988).