Question 12
Number theory · Algebra BDMO 2006 National
3 friends , and with the help of a monkey collected many cocoanuts, got tired and fell asleep. At night woke up and decided to have his share. He divided cocoanuts into 3 equal shares giving the left out single cocoanut to monkey for it hard labour and fell asleep again. In the same way in order and woke up. Not knowing whether anybody woke up and each of them divided the cocoanuts into three shares, every time giving the left out single cocoanut to the monkey. Early in the morning all of them woke up together, divided the cocoanuts into 3 equal shares and a left out cocoanut gave to the monkey. What is the minimum number of cocoanuts they collected?