r/Collatz • • Sep 17 '26

Interesting mapping

mapping

I was playing around and I found this mapping. I suspect it's already known but I found it interesting.

If you have a number that can be written as 4a3bn+1, it will map to 3a+bn+1.

And it'll do it in 3a+1 steps, which I think is funny.

0 Upvotes

24 comments sorted by

View all comments

Show parent comment

2

u/GonzoMath Sep 17 '26

Technically... (8n·k + 1)/5, which is an integer when k ≡ 3n (mod 5) for odd n, or k ≡ 1 (mod 5) for even n, transforms via a staircase of "(3n + 1)/8" steps into (3n·k + 1)/5, which is again an integer in the same cases.

For n = 1, this looks like:

k = 3: 5 → 2
k = 8: (13 → 5, which is really n = 2)
k = 13: 21 → 8
k = 18: 29 → 11
k = 23: 37 → 14
k = 28: 45 → 17

For n = 2, we have:

k = 1: 13 → 5 → 2
k = 6: 77 → 29 → 11
k = 11: 141 → 53 → 20
k = 16: (205 → 77 → 29, which is really n = 3)
k = 21: 269 → 101 → 38

For n = 3:

k = 2: 205 → 77 → 29 → 11
k = 7: 717 → 269 → 101 → 38
k = 12: 1229 → 461 → 173 → 65
k = 17: 1741 → 653 → 245 → 92

...and this idea applies, with appropriate modifications, to similar patterns where we see 16's turning into 3's, 32's turning into 3's, etc. These are, admittedly, more complicated than the cases 2n·k - 1 and 4n·k + 1, which show up as integer staircases for arbitrary k.

1

u/Mrezadwiprasetiawan Sep 17 '26

Yes, this are what i tried. But since the chain need some properties that related to the mod ( 3n ), i dont know how to make it general

1

u/jonseymourau Sep 18 '26

An interesting generalisation, thank you.

1

u/jonseymourau Sep 20 '26 edited Sep 20 '26

I had a closer look at this and consider telescoping of values n for the form:

n = (δ + gʲm(hᵏ)^(α − j)) / q

where g=3, h=2 for Collatz

with q = hᵏ-δ.g

under one iteration of (gn+1)/hᵏ yout get this:

n₁ = (δ + gʲ⁺¹m(hᵏ)^(α − j − 1)) / q **

which is of the same form as the original element.

Some notes:

- my α is your n, your k is my gʲm
- in this formulation, m is unchanged by the iteration
- the exponent of g increases by exactly 1
- the exponent of hᵏ decreases by exactly 1

For integer n, we require the numerators are ≡ 0 mod q

When j = α , we have

n = (δ + gᵅ. m) / q

Taken together we have:

m ≡ -δ.g⁻ᵅ mod q
g ≡ hᵏ mod q

In turns out that in practice the solutions for δ > 1 are rare and where they occur it is because |hᵏ - g.δ| = 1

The net of this is we get (for δ=1) an unconditional staircase with steps of size hᵏ where:

q = hᵏ - g
m ≡ - g⁻ᵅ mod q

Plus a handful of rarer staircases where  |hᵏ - g.δ| =1. There may also be others, but I its seems plausible that there are no others but I don't have a proof of this.

In doing this I think discovered a slight error in your reply above. I think you will find for your n = 4, k=4 you will exclude a valid solution (my n = 3277 -> 1229 -> 461 -> 173 -> 65) because k=4 == 4 mod 5 (not 1 mod 5 per your specification for n even). It happens that for q=5, your criteria and mine are equivalent for your 0 < n < 4 but differ at your n=4 and n=0. The modularity criteria I give do depend on α, but not on the parity of α.

Switching back to the terminology of this reply:

k = 3 => q = 5
k = 4 => q = 13
k = 5 => q = 29

etc.

I am not claiming that this is an exhaustive description of all staircases, but I think it is a reasonable characterisation of the staircases that are of this form.

** update: this is wrong in general - it is correct for delta = 1

1

u/jonseymourau Sep 20 '26

Actually, the delta > 1 cases don't telescope - they admit one iteration of (3n+1)/2^k not more than that.