Maximum odd-part beta difference for different m-cycles

I think at least where I personally realized where a dead end was, about when everyone stopped is from how a better bound on the irrationality measure of log base 2 of 3 would help to or be able to disprove loops if it turned up to have a measure of pretty much 2, but I’m not sure if it would drop to 2, even if we could brute force a near infinite amount of accuracy/precision or find the exact measure, let alone better bounds.

Following this thread, I went looking for a case where the two-member difference method fails, but combining four cycle members succeeds.

Background: The subtraction method finds two cycle members whose difference can’t be an integer. In the extreme case of the high cycle, the difference is \cfrac{2^{l-2}}{2^l - 3^s}. Since the numerator is of the form 2^i 3^j, we can consider this an elementary divisibility-type result, not dependent on the magnitude of 2^l -3^s or the density of odds in the cycle.

Consider the family of parity vectors 01 (10)^b 001 (10)^b.

For example, with b=3, we have v = 01.101010.001.101010.

No two rotations of v have a \beta-difference of the form 2^i 3^j.

But

(\beta_2 - \beta_4) + (\beta_{11} - \beta_{13})
= 2^4(2^9-3^4) - 2^4(2^8-3^4)
= 2^4(256)
= 2^{12}.

So the combination of these four cycle members is

\cfrac{(\beta_2 - \beta_4) + (\beta_{11} - \beta_{13})}{2^{17}-3^8}
= \cfrac{2^{12}}{2^{17}-3^8}

which can’t be an integer.

Although, with two members, you can still get there, if you are trickier:

545 \cdot \beta_{11} - 529 \cdot \beta_{13} = 2^{12} 3^4

which again, 2^l - 3^s can’t divide.

Here’s a case where a three-member combination does better than a two-member one, but in a reliable, repeatable way, rather than in an accidental one-off way.

A 2-cycle has parity vector 1^{a_1} 0^{b_1} 1^{a_2} 0^{b_2}, where l = a_1 + b_1 + a_2 + b_2 and s = a_1 + a_2, and wolog, b_2 > b_1.

The two-member “difference method”, may rule out all 2-cycles of length l and weight s if we show

\max_{v} \min_{w,u} odd(\beta(w)-\beta(u)) < 2^l - 3^s

where v ranges over all 2-cycles and w, u range over rotations of v. That is, every 2-cycle must contain two members whose difference is very small, once 2s and 3s are canceled.

@oros showed that in the case of 2-cycles, the max-min is indeed upper-bounded by O(2^{l-0.38s}), which rules out 2-cycles:

O(2^{l-0.38s}) < 2^l / s^{13.3} < 2^l - 3^s.

It’s hard to predict exactly which (w, u) will be responsible for the true min in any given case, but the upper bound holds.

= = = = = = = = = = = = = =

It seems we can improve this to O(2^{l-0.5s}) by linearly combining three cycle members according to a fixed formula.

= = = = = = = = = = = = = =

Example 1. Take v = 1110011000.

The linear combination for this case is:

\beta_7 - \beta_6 + 3 \cdot \beta_1
= 1505 - 743 + 3 \cdot 331
= 1755
= 3^3 \cdot 65.

The 6-free part (65) is much smaller than 2^l - 3^s = 781.

Normally, I’d say “coincidence” – it’s easy to make this kind of thing happen, especially with short v. But this method seems repeatable, if we replace the coefficient 3 by (2^{b_1}-1) (2^{b_2 - b_1 -1}).

= = = = = = = = = = = = = =

Example 2. Take v=1^3 0 1^5 0^4.

This is the worst-case v among l=13, s=8 (worst for the difference method) – it appears in a table of worst-cases a few posts back. The difference method still solves it:

\beta_6 - \beta_5 = 2^4 \cdot 533

because 533 is smaller than 2^l - 3^s = 1631, but it’s closer than you’d like. The three-member method offers a more comfortable distance:

\beta_6 - \beta_5 + 4 \cdot \beta_1 = 2^2 \cdot 3^4 \cdot 125.

The coefficient 4 comes from the formula (2^{b_1}-1) (2^{b_2 - b_1 -1}).

= = = = = = = = = = = = = =

Example 3. Take v=1^{14} 0^1 1^{27} 0^{23}.

\beta_{17}-\beta_{16} + (2^{b_1}-1)(2^{b_2-b_1-1})\beta_1
= \beta_{17}-\beta_{16} + 2,097,152 \cdot \beta_1 \ \ \ \ \ \ (!!)
= 2^{21} \cdot 3^{14} \cdot 7,651,987,308,443.

7,651,987,308,443 < 2^{65} - 3^{41} = 420,491,770,248,316,829

That much cancellation (2^{21} \cdot 3^{14}) doesn’t look accidental.

= = = = = = = = = = = = =

