MATH 302 Lecture 19

From Notes
Jump to navigation Jump to search

« previous | Monday, November 7, 2011 | next »


Pigeonhole Principle

Find what the pigeons and the pigeonholes are.

Pigeonholes should be such that there are more pigeons, and when two pigeons fall into the same hole, the problem is solved.

Example

show that two of any integers between 1 and 2n must be multiples of one another

pigeons: integers

pigeonholes: odd numbers between 1 and 2n (of which there are )

So if two numbers have the same greatest odd divisor, then one must be a multiple of the other.

Definition: odd divisor: , where is odd.

Example

Any sequence of distinct real numbers has an increasing (or decreasing) subsequence of length at least .

pigeons: numbers

for all we associate an ordered pair:

  • = length of longest increasing sequence beginning with
  • = length of longest decreasing sequence beginning with

Assume contradiction: then

Let represent

By the pigeonhole principle for some , we have

2 cases:

Example

The midpoint of some pair among any three integers is also an integer.

pigeons: the three integers pigeonholes: parity (even or odd)

If x and y (members of the pair) have the same parity, then their average is also an integer


6.3 Permutations and Combinations

Permutations

"Ordered/labeled subsets": where order of elements chosen matter!

Suppose we have 30 people in a group and we want to select three positions:

Answer is

Read "permutation of n taken r at a time" Note

Combinations

Order does not matter

Read "combination of n taken r at a time" or "n choose r"