Mosquito gets Smashed by Two Trains: A Simple Puzzle to Demonstrate Overthinking

Mosquito-train puzzle [Presentation]
In this article, we describe a simple puzzle involving a mosquito and two trains. We were introduced to this puzzle during placement interviews at an engineering institute. Given how extensively engineering students gets exposed to mathematics, most end up overthinking and complicating a simple situation. This simple puzzle is one such example where many candidates with mathematics background end up overthinking when the puzzle can be solved without use of a pen and a paper.

Description of the puzzle

Description of the puzzle
Description of the mosquito-train puzzle

Suppose two trains, A and B, initially \(100 km\) apart are facing each other (). Train A, on the left, is moving right with the speed of \(35 km/hr\). Whereas train B, on the right, is moving left with the speed of \(15 km/hr\). Imagine a mosquito with initial position at the front of train A flying right at the speed of \(120 km/hr\). After some time, the mosquito reaches the front of train B and collides with it. When the mosquito collides with the train B, it reverses its direction and flies towards the train A with the same speed of \(120 km/hr\). The mosquito keeps flying at \(120 km/hr\), changing its direction after every collision. The process stops when the two trains collide and smash the mosquito.

Animation of the puzzle
Mosquito gets smashed by two trains puzzle

shows the dynamics of the mosquito-train puzzle.

Question on the mosquito-train puzzle

Can you calculate the distance traveled by the mosquito before getting smashed by the two trains?

Solution of the mosquito-train puzzle

If you are familiar with series and convergence, you would be inclined to deriving the distance travelled by the mosquito between \(n\) and \(n+1\) collision. This would be followed by summation and calculating the limit for \(n\rightarrow\infty\). This is the pitfall that our mind directs us to take given the similarity of problem with series and convergence. I would encourage you to go ahead and derive the expressions just to understand how ugly it gets very quickly.

It turns out that we do not have to go through such complex calculation. The answer can be calculated mentally without needing a pen and paper. If you want to give it another try, now's a good time to pause.

The calculation proceeds as follows. The speed of mosquito is constant until it gets smashed by the two trains and dies. Now, how much does it take for the trains to hit each other? It is \(\frac{100}{35+15}=2 hr\). This implies that the distance travelled by the mosquito is equal to \(120\times 2=240 km\). Q.E.D.

Author

Anurag Gupta is an M.S. graduate in Electrical and Computer Engineering from Cornell University. He also holds an M.Tech degree in Systems and Control Engineering and a B.Tech degree in Electrical Engineering from the Indian Institute of Technology, Bombay.


Comment

* Required information
1000
Drag & drop images (max 3)
Captcha Image
Powered by Commentics

Past Comments

No comments yet. Be the first!

Similar content