This is supposedly a thought-provoking interview question asked, and I though I have an idea of a possible solution, I can't prove it.
The question is the following:
You have $n$ cars that are all traveling the same direction on an infinitely long one-lane highway. Unfortunately, they are all going different speeds, and cannot pass each other. Eventually the cars will clump up in one or more traffic jams. In terms of $n$, what is the expected number of clumps of cars?
How would you go about solving a question like this mathematically?
It is easy to see that the $i^\mbox{th}$ car from front is at the head of a mini-jam if and only if it is slower than all cars before it.
Assuming a continuous distribution of speeds, the probability of this is simply $1/i$ as the cars are sampled from the same distribution and hence each one of them is equally likely to be the slowest.
Using linearity of expectation, expected number of clumps, \begin{align*} E_N &= \sum_{i=1}^N 1/i \\ &= \text{Harmonic number } H_N \end{align*}