mathman said:
Background: There was a specific problem (math.stackexchange.com) where i=10, k=4, and (m,n)=(2,3), which was not solved and then was closed by the nannies of that forum.
To clarify original question - m and n were meant to be exact, not at least.
It's not too hard if you have specific numbers. In this case, there are four successful "patterns" for how many balls are in each box: ##0, 2, 3, 5## and ##1, 2, 3, 4##. These are the only patterns that have exactly one box with two balls and exactly one box with three balls.
Each pattern has ##24## permutations for which box has each number of balls. So, we can calculate the probablity that we get ##0, 2, 3, 5## in that order and then multiply by ##24## to get the total.
Now, we use the trick to number the balls and count how many ways we can get ##0, 2, 3, 5##, which is:
##N_1 = 24 \times 1 \times \binom{10}{2} \times \binom{8}{3} = 60,480##
And, for ##1, 2, 3, 4## we have:
##N_2 = 24 \times 10 \times \binom{9}{2} \times \binom{7}{3} = 302,400##
With the balls numbered, there are a total of ##4^{10}## possibilities, so the probability we want is:
##p = \frac{N_1 + N_2}{4^{10}} \approx 0.35##
It seems quite high, but I checked some other possibilities and it looks about right.
PS It all works out. The pattern ##1,2,3,4## is far and away the most likely, with a probability of ##0.29##. The second most likely pattern is ##2,2,3,3## at ##0.14##.
PPS The only additional pattern where there is at least one box with two balls and at least one box with three balls is ##2,2,3,3##. That would bump the probability up to ##0.49## for the alternative problem.