Say I have a hash table of size $m$, with collision handled by chaining. Assume the hash function hashes uniformly, so every key has probability of $\frac{1}{m}$ of being hashed to any slot in the table. I insert $n$ keys into the table. What is the probability that the longest chain in the table is size $k$?
My initial idea is like this:
$$\sum_{i=1}^{m}p_k^ip_{lk}^i$$
where $p^i_k$ is the probability of having $i$ slots with chain size $k$, and $p_{lk}^i$ is the probability of having $m-i$ slots with chain size less than $k$. I am able to get the probability of one slot having chain size $k$,but not sure how to derive the other probabilities from it. A pointer in the right direction is appreciated!