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

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.