The proposed, probably-correct upper bound for the 6-free part of this linear combination is O(2^{l-0.5s}).

For Example 3, this comes to:

2^{65-41/2} = 24,879,108,095,803.8,

which sits between 7 trillion and 420 bazillion, where you’d hope.

= = = = = = = = = = = = =

2-cycles are already ruled out by the two-member difference, but the three-member combo rules them out “more strongly.”

Maybe other types of parity sequences which currently escape their fate (due to weakness of the difference method) might succumb to something stronger? Or maybe this is just a one-off trick for 2-cycles.

In the plot below, the red line illustrates the stronger upper bound.

1 Like

I have an inefficient program that gives the smallest linear combination (using any integer coefficients) for every rotation of every rotationally unique vector up to s=8 and I thought I would share a summary of the output for anyone interested. Of course I could provide the raw data too if there was interest. As a refresher the rationale is that since all beta rotations in a 3x+1 cycle must be divisible by the denominator, every combination of them must also be divisible, so if you can get a combination to be smaller than the denominator, you know it’s not a 3x+1 cycle. I was mainly interested with this in seeing what the structure of the vectors with largest smallest combinations were. The vector length is set at the ceiling of s * log(3) / log(2). I only used the odd beta values since even ones are just multiples of the odd ones.

s=1 and s=2 broke the program because they’re too short but they’re pretty trivial so I’m not gonna bother fixing it right now.

for s=3, s=4, and s=5, all vectors have some linear combination equal to 1. As an example here is the full output for the s=5 circuit:

vector: 00011111
odd cycle numerators (beta rotations): [1121, 743, 491, 323, 211]
coefficients: [-219, 0, 500, 0, 0]
so what this means is the actual linear combination that resulted in the smallest number for this case is -219 * 1121 + 500 * 491 = 1. The cycle numerators are listed in reverse but again not worth fixing right now.

s=6 has six vectors with a smallest combination of 5, and the rest of them have a smallest of 1.

s=7 has two vectors with a smallest combination of 23. The rest are 1.

s=8 has 15 vectors with a smallest combination of 7. The rest are 1.

Here are some more full outputs, specifically the rest of the circuits and the two 23 results:

00111
[49, 31, 19]
[15, -1, -37]
sum of combination: 1

0001111
[331, 205, 121, 65]
[-87, 0, 238, 0]
sum of combination: 1

0000111111
[6995, 4565, 2945, 1865, 1145, 665]
[-581, 0, 1380, 0, 0, 0]
sum of combination: 5

000001111111
[43289, 28223, 18179, 11483, 7019, 4043, 2059]
[0, 0, -339, 0, 878, 0, 0]
sum of combination: 1

0000011111111
[133963, 88765, 58633, 38545, 25153, 16225, 10273, 6305]
[599, -2591, 29, -1, 7, 583, 13477, 0]
sum of combination: 1

That one broke the pattern of simple coefficients, but not all of them at s=8 look like that. Half of them still have relatively simple solutions like

0001110111101
[43451, 57391, 37717, 24601, 15857, 20599, 13189, 8249]
[0, 0, -140, 0, 333, 0, 0, 0]

Okay and then the two 23s

000100111111
[31625, 20447, 12995, 8027, 4715, 2507, 6049]
[0, -107, 1, -1, 513, 0, -39]
sum of combination: 23

001011001111
[16721, 10511, 6371, 3611, 8993, 5359, 6509]
[-64, 0, 0, 0, 119, 0, 0]
sum of combination: 23

And finally here’s a list of all the s=8 vectors that had a smallest linear combination of 7 instead of 1:

0000101111111
0000111111101
0001010111111
0001101011111
0001110101111
0001111010111
0001111101011
0001111110101
0010011110111
0010100111111
0010111011011
0011001101111
0011011011101
0011100111011
0101011011011

So yeah this is more like might as well document the results since I took the time to see it for myself. Although I was surprised that so many vectors within each group have the same result. Full transparency the algorithm to find the coefficients is completely vibe coded and I don’t really understand how it works so I can’t say that these are the best or only reasonably small coefficients that give the sum but I am confident it did find the smallest possible sums, and I did have the program verify that they did all add up to what the algorithm said they did. The algorithm is definitely not optimal and I was hoping I could crunch longer vectors to get a sense of the structure of vectors with the biggest smallest combinations but alas. These sums are also tiny compared to the denominators so it really makes me doubt one could be found with a sum larger than the denominator. My hope was to identify a certain kind of vector, like the “diabolical” ones talked about here, that could be extrapolated to arbitrarily large lengths to narrow the most likely search space for counterexamples. Of course you could continue in the opposite direction and hope that they can all be ruled out this way, but it seems unlikely to be generalizable. I was unable to get a meaningful bound with an extremely naive application of Minkowski’s theorem (that is, the bound was not better than you could do trivially).

