This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
A person was about to die, and before dying he wrote his Will which went as follows ...
"I have 17 Camels, and I have three sons. Divide my Camels in such a way, that My eldest son gets half of them, the second one gets 1/3rd of the total and my youngest son gets 1/9th of the total number of Camels"
How will you divide, so that every son get the right number of camels which father wrote in will?
According to the problem statement, that's an invalid solution. The will specifically says, "Divide up my camels in such a way that my eldest son gets half of them..." Adding your camel to the original 17 is going against the father's request.
Besides, the father may have realized that he has allocated only 17/18 of his 17 camels and wants the remaining 17/18 of a camel to be used to pay the executor of his estate (you). Mmmm... a half ton of camel jerky. [ August 07, 2006: Message edited by: Ryan McGuire ]
Joined: Sep 02, 2001
Originally posted by Shyju Lakshman: Actually i have one camel which i shall add to the total . now there are 17+1 = 18 camels.
1st son ==> 18/2 = 9 camels 2nd son ==> 18/3 = 6 camels 3rd son ==> 18/9 = 2 camels
9+6+2= 17 camels.. one camel is left which is mine.. so i am happy, and the father is happy and the sons are happy