A divisor-based Collatz-like map with six observed periodic cycles — looking for counterexamples

Hi everyone,

I’ve been experimenting with an integer-dynamics problem that grew out of playing around with Collatz-style behavior, and this seemed like a good place to put it in front of people who enjoy attacking these kinds of maps.

For an integer n >= 2, let D(n) be the largest positive proper divisor of n, and define

T(n) = n + D(n) - D(n+1).

The conjecture is that every starting integer n >= 2 eventually enters one of six currently known periodic cycles.

Their minimum elements are:

2, 3286, 4210, 5182, 54214, 127330

with respective periods:

1, 5, 9, 3, 4, 64.

For example, the period-5 cycle is:

3286 → 4756 → 7063 → 4540 → 6571 → 3286.

I ran a complete finite census of every starting value from 2 through 1,000,000,000 — 999,999,999 consecutive starting values. Every tested start was classified into one of those six cycles, with no seventh cycle found in that interval.

That is finite computational evidence only. There is no general proof that these are the only cycles or that every n >= 2 is eventually captured.

The Version 1.0 research record is on Zenodo:

https://doi.org/10.5281/zenodo.23357210

The code, data, cycle register, verification material and reproduction instructions are on GitHub:

https://github.com/adrienlwashington/six-trap-conjecture

The project was developed with substantial AI assistance, which is disclosed in the repository.

What I’m most interested in now is what happens when people outside the original project start pulling the map apart. A seventh cycle, non-captured behavior, a reproducible computational error, or a structural explanation for the apparent six-attractor behavior would all be interesting.

If anyone here wants to try to break it or sees a connection to known Collatz-type or arithmetic-dynamics machinery, I’d be interested to see what you find.

1 Like

You’ve already worked out the branch equations, so it’s approachable to use Bohm-ish methods on a case-by-case basis. Since every even integer >2 increases under T, the maximum of any cycle has to be odd. That means every branch prime is at most that maximum. Because each branch prime divides either a cycle value or that value plus one, you can work out some bounds.

I don’t think that will generalize widely, but it should let you show things like “there’s only one 3-cycle,” for example. The calculations will get heavy as the number of parity states gets bigger.

I wouldn’t expect unconditional results about this map to be any easier than other maps.

Edit: Changed an erroneous “every integer >2” to “every EVEN integer >2”

Thanks, this is exactly the kind of direction I was hoping people here might see.

I think you mean every even integer >2 increases under T? Odd values >2 decrease, so that would still give the conclusion that the maximum of a nontrivial cycle has to be odd.

The fixed-length, case-by-case approach is really interesting, especially the idea that it might be enough to classify something like the 3-cycles even if it doesn’t generalize to the whole conjecture.

I hadn’t looked at it from the Böhm-style direction before, so I appreciate the reference. I’m curious to see how far that kind of approach can actually be pushed on this map.

Awesome, love this. When I first saw it, it immediately screamed TELESCOPING. I derived a bunch of identities using it:

\operatorname{T}(2k)+\operatorname{T}(2k+1)=4k

and

\displaystyle\sum_{n=m}^{M}{(\operatorname{T}(n) - n)} = \operatorname{D}(m) - \operatorname{D}(M+1)

and for a non-trivial cycle C (set of integers) we have:

\displaystyle\sum_{n \in C}^{}{(\operatorname{T}(n) - n)} =0

Let m \le M with m even and M odd, and N = M-m+1 the number of integers in the interval. Then:

\displaystyle\sum_{n=m}^{M}{(\operatorname{T}(n) - n)} = \operatorname{D}(m) - \operatorname{D}(M+1) = {m \over 2} - {(M+1)\over2} = -{{M-m+1}\over2} = -{N\over2} = -{1\over2}N

Here \operatorname{D}(m) = {m \over 2} and \operatorname{D}(M+1) ={(M+1)\over 2} because m and M+1 are both even. So the average drift over the interval is exactly -{1\over2}.

I’ve also independently verified the conjecture up to 3.4 \times 10^{10} and it holds; only the 6 known cycles occur (largest number so far encountered was 35841257386452377).

Awesome, thank you for digging into it! The telescoping identity is really interesting. I hadn’t noticed that the even and odd pairs give an exact combined drift of minus 1, or that it extends to an exact average of minus 1/2 over those intervals.

And 3.4 × 10^10 definitely got my attention. That’s far beyond the 1 billion starting values in my published census, and that largest excursion is wild.

