This question is based on a previously asked question, Probability problem: cars on the road. The question is:
A road of infinite length has only one lane, so cars cannot overtake each other. $N$ cars are now put on the road. The cars travel at distinct constant speeds chosen at random and independently from a probability distribution. What is the expected number of cluster of cars formed.
This is how I tried to solve it, but I am getting wrong answer.
Let the farthest car be $C_1$, car behind it $C_2$ and so on. Let the speed of car $C_i$ be $a_i$. Then there are two cases, either $C_1$ is the car with minimum speed or it is not.
In first case there will only be $1$ cluster. The probability of first case is $\frac{1}{N}$.
In the second case let a subcase be that $a_i$ is the first speed less than $a_1$ (first in sense, going from $a_2$ to $a_N$). Then clearly $a_1, a_2, ... a_{i-1}$ from a cluster and the remaning $N+1-i$ from some clusters among themselves. The probability of this subcase is $\frac{(i-2)!}{i!}=\frac{1}{i(i-1)}$.
Thus expected number of clusters are
$$E(n) = \frac{1}{N}.1+\sum_{i=2}^{N}\frac{1}{i(i-1)}(E(n-i+1)+1)$$
with base case $E(1)=1$. But this is giving me wrong answer for $E(3)$.