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. In addition, a separate web page produced a new sequence Part II, which though similar to the one being constructed on this page, varies by a factor of 3.
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 = 3×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 | 171871 | 11263 |
12 | 187496 | 12287 |
13 | 203121 | 13311 |
14 | 218746 | 143353 |
15 | 234371 | 15359 |
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 = 3×2k − 1 equation.
y | x | 2x | 2x+4 |
---|---|---|---|
3×210 − 1 | 46871 | 93742 | 93746 |
3×211 − 1 | 93746 | 187492 | 187496 |
3×212 − 1 | 187496 | 374992 | 374996 |
3×213 − 1 | 374996 | 749992 | 949996 |
3×214 − 1 | 749996 | 1499992 | 1499996 |
3×215 − 1 | 1499996 | 2999992 | 2999996 |
3×216 − 1 | 2999996 | 5999992 | 5999996 |
3×217 − 1 | 5999996 | 11999992 | 11999996 |
3×218 − 1 | 11999996 | 23999992 | 23999996 |
3×219 − 1 | 23999996 | 47999992 | 47999996 |
In addition, the sequence may be generated by adding 2n(3)(56) to each subsequent value of
20(3)(56) | 21(3)(56) | 22(3) (56) | 23(3)(56) | 24(3)(56) | 25(3)(56) | 26(3)(56) | 27(3)(56) | ||||||||
46871 | 93746 | 187496 | 374996 | 749996 | 1499996 | 2999996 | 5999996 |
→ |
28(3)(56) | 29(3)(56) | 210(3)(56) | 211(3)(56) | 212(3)(56) | 213(3)(56) | |||||||||
11999996 | 23999996 | 47999996 | 95999996 | 191999996 | 383999996 | 767999996 | .... |
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 = 46871, the first number in the sequence. In addition, a quick check shows that when j = 5, x5 = 46871 + (3×15625 × 15) = 749996.
Although two sequences have been constructed from the Diophantine equation 1024x = 15625y + 11529, there is a general solution to the production of the Diophantine based sequences Part IV which can generate an infinite number of sequences.
Go back to Part II.
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