2026-05-06

Problem — 2026-05-06

Medium

MediumProbability

You have nn distinguishable balls and nn distinguishable boxes. Each ball is placed uniformly at random into one of the boxes. What is the expected number of empty boxes when n=5n = 5?

Express as a fraction or decimal

Show solution
By linearity of expectation, the expected number of empty boxes is n⋅P(a given box is empty)=n⋅(n−1n)nn \cdot P(\text{a given box is empty}) = n \cdot \left(\frac{n-1}{n}\right)^n. For n=5n = 5: 5⋅(45)5=5⋅10243125=51203125=10246255 \cdot \left(\frac{4}{5}\right)^5 = 5 \cdot \frac{1024}{3125} = \frac{5120}{3125} = \frac{1024}{625}.