|
||
Title: Diophantus and the coconuts Post by Speaker on Feb 26th, 2004, 6:37pm I just picked this one up from an old Omni book. I solved it for one value, but have not yet looked at the answer page (for me this is an incredible show of restraint). Five sailors are shipwrecked on an island. On the island they find one monkey, and the only supply of food is coconuts. They collect as many coconuts as possible and put them in a big pile together. They are tired so they all go to sleep. However, sailor Angus wakes up during the night and is suspicious of the other sailors taking his share of the coconuts. So, Angus divides the coconuts up into five piles. But, there is one coconut left over, which he gives to the monkey. Then he takes his share and hides it. Then he puts all the remaining coconuts back into one pile and goes back to sleep. An hour later, the second sailor Bangus wakes up and does the same thing. Divides the coconuts into five piles, with one coconut left over that he gives to the monkey. Then he hides his share of the coconuts and goes to sleep. Cangus, Dangus and Eugene all do the same thing, and always there is one coconut remaining. They all wake up in the morning and notice that the pile is smaller, but all being guilty they say nothing. They divide the pile five ways and again find one coconut left over which they give to the monkey. How many coconuts did they start with? |
||
Title: Re: Diophantus and the coconuts Post by Cathos on Feb 26th, 2004, 7:31pm I remember seeing this riddle eslewhere. I don't remember the exact answer but it's much more than one would think. |
||
Title: Re: Diophantus and the coconuts Post by Speaker on Feb 26th, 2004, 7:37pm I think it is too. I have to take it back. I tried to answer it but my first try was based on bad math. I am trying again. :( |
||
Title: Re: Diophantus and the coconuts Post by John_Gaughan on Feb 26th, 2004, 9:13pm :: [hide]For n < 100,000 I get: 15621 31246 46871 62496 78121 93746[/hide] :: |
||
Title: Re: Diophantus and the coconuts Post by Speaker on Feb 26th, 2004, 9:42pm Okay, now I have an answer. I hope it is correct. I will look at the book only if there is some agrument. [hide]31,246 coconuts, of which six went to the monkey, these guys worked pretty hard, but were also pretty stingy.[/hide] |
||
Title: Re: Diophantus and the coconuts Post by THUDandBLUNDER on Feb 26th, 2004, 9:47pm Let n = the original number of coconuts. Let m = how many coconuts each sailor receives in the morning. :[hide]Then we end up needing to find the smallest positive integers which satisfy 1024n - 15625m = 11529[/hide] |
||
Title: Re: Diophantus and the coconuts Post by Barukh on Feb 27th, 2004, 1:29am Here's a nice way to approach the problem. [smiley=blacksquare.gif][hide] Note that if N is a solution, then N + 56 is also a solution. Next note that, formally, -4 (minus four) coconuts satisfy all the conditions. Thus, we get the smallest number N = -4 + 56 = 15621. Repeating, we get all the numbers in John's list. Also, it is interesting to represent the answer in base 5: 15621 = 4444415. It makes the "division" process more transparent. [/hide][smiley=blacksquare.gif] |
||
Title: Re: Diophantus and the coconuts Post by NickH on Feb 27th, 2004, 1:25pm Here's another approach... [hide] Let the original pile have n coconuts. Let a be the number of coconuts in each of the five piles made by the first man, b the number of coconuts in each of the five piles made by the second man, and so on. Then n = 5a + 1 => n + 4 = 5(a + 1) 4a = 5b + 1 => 4(a + 1) = 5(b + 1) 4b = 5c + 1 => 4(b + 1) = 5(c + 1) 4c = 5d + 1 => 4(c + 1) = 5(d + 1) 4d = 5e + 1 => 4(d + 1) = 5(e + 1) 4e = 5f + 1 => 4(e + 1) = 5(f + 1) Hence n = 5*(5/4)5(f + 1) - 4 = (56/45)(f + 1) - 4. Since 5 and 4 are coprime, 56/45 = 15625/1024 is a fraction in its lowest terms, and so the only integer solutions are where f + 1 is a multiple of 45. So the general solution is n = 15625r - 4, where r is a positive integer, giving a smallest solution of 15621 coconuts in the original pile. [/hide] |
||
Title: Re: Diophantus and the coconuts Post by Speaker on Feb 29th, 2004, 4:01pm Well, you guys are correct, of course you do not need me to tell you that. But I do have the book. My answer, which was correct, but not the lowest possible answer was 31,246 coconuts in the original pile. To get my answer I used an excel worksheet and started at 10,001 and made a list of integers 9,996, 9991, 9986 etc. Figuring that the first number had to be divisible by 5 plus 1. Well, I ran through all those calculations and then scrolled through the answer looking for the answer that held no digits after the decimal point. I didn't find any so I went up a little higher. So when I scrolled down the first possible correct answer I found was higher than the correct answer. I made the same mistake with the sell the beer and drink one at the end of the day riddle. Oh well. |
||
Powered by YaBB 1 Gold - SP 1.4! Forum software copyright © 2000-2004 Yet another Bulletin Board |