#ThisWeeksFiddler, 20240628

This week the question is: Can You Find a Matching Pair of Socks (Again)?

I have five distinct pairs of socks in my drawer, none of which is actually paired up. The room is pitch black, so I can’t see the color of any sock I’m pulling out. I reach into my drawer and randomly pull out one of the 10 socks. Then I reach in again and pull out one of the remaining nine. I can keep pulling out one sock at a time, at random, until I decide to stop at some point.

My goal is to stop removing socks as soon as I have a matching pair among those I have drawn. How many socks should I draw to maximize the chances that the last sock I draw results in the first such pair?

And for extra credit:

Instead of five pairs of socks, I now have N pairs of socks, where N is a very large number. In terms of N, how many socks should I draw to maximize the chances that the last sock I draw results in the first pair?

Læs mere: #ThisWeeksFiddler, 20240628

Highlight to reveal solution:

Calculation sheet.

And for extra credit:

Program.

Skriv en kommentar