Tying noodles into loops
A bowl holds 100 noodles, so 200 free ends. Repeatedly, two free ends are picked uniformly at random and tied together, until no free end is left. Find the expected number of loops formed.
Give 3 significant digits. You may use , and Euler's constant , with .
Fractions, decimals with at least 3 significant digits, and expressions such as sqrt(2)/2, e^-1 or pi/4.
Each tie reduces the number of noodles (counting partly tied strands as single noodles) by one. When does it create a loop?
With strands left, the first chosen end has possible partners, and exactly one of them closes a loop.
h
s Shown after a correct answer. Revealing it first marks the problem as seen, not solved.
Idea. Look at one tie at a time. With strands left, a tie closes a loop exactly when the two chosen ends belong to the same strand, which has probability . Either way the number of strands drops by one. Add the probabilities.
Step 1: one tie. With strands there are free ends. Whatever the first chosen end, the second is one of the other , and exactly one of them is the other end of the same strand. So the tie makes a loop with probability . In all cases one strand fewer remains.
Step 2: add up. The ties happen with strands, so
Step 3: estimate. The sum of reciprocals of odd numbers up to is , where . With : The exact sum is : the approximation errors cancel almost completely.
The surprise. 100 noodles make only about 3.3 loops on average: most ties lengthen a strand rather than close it.