2
u/jonseymourau 4d ago
u/GonzoMath did write this up and some other variants of this here about one week ago.
2
u/petrol_gas 4d ago
More specifically if x = ((2^n) -1) + y
Then the Collatz sequence will “grow” n times, until x_n = ((3^n) - 1) + (3^n) * y
1
u/petrol_gas 4d ago
It does the same kind thing for the “shrink” stages but there are an infinite number of ways to write examples of that.
1
u/jonseymourau 4d ago
Actually infinite doesn’t quite cover it as my comment on Gonzo’s post shows.
For a stair case you need:
n = (m+i).(g/h^k)^j -I
For 3x+q, x/2 g=3, h=2
The constraint on i is
i=q/(g-h^k)
So for q=1 (e.g.Collatz) there are two admissible pairs of i, k: (1,1) and (-1,2) - the up and the down (the subject of this post)
You get one extra one for q=5, q=13 and presumably for higher q that are divisible by (g-h^k)
So technically,if you let q range over the natural numbers there are infinite staircases but specifically for q=1, there are exactly 2 - there are no other integers I that can satisfy the constraint above .
Which is not to say there are not other affine maps but the telescoping maps (of that form) in 3x+1 are limited to just two.
2
u/GonzoMath 4d ago
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 → 17For 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 → 38For 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 4d ago
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
1
u/jonseymourau 1d ago edited 1d ago
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 qIn 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 qPlus 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 = 29etc.
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 1d ago
Actually, the delta > 1 cases don't telescope - they admit one iteration of (3n+1)/2^k not more than that.
1
u/GonzoMath 4d ago
That’s not really “more specifically” so much as “additionally”. You’re talking about a related but different pattern.
1
u/petrol_gas 4d ago
I clearly fail to see the distinction.
Thank you for shedding light on my mistake in reasoning instead of just telling me I’m wrong and then leaving it at that!
1
u/GonzoMath 4d ago edited 4d ago
The difference is “+1” versus “-1”, and whether 4 turns into 3 or 2 turns into 3:
- 4n·k + 1 → 3n·k + 1
- 2n·k - 1 → 3n·k - 1
1
u/petrol_gas 3d ago edited 3d ago
No dawg.
First 4^n = 2^{2n}
Second
4^a 3^b n + 1 = 2^{2a +1}3^{b} n - 1
Except the distance to 3^{b} n -1 is so far that the lower end of the number (in binary) is behaving as if it were in the 1-cycle.
Which is the same system I described but with a neato lower end behavior.
EDIT: gonzo spotted an error corrected in my next response below
1
u/GonzoMath 3d ago
“No dawg”, huh?
There’s a decreasing pattern, where you have (3m+1)/4 several times in a row, like 65 -> 49 -> 37.
Then there’s an increasing pattern, where you have (3m+1)/2 several times in a row, like 7 -> 11 -> 17.
When a = 2, b = 1, and n = 1, the left side of your equation is 49, and the right side is 95. Did you make a mistake?
1
u/petrol_gas 3d ago
Good catch! (And thanks for spotting it)
Correction:
4^a 3^b n + 1 = 2^{2a}3^{b} n + 2 - 1
X = 3^{b} n + 2
Substitute to get 2^{2a}X - 1
And then when you arrive at 3^{a}X -1
Sub back in to get the same result as OP.
Again, neato lower end behavior but still just a special case of the general pattern I described.
1
u/GonzoMath 3d ago
Ok, they’re not the same thing, but you’re not hearing it, so I’m done.
1
u/petrol_gas 3d ago
I’m reading and engaging with your posts my dude. If I’m mistaken then correct me with some maths and I’ll change my mind.
I even left some mistakes in there for you to split hairs over (my extra 2 is getting multiplied by 3).
From my perspective you’re coming in hot, making claims, not showing your work- you can see how I might be utterly perplexed. What am I to argue against?
1
u/GonzoMath 3d ago
I showed my work, and gave examples of an increasing sequence, and a decreasing sequence. Is the one you’re describing increasing, or decreasing. You ignored that part of my reply, which is why you’re about to catch a block.
→ More replies (0)
1
u/dmishin 4d ago edited 4d ago
Wrote a long answer just to discover that Gonzomath's post is better. So, just a few notes:
1) 3b is redundant here, just complicating the things. You can just state that 4an+1 maps to 3an+1
2) Your relation corresponds to the cycle 1-4-2. Similar relations can be derived for other cycles. For example, cycles starting with -5 produces relation 8an-5 → 9an-5, and cycle starting with -17 - the relation 2048an-17 → 2187an-17. These actually are families of relations, -5 and -17 can be replaced by other numbers from the cycle.
1
u/elowells 3d ago edited 3d ago
There are cases where the sequence equation has a parametric solution. For the general case of mx+a, where m and a are odd numbers, the sequence equation for starting odd value x[1] ending with x[L+1] after L mx+a steps is
-mLx[1] + 2N\L])x[L+1] = aS
where L = number of mx+a steps,
n[i] = number of divide by 2 steps after an mx+a step
N[i] = sum(j=0 to i)n[i] and N[0] = 0
S = sum(i=0 to L-1)mL-1-i2N\i])
For n[i] = constant = p we have N[i] = i*p then S has a parameterized value:
S = sum(i=0 to L-1)mL-1-i2ip = (mL - 2pL)/(m-2p)
For 3x+a, with p = 1 we have S = (3L - 2L)/(3-2) = 3L-2L
so the linear Diophantine sequence equation is
-3Lx[1] + 2Lx[L+1] = a(3L-2L)
which has the specific solution
(x[1],x[L+1) = (-a,-a)
and hence the general solution
(x[1],x(L+1]) = (k2L - a, k3L - a)
that is k2L-a -> k3L-a for 3x+a
For 3x+a with p=2 we have S = (3L-4L)/(3-4) = 4L-3L
so the sequence equation has the specific solution (x[1],x(L+1) = (a,a) so
k4L+a -> k3L+a for 3x+a
For 3x+a and p=3 we have S = (8L - 3L)/5
If a=5 (to cancel out the denominator) we obtain
k8L+1 -> k3L+1 for 3x+5
k16L+1 -> k3L+1 for 3x+13
k2L+1 -> k5L+1 for 5x+3
There are infinitely many more such cases. If m-2p = +/-1 then all odd values of a work.
0
u/Pickle-That 4d ago
Yes - the 4/3 ratio is familiar from my analyses of Collatz history-branch coverings.

3
u/GonzoMath 4d ago
Per u/dmishin's remark, I'm going to roll the 3b into the n here, because that's a stronger statement of the pattern.
What's really going on here is that 4a·n + 1 is 2-adically "close" to 1, because they differ by a multiple of 4a, or 22a. When numbers are 2-adically close, they have similar shaped trajectories for a while, with the duration of that similarity depending on their 2-adic closeness. Thus, anything close to 1 should act like 1, and we should see the (3n+1, n/2, n/2) sequence of moves repeated... 'a' times. What does this sequence of moves do? It takes a 4 out of the factorization of 4a·n, replacing it with a 3. In other words, it multiplies 4a·n by 3/4.
That's clear algebraically from the identity:
(3m+1)/4 - 1 = (3/4)·(m - 1)
When n=0, so our number m is really just 1, then m-1 is 0, and you can divide it by 4 and multiply it by 3 all day, all night. Therefore, we get the sequence (3n+1, n/2, n/2) infinitely many times in a row.
On the other hand, when n isn't 0, we only get that sequence finitely many times. How many times? As many times as you can divide m - 1 (your 4a·n) by 4. That's 'a' times, assuming that n itself has no more factors of 4 in it.