6. (*3+2. m-1)/2^k Tree And Its Regularity
Characters of 2k are very regular, if we set odds of between 4p+4p-1+…+1 and 4p+1+4p+…+1 as one layer, call 2k are the properties of these odds after doing operation, we can find each layer count of 22p+1, 22p,…22, 2 are 1, 1 2 4, 1 2 4 8 16…, their positions have equal interval space, 22p+1 is in the middle between 4p and 4p+1, 22p is in the middle of left part…, first position and step length of odds of different 2k property are different afer doing operation in different layers. In brief, characters of 2k are very regular, we do not introduce in detail. Here we still put focus on odds. See following tree:
…
L6: 129(321.1) 131(81.3) 133(327.1) 135(165.2) 137(333.1) 139(21.5) 141(339.1) 143(171.2) 145(345.1) 147(87.3) 149(351.1) 151(177.2) 153(357.1) 155(45.4) 157(363.1) 159(183.2) 161(369.1) 163(93.3) 165(375.1) 167(189.2) 169(381.1) 171(3.8) 173(387.1) 175(195.2) 177(393.1) 179(99.3) 181(399.1) 183(201.2) 185(405.1) 187(51.4) 189(411.1) 191(207.2) 193(417.1) 195(105.3) 197(423.1) 199(213.2) 201(429.1) 203(27.5) 205(435.1) 207(219.2) 209(441.1) 211(111.3) 213(447.1) 215(225.2) 217(453.1) 219(57.4) 221(459.1) 223(231.2) 225(465.1) 227(117.3) 229(471.1) 231(237.2) 233(477.1) 235(15.6) 237(483.1) 239(243.2) 241(489.1) 243(123.3) 245(495.1) 247(249.2) 249(501.1) 251(63.4) 253(507.1) 255
L5: 65(161.1) 67(41.3) 69(167.1) 71(85.2) 73(173.1) 75(11.5) 77(179.1) 79(91.2) 81(185.1) 83(47.3) 85(191.1) 87(97.2) 89(197.1) 91(25.4) 93(203.1) 95(103.2) 97(209.1) 99(53.3) 101(215.1) 103(109.2) 105(221.1) 107(7.6) 109(227.1) 111(115.2) 113(233.1) 115(59.3) 117(239.1) 119(121.2) 121(245.1) 123(31.4) 125(251.1) 127
L4: 33(81.1) 35(21.3) 37(87.1) 39(45.2) 41(93.1) 43(3.6) 45(99.1) 47(51.2) 49(105.1) 51(27.3) 53(111.1) 55(57.2) 57(117.1) 59(15.4) 61(123.1) 63
L3: 17(41.1) 19(11.3) 21(47.1) 23(25.2) 25(53.1) 27(7.4) 29(59.1) 31
L2: 9(21.1) 11(3.4) 13(27.1) 15
L1: 5(11.1) 7
L0: 3
In above tree, a.b in () means result is a*2
b after front odd doing
operation. m_th layer has 2
m elements, the last element is the convergence state. Characters of 2
k are also very regular, for example, upward from a specific layer, positions of 2 are 1+2i(i>=0), upward from another specific layer, positions of 2
2 are 4+4i, positions of 2
3 are 2+8i, positions of 2
4 are 14+16i…, this can be easily proved strictly. For example, odds of position 2+8i in m layer are 2
m+1-1+(2+8i)*2,(0=<i<=[(2
m-1-1)/4])
Can be divided by 23, result is odd if m+1>3. And because the highest bit of the result odd is 2m, it must be in m-1 layer, downward one layer from m layer.
Through above, we can easily prove that if the property of an odd is 21, it moves upward one layer, if the property of an odd is 22, it moves forward in the same layer, if the property of an odd is 2k(k>2), it moves downward k-2 layers.
In this tree, because element count of each layer is 2 times of which of the downward layer, we can transform all positions to one specific layer. M-1 layer transform to m layer do *2, m+1 layer transform to m layer do /2, etc. Then all transformed positions can not exceed 2m!
Below we try to prove odds in any layer can converge. Normally, we suppose the research sequence is long huge(odds in sequence are huge) sequence.
Suppose a is an odd in m-1 layer, its highest bit is 2m.
Pos of a in m-1 layer is: ,
, b is in layer m-p1+1
Pos of b in m-p1+1 layer is: ,
Pos of b in m-1 layer is:
, is in layer m+3-p1-p2
Pos of c in m+3-p1-p2 layer is:
Pos of c in m-1 layer is:
, ratio p is:
Next try to prove the average value of ratio p is >=3/4 in long valid sequence.
Only these cases ratio p<3/4: p2=1, p1>=2; p2=2, p1>=3. When 2m+1-a>> (corresponding odd in sequence is very big), can be ignored, . Then:
, ,
, ,
If pk appear 2,1,2,1,2,1,2,1..., p(2,1)+ p(1,2)≈3/2, average p≈3/4.
If pk appear 2,1,1,2,1,1,2..., p(2,1)+ p(1,1) + p(1,2)>9/4, average p>3/4.
If pk appear 3,1,3,1,3,1,3,1..., p(3,1)+ p(1,3)<3/2, average p<3/4(>1/2). but this sequence means: first downward one layer, then upward one layer, then downward one layer…, all movements are in the two layers, it must overstep the boundary of the tree(sequence is invalid) or converge.
If pk appear 2,1,3,1,2,1,3,1…, p(2,1)+ p(1,3)+p(3,1) +p(1,2)<12/4, average p<3/4, this serial number could be possible to appear frequently, because the property of the front and back number of 2 are same, and 3 also. In most instances, front and back property are different. Front and back property are same for two numbers frequently are less cases.
If pk appear 2,1,3,2,1,3,2…, average p<3/4, but this sequence means: first forward in one layer, upward one layer, and downward one layer, and forward in that layer…, all movements are in the two layers, it must overstep the boundary of the tree or converge.
If pk appear 2,1,3,1,3,2,1,3,1,3,2..., average p<3/4, but all movements are in the two layers, it must overstep the boundary of the tree or converge.
If pk appear 2,1,3,1,3,2,2,1,3,1,3,2..., average p<3/4, but all movements are in the two layers, it must overstep the boundary of the tree or converge.
Summary, all <3/4 cases in above are invalid or can converge possibly. And we know, Normally (3,1),(4,1),(5,1)…,(3,2),(4,2),(5,2)…appear less times in long sequence, because they are beneficial to convergence. The ratio of them is <3/4 is usually just because the ratio is >3/4 in front of them. In fact, (1,1), (1,2), (2,1), (2,2) appear frequently in long sequence. This case, average ratio p>=3/4.
Above calculation is roughly, mainly because a in above formula changes each time, but the final conclusion is correct. We can also prove it from another view. From ratio formula we know, cases of (forward,upward), (downward,upward), (downward,forward) ratio<3/4; cases of (upward,upward), (downward,downward), (upward,downward), (upward,forward) ratio>3/4; case of (forward,forward) ratio =3/4. cases of >3/4 is more than cases of <3/4. And most importantly, in long huge sequence, the general trend of the sequence is upward in the tree(general forward and downward trend increase the convergence speed), cases of (upward,upward), (upward,forward), (forward,forward) should appear frequently, (upward,upward) should appear most times. Because one step can only upward one layer, and one step can downward one more layers, we can think successive upward steps as one step to achieve reciprocity operation, then the accumulation ratio is big, this guarantee the average ratio is >=3/4.
For example, if appear (4,1) or (4,2), normally it should upward 2 or more layers before to guarantee general upward trend. If front sequence is (1,1,4), then ratio sequence is about:
p,,
If think front upward steps as one step, then front ratio is about:
ratio sequence of (4,1) is about:
p,
back ratio is about:
If 2m+1-a is very big(huge sequence), >>, pf-(3/4)>>|pb-(3/4)|, the average ratio is >3/4.
We can verify it using actual value:
Suppose after (1,1,4,1) operation get odd e, then
Pos of e in m-1 layer is:
If using proportional sequence of ratio 3/4, position is:
pos1>pos2, it is thus clear that the average ratio is >3/4
Other cases are similar, then average ratio is >=3/4.
Even in extreme case (upward,forward,upward), the ratio is about 3/4, and this case is not possible to appear frequently in long sequence.
This way, proved the above conclusion. In fact the average ratio is >3/4(we expand the range just for convenient explanation), so we can use proportional sequence of ratio 3/4 to estimate.
After a do n times operation, pos in m-1 layer is:
When n->∞,
When first number property >4(this is very easy to achieve in long sequence), and when n->∞, the final position is >2m-1, is contradictory. This means, the sequence should become small sequence(once one element become a small odd in our range, the sequence becomes), or converge before a limit steps, or overstep the boundary of the tree(it is not possible in real world).
Still has one puzzle, the transformed positions of equivalence elements(add binary 1s in head) of elements in left half part in m-1 layer are all in right half part in m-1 layer, it is as if exist many loops. It is of course not correct, this is because, although they are equivalence, their functions are different. Other odds can change to them, and they can also converge. Through proof in previous section, odd a can not make a loop in long huge sequence because adding x bits of binary 1 in head, needs about 2.5x steps, and W[a] transformation needs less than 2.4207x steps(this regularity can also be found in above tree). And, if some long sequence exist loops, the transformation position(to m-1 layer) can never reach to or bigger than 2m-1, it is also contradictory.
Maybe it is possible to use proportional sequence of ratio 3/4 to estimate the convergence steps for some long huge sequence(guarantee the average ratio is >3/4). For some odds in m-1 layer, if start odd can reach to or bigger than 2m-1 in limit steps n using ratio 3/4, indicates that the convergence step count should <=n; if can not reach to forever, indicates should use average ratio>3/4, but we don't know the suitable value of ratio, we can do operation several steps until found a suitable odd as start odd and do estimation again.