One question I keep coming back to is simply: why six?

That’s obviously where the Six Trap name came from, because those were the six cycles that survived the original search, but at this point I’m genuinely curious whether there’s some structural reason for exactly six of them. The search range keeps getting pushed farther, different people are looking at the map from different directions, and so far nothing’s produced a seventh cycle. I don’t know whether six is actually fundamental to the system or whether there’s something enormous hiding much farther out, but that question keeps getting more interesting to me.

I originally made Six Trap because I wanted to create my own Collatz style challenge and see how hard I could make it to break. I obviously have no idea whether it’ll ever prove to be anywhere near as difficult as Collatz, but the farther this gets pushed without a seventh cycle or a proof, the more I keep wondering what I actually made.

If you don’t mind sharing, I’d also be really interested in how you did the independent verification to 3.4 × 10^10. Did you write your own implementation, what stopping or cycle criteria did you use, and do you have any code or output from the run? An independent computation extending the original census that far would be especially useful to understand.

Thanks again for taking a serious run at it.

Thank YOU for the conjecture!

Why exactly 6? Whichever the number, it must be enough to cover all n\ge2 integers with preimages of the integers in the loops.

Assume B = B_1 \cup ... \cup B_6 where B_i is the set of all numbers that reach the i-th cycle, so for instance B_1 = \{ n \ge 2: T^j(n) = 2, \text{for some }j\}. I guess these 6(?) cycles are enough to cover all integers, so B=\mathbb{N} \setminus \{0,1\}. Summing up the cycle periods, there’s 86 integers in total. So these 86 integers with T^{-1} generate \mathbb{N} \setminus \{0,1\}?

The verification runs on a custom implementation, but I’m still trying to optimize the code to run faster, so not much statistics is out (let me know if there is anything I can test: a 10^{10} run is fast).

The largest number I’ve tested so far is 34100019201. Below is a count of how many integers reached each cycle:
32332649051 (period 1, min 2)
883477964 (period 9, min 4210)
666164813 (period 5, min 3286)
56977875 (period 64, min 127330)
148760837 (period 3, min 5182)
11988660 (period 4, min 54214)

I should also look for new cycles in a more direct way.

Thank you, this is really interesting! Looking at the conjecture backwards from the 86 integers in the six cycles is a really interesting way to look at it. If those six backward basins really do generate every integer greater than 1, then that would get right at the whole question from a completely different direction.

The basin counts are fascinating too, especially how dominant the cycle at 2 is compared with the other five. It makes me wonder even more why those other five persist at all, and why nothing else has appeared yet.

Since you said a 10^10 run is fast, there’s one comparison I’d really like to see if you’re willing. Could you run your implementation through exactly n = 1,000,000,000 and give me the six basin counts at that cutoff? That’s the exact endpoint of my published census, so if your independently written implementation produces the same six counts there, it would give me a really clean apples to apples comparison between the two implementations.

And yes, I’d definitely be interested in whatever you find by looking for new cycles more directly. That’s exactly the kind of attack I was hoping people would try.

Thanks again for putting this much work into it!

Sure! Here is what I’ve gathered.

Results for 10^9

min period basin
2 1 948,084,782
3286 5 19,551,309
4210 9 25,946,998
5182 3 4,372,632
54214 4 350,595
127330 64 1,693,683

Results for 10^{10}

min period basin
2 1 9,481,615,510
3286 5 195,349,415
4210 9 259,153,034
5182 3 43,624,142
54214 4 3,522,230
127330 64 16,735,668

I’ve also managed to verify it up to 10^{11}! This was a purely does it hold run. Largest value visited was 496,879,408,662,053,013.

Wow, thank you! I checked your 10^9 basin counts against the published Six Trap census, and all six counts match exactly. That’s really cool to see from an independently written implementation.

And now 10^11 is kind of insane lol. Pushing it to 100 billion and still seeing only the same six cycles definitely makes the question I keep coming back to feel even stranger: why six?

Obviously this still isn’t a proof, and there could always be something hiding much farther out, but seeing a separate implementation reproduce the exact published basin counts and then keep pushing the range two orders of magnitude farther without finding a seventh cycle is pretty wild.

That largest visited value is also ridiculous. 496,879,408,662,053,013 and it still came back.

I’m really curious to see where your direct cycle search goes next.

Seriously, thank you for putting this much work into it!

1 Like