1 Like

Hey this is great! Nothing like some data when it comes to trying to get unstuck!

Do you know if there’s a max coefficient considered? Maybe you can ask the code?

I noticed for the generalizable 3-member, 2-cycle case, the necessary coefficients got pretty huge. (like 2,097,152)

But for small vectors (and/or non-generalizable combinations), probably smallish coefficients are already optimal in the sense you describe.

Looking forward to sifting through these.

These results were generated with the bounds set at ± infinity. By inspection the coefficients are usually all smaller than the largest beta, but there are exceptions. If I were to get into trying to figure out the coefficients themselves I would have to do this over properly and learn the math, and use a better algorithm from some library. Doing that would also reveal more results for longer vectors from efficiency. That’s not even considering optimizing for cancelling powers of 2 and 3. I have no idea if that’s possible without brute force search. I was really just hoping there would be a clear structural rule for vectors that don’t get ruled out, like we have for self-similarity and number of local minima.

Since your algorithm simply computes the GCD of all beta values, which is also the GCD between any beta value and the denominator \Delta = 2^l-3^s, adding more beta values does not change the smallest combination.

In the case where the GCD is 1, two consecutive odd beta values are necessarily coprime, because \gcd(\beta,3\beta+\Delta)=\gcd(\beta,\Delta)=1. Applying Bézout’s identity, we know that we can find a linear combination of these coprime numerators that reduces to 1. For s=3 and v=00111, we can get the value 1 from the set of numerators [49, 31, 19] with the coefficients [19,-30,0].

The reason why you often get the same smallest combination is that this value must be a small divisor of \Delta which is invariant for fixed s and l.

I’d say that the only interest of adding more beta values in your linear combinations is to identify some pattern that always reduces to a value smaller than \Delta, like in a previous post of @mathkook dealing with 2-cycles. It doesn’t have to be optimal.

about “Roth’ level”…[2610.10192v2] Irrationality exponents of logarithms of positive rational numbers. Aparently inspired by OpenAI paper on the irrationality measure of Pi

1 Like

If it is correct, then it is another breakthrough. AFAIU, it only applies to natural logarithms, so not to \log_2 3, unfortunately .

it says it applies also to rational combinations of logs, so some combinations of log(2) and log(3) like Rhin did. Now in practice, we don’t know how large is the bound q>Q(r,v) where Rhin can be used for any q

Yes, we can apply Corollary 6 to \xi=a \log2 - b\log3 and get a lower bound of the form
|\xi| > q^{-(2+\epsilon)} for q \geq Q(a,b,\epsilon).

But we don’t know how Q(a,b,\epsilon) relates to \max(a,b) like in Rhin’s theorem.

I think I understand now. The smallest combination necessarily equals the GCD of all beta values that you include, so you can never do better in theory than any two beta values by adding more. You also can’t get it any smaller with power of 2 and 3 cancellation either given that’s the case. But regardless the smallest combination can never be more than \Delta, so the idea that some pattern of prospective cycle candidate shapes can be found by looking for small combinations > \Delta doesn’t make sense. That’s humbling I guess. Knowing the basic math really does save you time.

Here’s some more data. This time I looked for the worst cases for the difference method in terms of the maximum odd part beta difference for vectors with the shortest possible LRS. That is, among all the cases where the longest repeated substring in the vector is as small as possible (~log2(k)), what is the maximum difference between the beta values of the two vectors that remain after you align and remove the LRS?

This is another rough attempt, since I had to guess at patterns in order to increase the efficiency of the program. Specifically, when brute-forcing every combination, I noticed that the two beta values seemed to always be the reverse of each other. I also noticed that the first beta started with a string of ones of length one more than the length of the LRS. Therefore I only considered these vectors for this calculation.

Note that these vectors being considered are the “shaved” vectors that remain after removing the LRS. This means that although they must have the same number of ‘1’s and ‘0’s as each other, they do not have to follow the log2(3) ratio of even-to-odd steps, and the LRS being considered is not log2 of this length k’, but of length k such that k - floor(log2(k)) = k’, that is, the smallest possible LRS of the original vector before removing the LRS.

Here is the data, starting with the vectors, one pair per length k’. I began with k’ = 5 to avoid messiness with small numbers in the program.

\beta(b), \beta(c)

11100, 00111
111100, 001111
1111000, 0001111
1111010, 0101111
11110100, 00101111
111101100, 001101111
1111011000, 0001101111
11110110000, 00001101111
111101011000, 000110101111
1111101110000, 0000111011111
11111011100100, 00100111011111
111110111001000, 000100111011111
1111101110011000 (omitting \beta(c) for the rest because it’s just the reverse)
11111011010111000
111110111001101000
1111101101011100100
11111011100110101000
111110111001101011000
1111101110011010110000
11111011100110101100000
111110110101110010100000
1111101101011100100110000
11111011100110101100010000
111110111001101011000100000
1111110110111010111100111000
11111101101110101111001110000
111111011011101011110011100000
1111110110111010111100111000000

