Once there were three friends who went to a garden to fetch some mangoes. While the friends were fetching mangoes, the gardener started walking toward his garden, so the friends quickly hid the mangoes and ran away.
Later that night, one of the friends came and divided the mangoes into three equal piles and took one of the piles. Then the second friend came and divided the remaining mangoes into three piles but observed there was one mango left over so he took one one pile and the remaining extra mango. Finally, the last friend came and took all the remaining mangoes.
In the morning, each friend told the others how many mangoes he had. Surprisingly, they all had the same number of mangoes. So, how many total mangoes did they collect?
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.
Let x be the total number of mangoes collected. The first friend takes 3 x and leaves 3 2 x .
The second friend then divides the remaining mangoes into three piles, but with one mango left. Thus, each pile is 3 3 2 x − 1 and the second friend takes one of these piles for himself plus the extra mango, so he has 3 3 2 x − 1 + 1 mangoes.
Because the number of mangoes each person received are equal, we can set 3 x equal to 3 3 2 x − 1 + 1 and solve for x .
3 x = 3 ( 3 2 x − 1 ) + 1 ⟶ x = ( 3 2 x − 1 ) + 3 ⟶ x = 6
So the total number of mangoes collected is 6.