I'm doctoring many weeks on the problem of the existence and set of solutions of 2-step-cycles in the generalized Collatz-problem, written in the Syracuse-form: $$ Y_m(a): b = {ma+1 \over 2^A} \qquad\qquad a,b,m \in Z \text{ odd }, A =\nu_2(ma+1) $$ We discuss the existence of 2-step-cycles of the form $$ b = {ma+1 \over 2^A } \qquad a = {mb+1 \over 2^B } \qquad \qquad B =\nu_2(mb+1) $$ To see, for which numbers $m,a,b$ solutions exist, I've constructed an equation $$ a \cdot b = ({ma+1 \over 2^A })({mb+1 \over 2^B }) \\ 2^{A+B} = (m+{1 \over a })(m+{1 \over b }) $$ $$ 2^S = (m+{1 \over a })(m+{1 \over b }) \qquad \qquad \text{always } S = A+B \tag 1 $$ $$ \small \text{Note: this equality is necessary but -in the generalized version $mx+1$ } \\ \small \text{with $m \in \mathbb Z /2\mathbb Z$ - not sufficient to have a 2-step-cycle defined.} $$ I was unable to solve this problem in general. To get a clue, I reduced complexity, assuming $a=1$ and $b \ne 1$. Still I could only solve the further reduced problem with $b=3$, finding that $m=5$ is required, (and $S=5, A=1, B=4$ follows) and that this is the only solution.
Reduced, but still unsolvable for me so far:
$$ 2^S=2\cdot 4^T = (m+1)(m+{1 \over b }) \qquad \qquad \text{always } S = A+B =2T+1 \text{ odd} \tag 2
$$
What I can do so far, is, that $m$ is odd, so $m=2m'+1$ and $m'+1$ must be a multiple of $b$ such that for instance $m'+1=k \cdot b$ with some $k$ and we get
$$ 2\cdot 4^T = (2m'+2)(2m'+1+{1 \over b }) \\
2\cdot 4^T = 2(m'+1)(2m'+1+{1 \over b }) \\
4^T = (m'+1)(2m'+1+{1 \over b }) \\
$$ getting
$$ 4^T = k\cdot(2b(m'+1)-b+1) = k\cdot(2kb^2-b+1) \tag 3
$$
Here $k$ must be a perfect power of $2$.
But now, fiddling starts and I don't get progress...
Today I fed this problem, leaving $b$ indeterminate, to Wolfram Alpha and got the following set of solutions:
W/A: m=11 S=7 b=-3 (m'=5 T=3) check 128=2∙6∙(10+1+1/-3)=4∙(33-1)
W/A: m=-3 S=3 b=-1 (m'=-2 T=1) check 8=2∙-1∙(-3+1/-1)
W/A: m=3 S=3 b=-1 (m'=1 T=1) check 8=2∙-2∙(-3+1)
W/A: m=5 S=5 b=3 (m'=2 T=2) check 32=2∙3/3∙(15+1)
Hmm. Not only W/A found this solutions, it seems this are also all possible solutions. (Note, btw, that the solution with $m=11$ is a solution for (eq 2) but $b=-3$ is not actually an iteration of $a=1$, so in fact it is of course not a solution in this problem.)
My question: How can this result be derived in this generality? And how is it then determined that the set of solutions is finite?
$a=1$.
$2^S= (m+1)(m+\dfrac{1}{b})\qquad\overset{1+2^{S+2}\to k}{\implies}\qquad(k b - 1)^2 - k (2 b m + b + 1)^2=1-k$
This like as Pell equation with given $k$ and unknowns $b,m$.
gp-code:
Output $(S,b,m)$:
But if $k$ is square, then need other method of solving as difference of squares.
$a\neq1$.
$2^S= (m+\dfrac{1}{a})(m+\dfrac{1}{b})\qquad\overset{1+a^22^{S+2}\to k}{\implies}\qquad(k b - a)^2 - k (2 a b m + a + b)^2=a^2(1-k)$
or
$2^S= (m+\dfrac{1}{a})(m+\dfrac{1}{b})\qquad\overset{a\to u+v\\b\to u-v}{\implies}\qquad \Bigl((m^2 - 2^S) u + m\Bigr)^2 - \Bigl((m^2 - 2^S) v\Bigr)^2 = 2^S$
i.e. for given $S$ set of triples $a,b,m$ is finite.
gp-code:
Output $(S,a,b,m)$: