I'm trying to count set partitions under the following constraints:
- The number of partitions on $n$ elements where the largest cell(s) have exactly $k$ elements
- All cells have at least two elements
Starting here, I'm able to get the number of partitions where the maximum size cell size is exactly $k$ for values of $k \geq \lfloor n/2\rfloor$.
Then, for values of $k < \lfloor n/2 \rfloor$, I'm trying to add up Stirling numbers:
$$ \sum \limits_{i=\frac {n-k}{2}+1}^\frac {n}{k} {n \brace i} - f(n, i) $$
where $f(n, i)$ is some function that calculates the number of partitions of $n$ elements into $i$ cells that have at least one cell of size 1.
My thought on the upper limit is that, if you divide up a set into $\frac {n} k$ cells and get rid of anything with size 1, then all cells have to be size $k$ (plus one additional cell for any remainder). Similarly, the low end is where you have one (or two) cells of size $k$ and the rest of them are size $2$.
Where I'm really stuck is getting rid of the partitions that have cells of size $1$. I think I'm headed in the right direction with the approach described above, but any help is appreciated.
Let $B^{\gamma,\mu }_n$ represent the number of partitions where cells have atleast $\gamma$ elements and the size of the largest cell is exactly $\mu$. So the answer to your question would be $B^{2,k}_n$.
Choose an arbitrary element $v$ from the set. Suppose $v$ is in a cell of size $k$ where $\gamma \leq k < \mu$. First we specify $v$'s cell in $n-1 \choose k-1$ ways. Then we partition the remaining elements in $B^{\gamma,\mu}_{n-k}$ ways. Thus we have
$$ \sum_{k=\gamma}^{\mu-1} {n-1 \choose k-1} \, B^{\gamma,\mu}_{n-k} $$
partitions. Now we have to be careful when $k=\mu$. Since $v$'s cell has $\mu$ elements, we do not need to satisfy the first constraint when we partition the remaining elements. Therefore, they can be partitioned in $B^{\gamma,\gamma}_{n-\mu} + B^{\gamma,\gamma+1}_{n-\mu} + \ ... + \, B^{\gamma,\mu}_{n-\mu}$ ways. So our final recurrence is:
$$ B^{\gamma,\mu}_{n} = \sum_{k=\gamma}^{\mu-1} {n-1 \choose k-1} \, B^{\gamma,\mu}_{n-k} + \sum_{j=\gamma}^\mu {n-1 \choose \mu-1} \, B^{\gamma,j}_{n-\mu} $$
With base cases
$$ B^{\gamma,\mu}_{n} = \left\{ \begin{array}{ll} 0 & : \;\;\; n<\mu \\ 1 & : \;\;\; n = \mu \\ \end{array} \right. $$