Answer:
x = 690
Explanation:
Let´s call x the number of coconuts at night ( at the original pile )
Then the first sailor took x/3 threw 1 to monkeys, therefore, number 1 sailor used x/3 + 1 and left
x - ( x/3 - 1 ) = (3x - x - 3 )/3 = ( 2x - 3 )/3
Evaluating the second sailor
He took [ ( 2x - 3 )/3]/3 ] threw 1 to monkeys
[ ( 2x - 3 )/3]/3 ] + 1 = ( 2x + 24 ) / 9
The third took
[( 2x + 24 ) / 9] /3 and threw 1 to monkeys
{ [( 2x + 24 ) / 9] /3 } + 1 = (2x + 51 )/27
Finally they divided the pile each one of them got 7 and threw 1 to monkeys
The resulting equation is:
( 2x - 3 )/3 + ( 2x + 24 ) / 9 + (2x + 51 )/27 + 21 + 1 = x
Solving for x
18x - 27 + 6x + 72 + 2x + 51 + 594 = 27x
-x = - 690
x = 690