ΘρϵηΠατπ

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=ba, since the integers are closed under subtraction, this value works as verfied by the fact that a+(ba)=b
Numbers from Zero to K
Let k0 and define the set Xk:={x0:0xk}, 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 n1, 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)={x0:0xn+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 ab , then |{x:axb}|=ba+1

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

Pigeon Hole Principle
Suppose that f:XY is between two finite sets and that |X|>|Y|, then there exists some yY and abX such that f(a)=f(b)=y
Catalan Numbers
Let n0, 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,cS ) is ambiguous. It could have one of 12 distinct interpretations: (ab)ca(bc)(ac)ba(cb)(ba)cb(ac)(bc)ab(ca)(ca)bc(ab)(cb)ac(ba). 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(n1))!(n1)!
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 n2 bracket pairs.