Sorry, I misread your problem at first... the answer is:
...Damn it! what is the answer?
The coconut problem
Five sailors are shipwreaked on an island and decide that the first thing they should do is look for food. All they find are coconuts and a monkey, so they spend all day gathering up the coconuts and then decide to split them up tomorrow morning.
During the night one of the sailors wakes up and thinks to himself, "If I don't take my share of coconuts now then one of the others will steal them." So he divides the coconuts up into five piles and has one left over, which he throws to the monkey, hides his share and puts the rest back in the pile.
Later on another sailor wakes up and has the same thought, so he divides the coconuts into five piles with one left over that he throws to the monkey. He hides his share and puts the rest back into a pile.
Throughout the rest of the rest of the night each of the other sailors wakes up and has the same thought, and each time there is one coconut left over which they throw to the monkey.
The next morning the pile of coconuts is obviously smaller, but they are all guilty so none of them says anything. They divide up the coconuts into five piles and again there is one left over that is thrown to the monkey.
How many coconuts were there?
