Pigeon hole principle

  • in any selection of numbers from , there exist two which are coprime
  • in any selection of numbers from , there exist two such that one divides the other.

More general formulation of PHP: colors, pigeons. The minimum value of such that there exist monochromatic pigeons is .

Example 1.

Given two disks, one smaller than the other. Each disk is divided into 200 congruent sectors. In the larger disk 100 sectors are chosen arbitrarily and painted red; the other 100 sectors are painted blue. In the smaller disk each sector is painted either red or blue with no stipulation on the number of red and blue sectors. The smaller disk is placed on the larger disk so that the centers and sectors coincide. Show that it is possible to align the two disks so that the number of sectors of the smaller disk whose color matches the corresponding sector of the larger disk is at least 100.

Let a single match between a sector on the smaller disk and a sector on the larger disk for a given alignment be a pigeon. If the smaller disk has red sectors and blue sectors, then the total number of pigeons will be . There are a total of 200 alignments, which correspond to holes. Thus, there is at least one alignment with at least matches.


Erdos Szekeres problem

Given any list of real numbers , there exists an increasing subsequence of length or a decreasing subsequence of length .

Proof 1
For each let be the length of the longest increasing subsequence ending at .
Suppose for all . Then, there must exist
such that . (the ‘s represent colors here). These must form a decreasing sequence.

Proof 2
Assume that the longest upseq , and length of longest downseq . For all we get a pair . matrix, vanilla PHP, easy contradiction.

Proof 3
Algorithmic proof, also using matrices.

Proof 4
Using dilworth’s theorem. Construct poset such that upsequences correspond to chains, and downsequences correspond to antichains.
Poset: .
if and .


Dilworth’s theorem

Size of the largest antichain(may not be unique) = number of chains required to cover the poset.


Ramsey theory

Example, in any set of 6 people, there are either 3 people who mutually know each other or 3 people who don’t mutually know each other.
6 vertex complete graph. edge is red if know, blue if not not know. Total of 15 edges. For any arbitrary coloring of these edges, we have to show that either there is a red triangle or a blue triangle.

Choose any one vertex; call it P. There are five edges leaving P. They are each coloured red or blue. The pigeonhole principle says that at least three of them must be of the same colour; for if there are less than three of one colour, say red, then there are at least three that are blue.

Let A, B, C be the other ends of these three edges, all of the same colour, say blue. If any one of AB, BC, CA is blue, then that edge together with the two edges from P to the edge’s endpoints forms a blue triangle. If none of AB, BC, CA is blue, then all three edges are red and we have a red triangle, namely, ABC.

Example: Consider a 9 vertex graph and 2-color all edges. Either there exists a red complete graph on 3 vertices or a blue complete graph on 4 vertices.

Geometric application: for all there exists such that given points on the plane (no 3 collinear) there exists a convex gon.