Combinatorics theorems Flashcards
pigeonhole principle
let n∈ℕ. If at least n+1 pigeons are placed in n pigeonholes, then some pigeonhole contains at least two pigeons
pigeonhole principle - general form
let n,k∈ℕ. If at least n pigeons are placed in k pigeonholes, the some pigeonhole contains atleast ⌈n/k⌉ pigeons
axiom of extension
two sets are equal if and only if they have the same elements i.e. ∀x∈A we have x∈B and ∀x∈B we have x∈A
composition of injections
Let f:A-> Band g:B->C be functions. If f and g are both injective, the g∘f is injective
composition of surjections
Let f:A-> Band g:B->C be functions. If f and g are both surjective, the g∘f is surjective
composition of Bijections
Let f:A-> Band g:B->C be functions. If f and g are both bijective, the g∘f is bijective
injection of sets
Let X and Y be finite sets. Then |X|≤|Y| iff there exists an injection f:X->Y
pairing principle
Let X and Y be finite sets. Then |X|=|Y| iff there exists an bijection f:X->Y
sum rule
If C and D are disjoint finite sets then |C∪D| = |C|+|D|
inclusion exclusion for two sets
Suppose that A and B are finite sets. Then, |A∪B| = |A|+|B|- |A∩B|
Inclusion exclusion for three sets
Suppose that A,B and C are finite sets. Then, |A∪B∪C| = |A|+|B|+|C|-|A∩B|-|A∩C|-|B∩C|+|A∩B∩C|
general inclusion exclusion
Suppose that A₁, A₂, …,Aᵣ are finite sets. Then,
|A₁∪A₂∪…∪Aᵣ| =
1. add size of individual sets
2. subtract size of pairwise intersection
3. add three way intersections size
….
r. +- the r way intersection size
product rule for two sets
if A and B are finite sets, then |AxB| = |A||B|
product rule for r sets
for any r∈ℕ and any finite sets A₁,A₂,..,Aᵣ we have |A₁xA₂x…xAᵣ|=|A₁||A₂|…|Aᵣ|
size of power set
If A is a set with |A|=n, then |P(A)|= 2ⁿ. Equivilently a set with n elements has 2ⁿ subsets