ΘρϵηΠατπ

You can add to get to any Number
Let a,b∈ℤ, then there exists some k∈ℤ such that a+k=b
If we want the equation to hold true, we require some k∈ℤ such that k=b−a, since the integers are closed under subtraction, this value works as verfied by the fact that a+(b−a)=b
Numbers from Zero to K
Let k∈ℕ0 and define the set Xk:={x∈ℕ0:0≤x≤k}, then |Xk|=k+1

We prove the claim by induction, for the base case if k=0, then Xk={0} thus |Xk|=1=0+1=k+1 as needed.

Let n∈ℕ1, and assume the claim holds for this value, now we want to prove it holds true for n+1. We can see that X(n+1)={x∈ℕ0:0≤x≤n+1}=Xn∪{n+1}, thus |X(n+1)|=|Xn|+1=n+1 as needed.

The Number of Integers between Two Integers Inclusive
Let a,b∈ℤ such that a≤b , then |{x∈ℤ:a≤x≤b}|=b−a+1

We know that there is some k∈ℤ such that b=a+k, therefore we're looking at the set {x∈ℤ:a≤x≤a+k}, this set is in clear bijection with the set {x∈ℤ:0≤x≤k} through the function f(x)=x−a, therefore our original set has k+1, elements. Moreover k=b−a which completes the proof.

Pigeon Hole Principle
Suppose that f:X→Y is between two finite sets and that |X|>|Y|, then there exists some y∈Y and a≠b∈X such that f(a)=f(b)=y
Catalan Numbers
Let n∈ℕ0, then the number of lattice paths from (0,0) to (n,n) which never go above then line y=x is said to be the n-th Catalan Number
Formula For the n-th Catalan Number
C(n)=1n+1(2nn)
Bracket String
A bracket string is a finite tuple (a1,…ak) such that ai∈{(,)}
For example "())))(" is a bracket string.
Valid Bracket String
A bracket string (a1,…,ak) is said to be valid by considering the mapping f:{(,)}→{−1,1} such that for any j∈[1,…k] ∑i=1jf(ai)≤0 and ∑i=1kf(ai)=0
Bijection Between Valid Bracket Strings and Lattice Paths
For every valid bracket string involving n pairs of brackets, this corresponds to exactly one lattice path from (0,0) to (n,n) which never crosses the diagonal.
Consider the construction of a lattice path l from a valid bracket string
  • If ai=( then li=R
  • If ai=) then li=U
We can prove that this is a lattice path not crossing the diagonal by the definition of valid bracket string.
Number of Valid Bracketings is Equal to the n-th Catalan Number
The number of distinct arrangement of n pairs of left-right parenthesis which close is equal to C(n)
This is true because we constructed a bijection valid bracket arrangments and lattice paths, the latter of which we know has size equal to C(n) as needed.
Counting Stars
Let S be a nonempty set, and ∗ a binary operation on S, called a star. If ∗ is not known to be associative, the expression "the star of a,b,c " (for some a,b,c∈S ) is ambiguous. It could have one of 12 distinct interpretations: (a∗b)∗ca∗(b∗c)(a∗c)∗ba∗(c∗b)(b∗a)∗cb∗(a∗c)(b∗c)∗ab∗(c∗a)(c∗a)∗bc∗(a∗b)(c∗b)∗ac∗(b∗a). For every n∈ℤ+, let M(n) denote the number of distinct interpretations of the expression "the star of a1,a2,…,an " (where a1,a2,…,an are arbitrary elements in S ). Show that M(n)=(2(n−1))!(n−1)!
One can count M(n) by first fixing a valid bracket arrangement and then permuting elements with that valid bracket arrangement, moreover note that the star of a1,…an contains n−2 bracket pairs.