Stirling Numbers of second kind recurrence

combinatoricsrecurrence-relationsstirling-numbers

While learning the stirling numbers of second kind, we see a recursive relation :
$$S(n, r) = S(n-1, r-1) + k\cdot S(n-1, r)$$

And we get its solution as :
$$S(n, r) = (1/{r!})[r^n – C(r,1)\cdot (r-1)^n + \cdots + (-1)^{r-1}\cdot C(r,r-1)\cdot 1^n]$$

Can you please tell me how the above solution of the recurrence written is obtained?
Thanks in advance.

Best Answer

A set partition into $k$ parts is unordered partition of a set $S$ in unordered collection pairwise disjoint sets $S_1,S_2,...,S_k$. Number of set partitions of ${1,2,...,n}$ into $k$ parts is $S(n,k)$. Also a set partition of ${1,2,...,n}$ is equivalent to $ \cdot \times Seq\{1\} \times \cdot \times seq\{1,2\} \times \cdot \times \ldots \times seq\{1,2,\ldots,k\}$ where $\cdot$ and all numbers $j$ have size $1$. To see this if a number $l$ is at position $j$ then you put $j$ in $S_l$ and if $i^{th}$ dot is at position $j$ then you put $j$ in $S_i$. So $$ \sum_{n\geq 0 } S{(n,r)}x^n = \dfrac{x}{1-x}\times\dfrac{x}{1-2x}\times\ldots\times\dfrac{x}{1-rx}$$ Extracting coefficient of $x^n$ you get your formula.

Related Question