File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Meaningless Drivel and the fly likes One more puzzle Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Other » Meaningless Drivel
Bookmark "One more puzzle" Watch "One more puzzle" New topic
Author

One more puzzle

Sahir Shibley
Ranch Hand

Joined: Apr 08, 2000
Posts: 275

Once upon a time there was an aged merchant of Baghdad who had three sons, and it was a rule of his life to treat them all exactly alike. One day he fell sick and died, bequeathing all his possessions to his three sons in equal shares.
The only difficulty that arose was over the stock of honey. There were exactly twenty-one barrels. The old man had left instructions that not only should every son receive an equal quantity of honey, but should receive exactly the same number of barrels, and that no honey should be transferred from barrel to barrel on account of the waste involved. Now, as seven of these barrels were full of honey, seven were half full, and seven were empty, this was found to be quite a puzzle, especially as each brother objected to taking more than four barrels of the same description - full, half full, or empty.
Can you show how they succeeded in making a correct division of the property?
Greg Harris
Ranch Hand

Joined: Apr 12, 2001
Posts: 1012
sahir,
my answer is hidden below... highlight the area to see what i came up with.

the first brother gets:

  • 3 full
  • 1 half
  • 3 empty

  • the second brother gets:

    • 2 full
    • 3 half
    • 2 empty

    • the third brother gets: (same as 2nd)

      • 2 full
      • 3 half
      • 2 empty

      • [This message has been edited by Greg Harris (edited May 28, 2001).]


what?
Sahir Shibley
Ranch Hand

Joined: Apr 08, 2000
Posts: 275

Yes. That is right.
 
permaculture playing cards
 
subject: One more puzzle