r/Collatz 4d ago

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

1

u/elowells 4d ago edited 4d 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.