Consider a mathematician standing at a point 'P'. He travels 1 metre initially in forward direction and from there, 0 metre in backward direction. Then from that position he travels 2 metre in forward direction and 1 metre in backward direction. Again from the position resulting from previous steps he goes 3 metre in forward and then 2 metre in backward direction(Note carefully the pattern he follows). There is a pit 2018 metre from the starting point. After travelling how much distance(in metres) he will fall into the pit?
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
Call the combination of one forward move and one backward move a 'walk'. It is clear that after the k th walk, assuming he hasn't fallen into the pit yet, the mathematician will be k meters from the starting point.
Consider what happens during the n th walk. The mathematician starts at position n − 1 metres (that's where the previous walk ended), walks n metres forward to reach position 2 n − 1 metres, then walks back n − 1 metres to position n metres. So he'll fall into the pit the first time 2 n − 1 > 2 0 1 8 , i.e when n = 1 0 1 0 .
By the time he completes the 1 0 0 9 th walk, the mathematician's walked 1 + 2 + 3 + . . . . + 1 0 0 9 metres forward and 0 + 1 + 2 + . . . . + 1 0 0 8 metres backward for a total distance of
2 ( 1 0 0 9 ) ( 1 0 1 0 ) + 2 ( 1 0 0 8 ) ( 1 0 0 9 ) = 1 0 1 8 0 8 1 metres.
He starts the 1 0 1 0 th walk at position 1 0 0 9 metres, and would have walked forward 1 0 1 0 metres but falls into the pit after walking 1 0 0 9 metres.
Thus the distance he walks before falling into the pit is 1 0 1 8 0 8 1 + 1 0 0 9 = 1 0 1 9 0 9 0 m