Martin Gardner's essay of the Monkey and the Coconuts [The Colossal Book of Mathematics, 2001, pp3-9] tells the story of five men and a monkey shipwrecked on a desert island with coconuts for food. The coconuts are split in a certain manner with the monkey getting a certain amount. The problem is solved using six equations which are ultimately reduced to one - A Diophantine equation with 2 unknowns:
Gardner did not solve it by the known extended Euclidian algorithm finding it too difficult so instead used a simple non Euclidian method. The Euclidean method, however, was used to produce the values of x and y in Part I.
The following equations were obtained for x0 and y0:
Plugging in the values 0-16 for n affords Table I, where the yellow cells correspond to values based on y = 2k − 1, where k ≥ 10:
n | x | y |
---|---|---|
0 | −4 | 1 |
1 | 15621 | 1023 |
2 | 31246 | 2047 |
3 | 46871 | 3071 |
4 | 62496 | 4095 |
5 | 78121 | 5119 |
6 | 93746 | 6143 |
7 | 109371 | 7167 |
8 | 124996 | 8191 |
9 | 140621 | 9215 |
10 | 156246 | 10239 |
11-15 | ... | ... |
16 | 249996 | 16383 |
where the difference between each xn = 15625 while for each yn = 1024.
The numbers in yellow (x values), however, correspond to a new sequence which may be generated via the route shown in Table II. Using the initial value of
where k is the superscript of the y = 2k − 1 equation.
y | x | 2x | 2x+4 |
---|---|---|---|
29 − 1 | 7808.5 | 15614 | 15621 |
210 − 1 | 15621 | 31242 | 31246 |
211 − 1 | 31246 | 62492 | 62496 |
212 − 1 | 62496 | 124992 | 124996 |
213 − 1 | 124996 | 249992 | 249996 |
214 − 1 | 249996 | 499992 | 499996 |
215 − 1 | 499996 | 999992 | 999996 |
216 − 1 | 999996 | 1999992 | 1999996 |
217 − 1 | 1999996 | 3999992 | 3999996 |
In addition, the sequence may be generated by adding 2n(56) to each subsequent value of
20(56) | 21(56) | 22 (56) | 23(56) | 24(56) | 25(56) | 26(56) | 27(56) | ||||||||
15621 | 31246 | 62496 | 124996 | 249996 | 499996 | 999996 | 1999996 |
→ |
28(56) | 29(56) | 210(56) | 211(56) | 212(56) | 213(56) | |||||||||
3999996 | 7999996 | 15999996 | 31999996 | 63999996 | 127999996 | 255999996 | .... |
An interesting property of this sequence is that at exactly x16 when x16 contains 5 nines each subsequent number takes on the value
Finally, each term in the sequence can be defined by the following equation:
where j ≥ 1. At j = 1 the rightmost term becomes 0 giving x1 = 15621, the first number in the sequence. In addition, a quick check shows that when j = 5, x5 = 15621 + (15625 × 15) = 249996.
Thus, it appears that the monkey coconut problem, in actuality the Diophantine equation 1024x = 15625y + 11529, still has many surprises in store. One of them is that a general solution to this sequence has been found which can generate an infinite number of Diophantine based sequences depending on the value of odd n (see Part IV). Infinite odd n's means infinite sequences.
Go to Part III - A second new sequence.
Go back to Extended Euclidean algorithm Part I for solving the Diophantine equation.
Go back to homepage.
Copyright © 2018 by Eddie N Gutierrez. E-Mail: edguti144@outlook.com