My father thinks this problem explains life, the universe, and everything:

Suppose you have an ipod with 100 songs. It plays songs at random without regard for what songs were played before. On average, how many songs will you hear before it repeats a previous song?

Real ipods don’t work like this, in random mode they randomise the playlist and play through it in order, so there’s no possibility of repeats. But the answer to the problem is interesting.

UPDATE: I think the answer is 13.21. Click here to see how I worked it out, although it’s not pretty. I’m sure there must be a cute way to apply some clever trick to get the answer more easily. The interesting thing is how low the number is. 100 songs and on average you only get about 13 chosen at random before you hear a repeat.

by aaron. Permalink. Comments RSS.