JEE2024Intermediate
By: Saad HassanSystem Entry: Jul 24, 2026

test-link

Problem Statement

Problem

On a strange railway line, there is just one infinitely long track, so overtaking is impossible. Any time a train catches up to the one in front of it, they link up to form a single train moving at the speed of the slower train.

At first, there are three equally spaced trains, each moving at a different speed. You watch, and eventually (after all the linking that will happen has happened), you count the trains. You wonder what would have happened if the trains had started in a different order (but each of the original three trains had kept its same starting speed). On average (averaging over all possible orderings), how many trains will there be after a long time has elapsed?

What would be the average number of trains if there were $n$ trains to begin with?

Solution