Very de Bruijn-like as expected. I haven’t nailed the exact pattern but I’m sure there is one. Now for the table with the actual beta differences for the above vectors. I added the two columns on the right to get an idea of what the exponential form of this pattern might be. I’ll leave it up to others if anyone wants to venture a guess at that and say if it could represent a theoretical limit of the difference method.

Edit: I mistakenly put values for Diff^(1/k’) where I labeled Diff^(1/k). I fixed the heading and added another row with the actual values for Diff^(1/k). To make it clear, I was trying to see what exponential function best models the maximum difference, for example Diff = 2.32^k’ or 2.06^k, but I don’t think there’s enough data to see what these numbers are approaching.

Length k’ | LRS length | Max Difference | Diff Ratio | Diff^(1/k’) | Diff^(1/k)

5 | 2 | 57 | N/A | 2.2448 | 1.78
6 | 3 | 195 | 3.4211 | 2.4081 | 1.80
7 | 3 | 455 | 2.3333 | 2.3973 | 1.84
8 | 3 | 1137 | 2.4989 | 2.4097 | 1.90
9 | 3 | 2955 | 2.5989 | 2.4301 | 1.95
10 | 3 | 6655 | 2.2521 | 2.4117 | 1.97
11 | 3 | 14055 | 2.1119 | 2.3827 | 1.98
12 | 3 | 28861 | 2.0534 | 2.3534 | 1.98
13 | 4 | 120975 | 4.1916 | 2.4602 | 1.99
14 | 4 | 259233 | 2.1429 | 2.4361 | 2.00
15 | 4 | 541253 | 2.0879 | 2.4112 | 2.00
16 | 4 | 1213087 | 2.2413 | 2.4002 | 2.01
17 | 4 | 2531069 | 2.0865 | 2.3805 | 2.02
18 | 4 | 5380813 | 2.1259 | 2.3656 | 2.02
19 | 4 | 10999803 | 2.0443 | 2.3475 | 2.02
20 | 4 | 23108647 | 2.1008 | 2.3345 | 2.03
21 | 4 | 49570949 | 2.1451 | 2.3251 | 2.03
22 | 4 | 101573373 | 2.0491 | 2.3118 | 2.03
23 | 4 | 205578221 | 2.0239 | 2.2984 | 2.03
24 | 4 | 390863533 | 1.9013 | 2.2803 | 2.03
25 | 4 | 785844087 | 2.0105 | 2.2689 | 2.03
26 | 4 | 1680195159 | 2.1381 | 2.2637 | 2.03
27 | 4 | 3369781895 | 2.0056 | 2.2536 | 2.03
28 | 5 | 24090747133 | 7.1491 | 2.3484 | 2.06
29 | 5 | 49713283221 | 2.0636 | 2.3380 | 2.06
30 | 5 | 100958355397 | 2.0308 | 2.3270 | 2.06
31 | 5 | 203448499749 | 2.0152 | 2.3163 | 2.06

Some final comments: It did appear that these vectors represented unique largest beta differences for when I was calculating all of them comprehensively up to k’ = 13. When I was doing that I was calculating the LRS as log2 of the shaved vector, not the original one, but I fixed that in the final calculation here and there shouldn’t be too much of a difference. There seemed to be no shortage of pairs on the minimum side with a difference of 1. Before I thought to fix the number of '1’s and '0’s between vectors in a pair, the maximum beta difference seemed to always be vectors that were inverses of each other (ex. 11010 and 00101) rather than reverses like we see here. Something else I didn’t account for is that if the LRS is so small, the ratio of even to odd steps should be within a certain range of log2(3), so the cases here are worse than the actual worst cases that have the potential to be cycles. Lastly, I don’t even know if this is the worst case for the difference method. The smaller the LRS, the worse the case, but by minimizing LRS, there may be other variables that become more favorable. A brute-force calculation of all admissible vectors might be necessary to find the actual worst cases. This is a lot of asterisks for an already approximate search, and I don’t know if I caught all my mistakes, but I ran the numbers and I think they’re worth more posted than not posted.

I found myself in possession of a few discarded computers and I’ve been wanting to arrive at some idea for a calculation that I could just let them run for like… a week. If anyone has any ideas, I’m open to suggestions. My current idea is just to calculate a ton of metrics for every vector comprehensively up to a certain length.

Agreed that the hard cases are the ones to look at, rather than the easy cases (eg, where gcd(\beta, \delta) =1). If there’s a way to improve on the hard cases, that’d be major progress.