1 Answer
1

First: you need to sum over all the possible values of $p$. Second: In the Stirling number, you must use the number of available balls, which is $p$, not ${m \choose p} $ (the later is the number of ways of choosing them). Third: You must also count what you do with the remaining balls $m-p$ balls, that go into the remaining $n-k$ urns.