Combinatorics

This volume of notes covers combinatorics, the study of counting. Like number theory, combinatorics is one area of mathematics that manages to appear, particularly when we least expect it. This is particularly the case with one of its subfields, graph theory. Below is a small sample of some common counting questions.

How many ways can I place n{n} marked balls into x{x} marked boxes with or without multipacking?

xn \large x^n

How many ways can I place n{n} marked balls into x{x} marked boxes without multiplacking?

xn=x(n1)(n2)(xn+1) x^{\underline{n}}=x(n-1)(n-2)\ldots(x-n+1)

How many ways can I place n{n} marked balls into x{x} marked boxes so that all the boxes have at least one ball?

2!{nx} 2!{n \brace x}

How many ways can I place n{n} plain balls into x{x} marked boxes, with or without multipacking?

(x+n1n)=(x+n1)(x+n2)(x+1)xn(n1)(2)(1)=xnn! \dbinom{x+n-1}{n}=\dfrac{(x+n-1)(x+n-2)\ldots(x+1)x}{n(n-1)\ldots(2)(1)}=\dfrac{x^{\underline{n}}}{n!}

How many ways can I place n{n} plain balls into x{x} marked boxes, without multipacking?

(xn)=xnn!=x(x1)(xn+2)(xn+1)n(n1)(2)(1) \dbinom{x}{n} = \dfrac{x^{\underline{n}}}{n!}=\dfrac{x(x-1)(x-n+2)(x-n+1)}{n(n-1)\ldots(2)(1)}

How many ways can I place n{n} plain balls into x{x} marked boxes so that all the boxes have at least one ball?

(n1x1) \dbinom{n-1}{x-1}

How many ways can I place n{n} marked balls into x{x} plain boxes, with or without multipacking?

k=0x{nk} \dsum{k=0}{x}{n \brace k}

How many ways can I place n{n} marked balls into x{x} plain boxes, without multipacking?

[nx] [n \le x]

How many ways can I place n{n} marked balls into x{x} plain boxes, so that all the boxes have at least one ball?

{nx} {n \brace x}

How many ways can I place n{n} plain balls into x{x} plain boxes, with or without multipacking?

px(n+x) p_x(n+x)

(the number of partitions of n{n} into x{\le x} parts).

How many ways can I place n{n} plain balls into x{x} plain boxes, without multipacking?

[nx] [n \le x]

How many ways can place n{n} plain balls into x{x} plain boxes, with no empty boxes allowed?

px(n) p_x(n)

(the number of partitions of n{n} into exactly x{x} parts).