given are n persons and m tables, with $ n \geq 5m $.
How many possibilities are there, to put the persons to the m tables, so that at each table are at least 5 persons? The arrangement of the persons at a table does not matter. Also the tables are not distinguishable.
I thought about the second Stirling number. As it describes the number of possibilities for k not empty sets from n elements, so that every element is in exactly one set. But with this I do not take into account, that I need at least 5 elements in each set.
How can I fix this or is there an approach which fits better to this problem?
Kind regards, Niklas
Let $S_5(n,m)$ be the number of ways for $n$ people to sit at $m$ identical tables, at least five at each.
Suppose that a new person arrives, making it a crowd of $n+1$ people.
The new person can sit at one of the tables that are already there. They have $m$ choices, so there are $m\cdot S_5(n,m)$ arrangements of this kind, to be included in $S_5(n+1,m)$.
The new person can pull out a new table (increasing $m$ by one), and get four of the people already present to sit with them. There are $\binom{n}4\cdot S_5(n-4,m)$ arrangements of this kind, to be included in $S_5(n+1,m+1)$.
Thus $$S_5(n+1,m)=m\cdot S_5(n,m)+\tbinom{n}4\cdot S_5(n-4,m-1)$$
(Note that in this formula the final index is $m-1$, as that term represents a move from a situation with $m-1$ tables to one with $m$.)
Start a spreadsheet with $S_5(n,1)=1$ for all $n\ge5$, and $S_5(n,m)=0$ for $n<5m$.
Then $S_5(10,2)=2\cdot0+\tbinom94\cdot1=126$, and the recurrence can be continued:
$$\begin{array}{c|crr}&1&2&3\\\hline 9&1\\10&1&126\\11&1&462\\12&1&1254\\13&1&3003\\14&1&6721\\15&1&14443&126126\\16&1&30251&1009008\\17&1&62322&5309304\\18&1&127024&23075052\end{array}$$
This is OEIS A059024.