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 n+1 integers between 1 and 2n must be multiples of one another

pigeons: n+1 integers

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

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

Definition: odd divisor: m=2kp, where p is odd.

Example

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

pigeons: numbers a1,,an2+1

for all 1in2+1 we associate an ordered pair:

  • Ii = length of longest increasing sequence beginning with ai
  • Di = length of longest decreasing sequence beginning with ai

Assume contradiction: then 1Ii,Din

Let qi represent Ii×Di

By the pigeonhole principle for some s<t, we have Is×Ds=It×Dt

2 cases:

  1. as<at
  2. as>at

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 x+y2 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 P(30,3)=30!(303)!

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

Read "permutation of n taken r at a time" Note P(n,n)=n!

Combinations

Order does not matter

C(n,r)=P(n,r)r!=n!(nr)!r!=(nr)

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