Collatz Streetmap: Difference between revisions

From tehowiki
Jump to navigation Jump to search
imported>Gfis
No edit summary
imported>Gfis
No edit summary
Line 22: Line 22:
The elements which are ≡ 4 mod 6 are emphasized. The construction continues until 63 ≡ 0 mod 3:
The elements which are ≡ 4 mod 6 are emphasized. The construction continues until 63 ≡ 0 mod 3:
  ... (47,''286''), (''94'',95), (31,''190''), (62,63).
  ... (47,''286''), (''94'',95), (31,''190''), (62,63).
For better handling (e.g. in Excel), the roads for all starting values 4, 10, 16, 22 ... 4+6*n are listed as rows in an array:
For better handling (e.g. in Excel), the roads for all starting values 4, 10, 16, 22 ... 4+6*n are listed as rows in an array. The cells in the rows are numbered r<sub>0</sub>, r<sub>1</sub>, r<sub>2</sub> ...
<table>
<table>
<tr align="right">
<tr align="right">
Line 95: Line 95:
<tr align="right"><td><strong>76</strong></td><td class="arr">4</td><td class="d1">25</td><td class="d2">152</td><td class="d2">50</td><td><strong>304</strong></td><td><strong>100</strong></td><td class="d5">101</td><td class="d3">33</td><td><strong>202</strong></td></tr>
<tr align="right"><td><strong>76</strong></td><td class="arr">4</td><td class="d1">25</td><td class="d2">152</td><td class="d2">50</td><td><strong>304</strong></td><td><strong>100</strong></td><td class="d5">101</td><td class="d3">33</td><td><strong>202</strong></td></tr>
</table>
</table>
===Observations===
There is a more '''[http://www.teherba.org/fasces/oeis/collatz/roads.html elaborated example]''' for elements &lt;= 143248. The zoom factor of the web browser may be reduced (with Ctrl "-", to 25 % for example) such that the structure of the lengths of roads can be seen.
In contrast to the usual "chaotic" appearance of Collatz graphs, there is quite an amount of obvious structure in this construction:
===Relation to the Collatz graph===
*
The Collatz graph is the union of all possible Collatz sequences, read backwards. Apart from the initial cycle 1-2-4-1 it should be a tree, and it should contain all positive numbers.
 
Each road contains 2 short pathes in the Collatz graph, the root is left of the starting value of the road, and both proceed "upwards" in the tree. In contrast to the usual "chaotic" appearance of the Collatz graph, there is an amount of obvious structure in the road construction.
====Road length====
* The lengths r<sub>1</sub> of the roads seem to be finite.
* The lengths show a repeating pattern: n<sub>1</sub>,3,3,4,3,3, n<sub>2</sub>,3,3,4,3,3 n<sub>3</sub>,3,3,4,3,3 ...
* At the starting values 4, 40, 364, 3280, 29524 ([http://oeis.org/A191681 OEIS A191681]) the road lengths n<sub>i</sub> have high values 5, 9, 13, 17, 21 which did not occur before. Those starting values are (9<sup>n</sup> - 1) / 2, or 4 + 4*Sum(9<sup>i</sup>, i=0..n).
* The pattern of increasing and decreasing lengths is replicated when subsets of the rows (mod 9, 27, 81 ...) are regarded.

Revision as of 19:22, 24 August 2018

Introduction

When all Collatz sequences are read backwards, they form a graph starting with 1, 2 ..., hopefully without cycles (except for 1,2,4,1,2,4 ...). At each node n in the graph, the path starting at the root (4) and with the last node n can in principle be continued to 2 new nodes by a

  • "m"-step: n * 2 (which is always possible), or a
  • "d"-step: (n - 1) / 3 (which is possible only if n ≡ 1 mod 3).

When n mod 3 = 0, the path will continue with m-steps only, since the duplication maintains the divisibility by 3.

References

Motivation: Patterns in sequences with same length

When Collatz sequences are investigated, there are a lot of pairs of adjacent start values with the same sequence length, and with a characteristical neighbourhood of every other value, for example (from OEIS A070165):

142/104: [142 m  71 d 214 m 107 d 322 m 161 d 484 m  242 m 121 d | 364, 182, 91, ... 10, 5, 16, 8, 4, 2, 1]
           +1  *6+4    +1  *6+4    +1  *6+4    +1   *6+4  *6+2      =    =  ...
143/104: [143 d 430 m 215 d 646 m 323 d 970 m 485 d 1456 m 728 m | 364, 182, 91, ... 10, 5, 16, 8, 4, 2, 1]

Collatz roads

We define a "road" (with 2 parallel "lanes") as a sequence of pairs of elements (in 2 Collatz sequences with adjacent start values, read from right to left). A road is constructed by taking some n (364 in the example, the last common element of the 2 sequences) with n ≡ 4 mod 6, and by applying the steps

d m m d m d m d ... 
m m d m d m d m ...

in alternating sequence, until one of the elements in the pairs becomes divisible by 3. The construction yields one road with an upper lane (left elements of the pairs) and a lower lane (right elements), for example:

364: (121,728), (242,1456), (484,485), (161,970), (322,323), (107,646), (214,215), (71,430), (142,143) ...

The elements which are ≡ 4 mod 6 are emphasized. The construction continues until 63 ≡ 0 mod 3:

... (47,286), (94,95), (31,190), (62,63).

For better handling (e.g. in Excel), the roads for all starting values 4, 10, 16, 22 ... 4+6*n are listed as rows in an array. The cells in the rows are numbered r0, r1, r2 ...

r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15 ...
start len dr0 mr0 mr2 mr3 mr4 dr5 dr6 mr7 mr8 dr9 dr10 mr11 mr12 dr13 ...
Δ6 Δ2 Δ12 Δ4 Δ24 Δ8 Δ8 3Δ8 3Δ48 3Δ16 3Δ16 9Δ16 9Δ96 9Δ32 9Δ32 ...
45182164511023
1033206401213
16353210642021
22474414882829958
283956181123637
3431168221364445
4091380261605253171063435117022237461415
4631592301846061
52317104342086869
58519116382327677251545051
64321128422568485
70323140462809293
764251525030410010133202

There is a more elaborated example for elements <= 143248. The zoom factor of the web browser may be reduced (with Ctrl "-", to 25 % for example) such that the structure of the lengths of roads can be seen.

Relation to the Collatz graph

The Collatz graph is the union of all possible Collatz sequences, read backwards. Apart from the initial cycle 1-2-4-1 it should be a tree, and it should contain all positive numbers.

Each road contains 2 short pathes in the Collatz graph, the root is left of the starting value of the road, and both proceed "upwards" in the tree. In contrast to the usual "chaotic" appearance of the Collatz graph, there is an amount of obvious structure in the road construction.

Road length

  • The lengths r1 of the roads seem to be finite.
  • The lengths show a repeating pattern: n1,3,3,4,3,3, n2,3,3,4,3,3 n3,3,3,4,3,3 ...
  • At the starting values 4, 40, 364, 3280, 29524 (OEIS A191681) the road lengths ni have high values 5, 9, 13, 17, 21 which did not occur before. Those starting values are (9n - 1) / 2, or 4 + 4*Sum(9i, i=0..n).
  • The pattern of increasing and decreasing lengths is replicated when subsets of the rows (mod 9, 27, 81 ...) are regarded.