Ants on a Pole
You have a 1-metre pole with 99 ants placed at each 1-centimetre mark (1cm, 2cm, 3cm, … 99cm). Each ant faces towards the centre of the pole (at the 50cm mark). All ants start walking simultaneously at exactly 1cm per second. When two ants collide, they both immediately reverse direction and continue walking. If an ant reaches either end of the pole, it falls off.
How long will it take for all the ants to fall off the pole?
Hint
When the ants collide, is there a difference whether they reverse direction or they walk past each other?
Solution
Answer: 99 seconds.
The key is to reframe the problem. When two ants collide and reverse direction, the outcome is identical to the ants simply passing through each other—the positions and velocities are the same, we’ve just swapped which ant is which.
Since we can treat collisions as ants passing through each other, each ant effectively travels in a straight line at 1cm per second until it falls off the pole. The ants that takes longest to fall off are the ones at the 1cm and 99cm mark: they each have to travel 99cm to get to the opposite end of the ruler.
Hence, all the ants will fall off the pole after 99 seconds.
Try These Next
Coin Weighing 2
Your empire has grown, and now you receive tributes from 9 neighbouring kingdoms. Each kingdom sends a sack of gold coins as a gift. Your advisor suspects that...
Guessing Hats 3
The king’s challenges are growing crueller. This time, three wise men stand in a room, each wearing either a black or white hat chosen at random by a coin...
Two Girlfriends and Two Trains
Unfaithful Bob has two girlfriends Alice and Carol. Bob can take a train ride from the city’s train station to get to them. There is only 1 line going in both...