Combinations

Overview

A k-combination of n objects is an unordered "choice" of k objects from the collection of n objects. Alternatively viewed, it is a set of k objects - ordering within a set does not matter. Combinations are derived by considering the number of k-combinatorics/permutations of n objects and discarding order, i.e. dividing by k!.

(nk)=(n)kk!=n!k!(nk)!,where k<n

Pascal's Triangle

Pascal's triangle is a visual representation of binomial coefficients. The top of the triangle looks as follows:

pascals-triangle.png

Each term is generated by adding the two terms above it, formalized via recurrence $$\binom{n}{k} = \binom{n - 1}{k} + \binom{n - 1}{k - 1}$$

Stars and Bars

The stars and bars chart refers to a graphical depiction of distributing n objects (represented as ) into k different buckets (delineated via |). An example chart looks like so:

||||

Notice there are k1 bars interspersed amongst the n stars. Thus there exist

(n+k1k1) possibilities.

Binomial Theorem

Let nZ+ and x,yR where R is some commutative ring. Then

(x+y)n=k=0n(nk)xnkyk.

In a commutative rng, the following identity, which forgoes terms x0 and y0, can be used instead:

(x+y)n=xn+yn+k=1n1(nk)xnkyk.

Freshman Exponentiation

Let p be a prime. Then the following identity holds in ring Zp:

(x+y)p=xp+yp.

Identities

Hockey stick Identity

Let n,kN such that nk. The hockey stick identity states that

i=kn(ik)=(n+1k+1)

Vandermonde's Identity

Let m,n,kN. Then Vandermonde's identity states that

(m+nk)=j=0k(mj)(nkj)

Common Examples

Bit Strings

A bit string can be used to represent subsets of some finite set. A 1 value usually corresponds to inclusion in a subset, whereas a 0 value corresponds to exclusion. Thus, given set e.g. A={1,2,3,4}, 01102 would correspond to subset {2,3}.

Bit strings also make it clear that the number of subsets with even cardinality must be equal to the number of subsets with odd cardinality. Hence,

(n0)(n1)++(1)n(nn)=0

Lattice Paths

A lattice path is one of the shorted possible paths connecting two points on a lattice, moving only horizontally and vertically. By representing each horizontal move by 1 and each vertical move by 1, we see every lattice path has a corresponding bit string.

lattice-path-example.png

In this example, the total number of lattice paths from point (0,0) to (3,2) is therefore

(52)=(53).
Powered by Forestry.md