Introduction to Combinatorics

Lecture 1

Products and Sums

The ways of choosing an element from set A and from set B is the cartesian product of the two sets.

The number of ways of choosing an element from set A or and element from B is the union of the two sets

Subsets example:
Given an n-element set S, how many subsets does S have?
To specify a subset X of S, we make a choice for each u∈Su \in S : IN if u∈Xu \in X or OUT if u\ninXu \nin X - so we choose an element from {IN, OUT} n times - we want an element is either (in or out) and the next element is in or out and so on... - |{IN, OUT}| * |{IN, OUT}| * ... * |{IN, OUT}| = 2∣S∣2^{|S|}

How many ways are there to put the elements of an n-elemented set S in order? - |S|! (if |S|=n then ways=n(n-1)(n-2)...1)

0! = 1 by convention

Partial lists:

Lecture 2

Counting Subsets

Let (nk)=n!k!⋅(n−k)!{n \choose k} = \frac{n!}{k! \cdot (n-k)!} denote the number of k-element subsets of an n-element set S. "n choose k".

Theorem 1.5: (nk)=n!k!⋅(n−k)!{n \choose k} = \frac{n!}{k! \cdot (n-k)!} for all 0≤k≤n0 \leq k \leq n

Example 1.6: (n1)+(n2)+⋯+(nn)=2n{n \choose 1} + {n \choose 2} + \cdots + {n \choose n} = 2^n

Definition 1.10: Let A, B be sets. A bijection from A to B is a function f:A→Bf : A \rightarrow B so that

Proposition 1.11: A function f:A→Bf : A \rightarrow B is a bijection if and only if ff has an inverse: a function g:B→Ag : B \rightarrow A such that

The reason we care about a bijection from A to B is because if a bijection exists between two finite sets then the bijection uniquely maps elements from one set to the other and so it follows they have the same size.

Example 1.6/7: If k,n≥1k,n \geq 1, then (nk)=(n−1k)+(n−1k−1){n \choose k} = {n-1 \choose k} + {n-1 \choose k-1}

This formula is Pascal's triangle.

Lecture 3

Multiset

An n-element multiset with t types is a t-tuple (n1,n2,⋯ ,nt)(n_1, n_2, \cdots, n_t) of nonnegative integers with n1+n2+⋯+nt=nn_1 + n_2 + \cdots + n_t = n

Theorem 1.9: The number of n-element multisets with t types is (n+t−1t−1){n + t - 1 \choose t - 1}

Are these proofs rigorous/mathematical?

How do I come up with proofs like this?

Example: Prove that ∑m=kn−1m\choostk=(nk+1)\sum_{m=k}^{n-1} {m \choost k} = {n \choose k+1} for all 0≤k<n0 \leq k < n