A bowl holds 100 noodles, so 200 loose ends. You repeatedly grab two loose ends uniformly at random and tie them together, until no loose ends are left. How many loops do you expect to have formed?
Reveal solutionHide solution
#One tie at a time
Suppose loose ends remain. Pick up any one end. Among the other ends, exactly one belongs to the same strand, and tying to it closes a loop while every other choice just lengthens a strand. So this tie closes a loop with probability
whatever happened on earlier ties. Each tie removes two ends, so the ties run through , that is down to .
#Sum over ties by linearity
Let indicate that the tie made with ends closes a loop. The loop count is , and linearity of expectation adds the per-tie chances with no need for independence,
#Read it off
The sum of the reciprocals of the first 100 odd numbers equals , close to . A bowl of 100 noodles makes only about three loops, because the loop-closing chance starts at a slim and stays small until the very last ties.