Suppose $7$ balls are distributed among $3$ urns. What is the probability that one urn remains empty?
No. of ways to distribute $7$ balls to $3$ urns=$ 7^3$
No. of ways to pick an empty urn = $3\choose 1$
No. of ways to place $7$ balls to $2$ urns = $7\choose 2$
$\therefore P(\text{one urn remains empty})= \frac{{7\choose2}{3\choose1}}{7^3}$
I am sure the answer is wrong. I am a total novice in combinatorics. Please bear with me!!
Your denominator is flipped. There are $3$ slots to put the $7$ balls so it should be $3^7.$ After choosing the two slots, there are $2^7$ ways to place these so that they all get placed in those two urns, but this is over-counting.
You can use the inclusion exclusion principle to combat this. Let $X$ denote the number of distinct urns that the balls get placed in.
The probability that they all get placed in $1$ or $2$ urns is
$$P(X\in\{1,2\})={3 \choose 2}\cdot\left(\frac{2}{3}\right)^7$$
since we choose $2$ urns for all the balls to get placed in and the probability that all $7$ balls get placed in these urns is $\left(\frac{2}{3}\right)^7.$ However, this includes the cases where all $7$ balls get placed in one urn so we must subtract these off.
The probability that they are all in one urn is
$$P(X=1)={3 \choose 1}\cdot\left(\frac{1}{3}\right)^7$$
All together,
$$P(X\in\{1,2\})-P(X=1)\approx0.174$$
R Simulation:
which agrees with our analytical solution.