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:
The equation, which has been solved by the extended Euclidian method, Part I, was used to produce the values of x and y in Part II. Two sequences were constructed previously in Part II and Part III based on the Diophantine equation
The following equations were obtained for x0 and y0 and the first 17 values of each shown in Table I:
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.
We may begin by stating that the following general equation is used in the sequence to convert an element of x into the next element of x:
The equations for each element are set up as follows where k is the coefficient of the rightmost subscripted n and 2 is to the power of logk/log2:
where x1n (an odd number) is the first element of the sequence equal to
To make this clearer let us look at Table II containing the subscripts of x. Here we place the first 8 odd ns, the subscripts of the initial elements, into column 1, then double those numbers, store the result in column 2 and repeat the procedure up to column 8. The upshot is that an even number (kn) in columns n2 thru n8 appears only once in the table as part of a particular sequence and is never part of another sequence:
n1 | n2 | n3 | n4 | n5 | n6 | n7 | n8 |
---|---|---|---|---|---|---|---|
1 | 2 | 4 | 8 | 16 | 32 | 64 | 128 |
3 | 6 | 12 | 24 | 48 | 96 | 192 | 384 |
5 | 10 | 20 | 40 | 80 | 160 | 320 | 640 |
7 | 14 | 28 | 56 | 112 | 224 | 448 | 896 |
9 | 18 | 36 | 72 | 144 | 288 | 576 | 1152 |
11 | 22 | 44 | 88 | 176 | 352 | 704 | 1404 |
13 | 26 | 52 | 104 | 208 | 416 | 832 | 1664 |
15 | 30 | 60 | 120 | 240 | 480 | 960 | 1920 |
As an example, 320 belongs only to the sequence with the odd number 5 residing in column n7: Translation x320 having the value 4999996 shown in the sequence below. Consequently, all numbers in Table I, corresponding to the integer values of x in the Diophantine equation
The previous two sequences starting with x1n equal to 1 and 3, respectively have been covered in Part II and Part III. A third sequence starting with x(1)5 = 78121 is shown below along with 14 subsequent elements of xkn. In addition, the subscripts of xkn will show the exact position of each element in Table I if the table were large enough to include all the elements in the sequence.
As one can see the sequence follows the general solution using the initial x5 = 78121 from Table I.
(Note that 56 is shorthand for 15625 while the arrow denotes continuation of the sequence on the next line):
20(5)(56) | 21(5)(56) | 22(5) (56) | 23(5)(56) | 24(5)(56) | 25(5)(56) | 26(5)(56) | 27(5)(56) | ||||||||
78121 | 156246 | 312496 | 627996 | 1249996 | 2499996 | 4999996 | 9999996 | ||||||||
x5 | x10 | x20 | x40 | x80 | x160 | x320 | x640 |
→ |
28(5)(56) | 29(5)(56) | 210(5)(56) | 211(5)(56) | 212(5)(56) | 213(5)(56) | |||||||||
19999996 | 39999996 | 79999996 | 159999996 | 319999996 | 639999996 | 1279999996 | .... | |||||||
x1280 | x2560 | x5120 | x10240 | x20480 | x40960 | x81920 |
The sequence shows that each subscript is doubled after each addition and that after the 14th addition the number 1279999996 would find itself at position 81920 in Table I. However, a perculiar thing happens at position 640 where the number to the left of the group of 9s takes on the value of
Let me also add that the first element in the sequence and the value therein are both odd. i.e.,
It was previously shown that the odd sequences where n = 1 and n = 3 generated elements having 5 consecutive 9s followed by a 6. In the sequence where
20(25)(56) | 21(25)(56) | 22(25) (56) | 23(25)(56) | 24(25)(56) | 25(25)(56) | 26(25)(56) | |||||||||
390621 | 781246 | 1562496 | 3124996 | 6249996 | 12499996 | 24999996 | 49999996 | ||||||||
x25 | x50 | x100 | x200 | x400 | x800 | x1600 | x3200 |
→ |
27(25)(56) | 28(25)(56) | 29(25)(56) | 210(25)(56) | 211(25)(56) | 212(25)(56) | 213(25)(56) | ||||||||
99999996 | 199999996 | 399999996 | 799999996 | 1599999996 | 3199999996 | 6399999996 | ||||||||
x6400 | x12800 | x25600 | x51200 | x102400 | x204800 | x409600 |
Thus, at some point in the sequence (element positions 7, 8 or 9) the number of consecutive 9s varies with the odd number as tabulated in Table III. This search was done up to n = 100, so it's probably a valid assumption for higher n.
Odd Number (n) | Number of 9's |
---|---|
Multiples of 5 | 6 |
Multiples of 25 | 7 |
All other odd | 5 |
In summary four sequences have been constructed from the Diophantine equation
Go back to Part III.
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