Find closed formula for $S(n,n-4)$.
These are stirling numbers of 2nd kind.
My attempt: I uses the recurrence relation $$S(n,k)=S(n-1,k-1)+kS(n-1,k)$$
$S(n,n-4)=S(n-1,n-5)+(n-4)S(n-1,n-4)=S(n-2,n-6)+(n-5)S(n-2,n-5)+(n-4)\{S(n-2,n-5)+(n-4)S(n-2,n-4)\}$
But it seems not helpful for me.How I can find closed formula for $S(n,n-4)$?
Working with the recursion looks cumbersome; to use the combinatoric interpretation seems easier: $S(n,k)$ gives the ways of placing $n$ distinguishable balls in $k$ undistinguishable urns with no empty urn. Then, for $k=n-4$, we have these possible distributions:
A. {5, 1 ,1 ...} : ${n \choose 5}$
B {4, 2 ,1 ...} : ${n \choose 4}{n-4 \choose 2}$
C. {3, 3 ,1 ...} : ${n \choose 3}{n-3 \choose 3} \frac{1}{2}$
D. {3, 2 , 2, 1 ...} : ${n \choose 3}{n-3 \choose 2} {n-5 \choose 2}\frac{1}{2}$
E. {2, 2 , 2, 2, 1 ...} : ${n \choose 2}{n-2 \choose 2} {n-4 \choose 2}{n-6 \choose 2}\frac{1}{4!}$
You just need to sum all those terms to get $S(n,n-4)$, excepting (for small $n$) the terms that are impossible (or simply using the convention ${a \choose b}=0$ for $a<b$) - and perhaps try to simplify a little all that...
For example, for the first "full" case, we get:
$S(8,4)=56+ 420 +280+ 840 + 105 =1701$