3

Update/error: I had a small error in the $(2a+1)$-term in the formula which should have been $(a+1)$ . Because I added now my derivations in long and broad at the end of the question I also rewrite a bit the unknowns $a$ by a shift of $a+1$ to $a$ now reading as $a_1$ and $M_1=M-1$ instead of $M$

I'm looking at whether the rhs in the following equation $$2^W = (2a_1+1)^2 \cdot 2^{M_1}-(a_1)$$ can ever be a perfect power of $2$ for integer $W>0$, $M_1 \ge 0$ and integer (positive or negative) $a_1$.

I know that for $a_1=1$ and $M_1=0$ we have one solution: $$2^W = (3)^2 \cdot 2^0-(+1) = 9 - 1 = 2^3 $$

Q : Is there another or no other solution?
Q : how to do a proof?

I fiddled with this today and didn't get it. Maybe this is easy and I'm only dense at the moment...


Motivation: I'm considering the possibility of 2-step-cycles in the generalized Collatz-problem $ b={m \cdot a +1 \over 2^A} \to a={m \cdot b +1 \over 2^B}$ for odd $m$ and $a,b$ (note: both $a,m$ in the positive and negative).
Letting $a,b$ both be unknown I first checked numerically up to very large positive $m$ and verified the sparseness of known cycles up to some $m \approx 10^{1400}$. But a proof of the nonexistence of further 2-step-cycles seemed out of reach for me.
So I tried with a simplified version, where $b=1$ and only $a$ and $m$ is unknown.

This is what I found so far:
A useful ansatz for the analysis of cycles is to write the equality of products $$ b \cdot a ={m \cdot a +1 \over 2^A} \cdot {m \cdot b +1 \over 2^B}$$ and reorder to arrive at $$ 2^{A+B} = (m+{1 \over a}) \cdot (m+{1 \over b})$$ For convenience I always write $S$ for the sum $A+B$ and to simplify the problem we set here $b=1$ and get the


Main formula: $$ 2^S = (m+1)\cdot(m+1/a) \tag 1$$ Because the second parenthese has a denominator $a$ it follows by the first parenthese, that $m$ must have the structure with some integer $m_1$
$$m=m_1 \cdot a - 1 \tag {1.1}$$ The equation changes to $$ 2^S = (a\cdot m_1)\cdot(a\cdot m_1-1+1/a) \\ = m_1\cdot(a^2\cdot m_1-a+1) \tag 2$$ Because both factors must be perfect powers of $2$ it follows $m_1$ must be a perfect power of $2$ (possibly $2^0=1$), say $m_1=2^M$ so $ m=2^M \cdot a-1$ and then $$ 2^S = 2^M\cdot(a^2\cdot 2^M-a+1) \tag {2.1}$$ Because by definition all $a,b$ in the generalized Collatz-problem with $b={m \cdot a +1\over 2^A} $ are odd we can write the structure of $a$ by some integer $a_1$ as $a=2a_1+1$.
Beforehand, we exclude $a=1$ by the problem definition (we want discuss the existence of a two-step-cycle $1 \to a \to 1$) so a solution $a_1=0$ is not wanted - it would be the trivial one-step-cycle which is existent for many $m$ repeated two times).

What we have now is $$ 2^S = 2^M\cdot((2a_1+1)^2\cdot 2^M-2a_1-1+1)\\ 2^{S-M-1} = (2a_1+1)^2\cdot 2^{M-1}-a_1 \tag 3$$ or simplified for the actual original question $$ 2^W = (2a_1+1)^2\cdot 2^{M_1}-a_1 \tag {3.1 for OP} $$ Small solutions are

 a_1   a   (2a_1+1)^2    rhs                M       m     S     comment   
------------------------------------------------------------------------
  1    3        9       9* 2^{M-1}-1        1      5      5    (well known) solution 1
  0    1        1       2^{M-1}            any    -1      2M   trivial, not wanted           
 -1   -1        1       2^{M-1}+1           1     -3      3     new (?)  
-23  -45     2025  2025*2^{M-1}+23          1    -91     13     new (?) 
 ??? ???      ???                                       .

The likely full set of 2-step-cycles with $b$ varying over the odd integers and $a \ne b$ seems to be

   S    m:   a    b   a ...
   ------:-----------------
   3,   3:  -7,  -5,  -7
   3,  -3:  -1,   1,  -1
   5,   5:   1,   3,   1
   7, -11:  -1,   3,  -1
  13, -91: -45,   1, -45
  15, 181:  27, 611,  27
  15, 181:  35,  99,  35

But this was taken using brute force up to $m \approx 10^{300}$, no analytical evaluation about the possibility of 2-step-cycles with $m$ of larger absolute values has been done.

  • What about $M=0$ and $a=-4,-2,-1$ or $44$ ? – Peter May 29 '18 at 18:14
  • @Peter - very nice! I really seem to have become blocked... thoughts turning in circles. Well, what I'm trying is to find a general expresseion for the question of "2-step-cycles" in the generalized Collatz with $m \cdot x + 1$. I'll see how your hints relate to known cycles. But - because I want to extend my method of looking-at to "3-step-cycles" and so on I'd like to find a more general form to approach the possible sets of solutions. – Gottfried Helms May 29 '18 at 18:57
  • @Peter: hmm, second thought: it seems $M=0$ is required anyway...which is part of the "...maybe it is easy..." – Gottfried Helms May 29 '18 at 19:02
  • Oh, how could I oversee that $M=0$ is necessary ? So, we just have find out for which $a$ the expression $4a^2+10a+8$ if a power of $2$ – Peter May 29 '18 at 19:56
  • Solving that quadratic equation turns out to be same as solving $2^W-8=(k-2)(k+3)$, though not idea how to solve that one. – Sil May 29 '18 at 21:05
  • What might help : $(4a+5)^2+7$ must be a power of $2$ – Peter May 29 '18 at 21:11
  • 1
    https://en.wikipedia.org/wiki/Ramanujan%E2%80%93Nagell_equation – Peter May 29 '18 at 22:18
  • 1
    This link shows that there are no further solutions. – Peter May 29 '18 at 22:18
  • @Peter - again very nice! Would you make an answer of it so I can "accept"? – Gottfried Helms May 29 '18 at 22:49
  • @GottfriedHelms Did I understand right that the numbers correspond with non-trivial cylcles ? If so, to which cycle corresponds $a=44$ ? – Peter May 30 '18 at 18:09
  • 1
    @Peter - I am very sorry, I made a small error in my formula: instead of $2a+1$ it should be there $a+1$. I found this when in the evening I reworked the problem. But I think the special solution $a=44$ is shifted to another value and the special 2-step-cycle is with $m=-91$ and $a=-45$ such that $-45 \to 1 \to -45$ I've added my derivations into the question and had to adapt the variables-notation. But because the problem in its structure sidn't change your hint with the Nagell-equation is possibly still the key. Sorry for all inconvenience! – Gottfried Helms May 30 '18 at 21:42
  • @GottfriedHelms Well, that can happen, but introducing the variables $a_1$ and $M_1$ does not seem a good idea to me. Just to clarify : We search the pairs $(a,M)$ with non-zero integer $a$ and non-negative integer $M$, such that $(2a+1)^2\cdot 2^M-a$ is a power of $2$ , right ? – Peter May 31 '18 at 11:12
  • @Peter: yes, this is right. However - if we use the non-indexed variable-names here I must change the variable-names in my "motivation"- section, and I'm so much used to the given naming-conventions there, that it shall be difficult to not to introduce tiny mistakes again ... – Gottfried Helms May 31 '18 at 11:17
  • The only pairs I found yet are $M=0$ and $a=-23,-1$ or $1$ – Peter May 31 '18 at 11:20
  • @Peter - yes, and the Nagell-equation can possibly be exploited as in your answer before, when we distinguish between odd and even $a$. But I've not yet applied this. – Gottfried Helms May 31 '18 at 11:25

2 Answers2

2

First of all, we can conclude $M=0$ , otherwise the left side would be even and the right side odd.

We get the equation $$2^W=(2a+3)^2-2a-1=4a^2+12a+9-2a-1=4a^2+10a+8$$

Multiplying with $4$ (such that completing the square is possible with an non-fractional term), we have $$2^{W+2}=16a^2+40a+32=(4a+5)^2+7$$

The Nagell-equation $2^m-7=x^2$ has the only positive solutions $x=1,3,5,11,181$, hence $4a+5$ must have one of the values $\pm 1,\pm 3,\pm 5,\pm 11,\pm 181$. This gives the possible values for $a$, namely $-4,-2,-1,0,44$

Peter
  • 86,576
  • 1
    For the accidental reader: this answer discusses the question in its original version having a tiny error. After my editing of the question the answerer has given a new, appropriate, answer to this revised version (please see the "accepted" answer). – Gottfried Helms May 31 '18 at 15:53
1

We want to show that $$(2a+1)^2\cdot 2^M-a=2^W$$ with integers $W,a,M$, $W>0$ , $a\ne 0$ , $M\ge 0$ has the only solutions $M=0$ and $a=-23,-1,1$

In the case $M=0$, we have $$\frac{(8a+3)^2+7}{16}=2^W$$ so we can use Nagell's equation to show that $-23,-1,1$ are the only solutions.

For $M>0$ We can rewrite the left side as $$\frac{[(2a+1)\cdot 2^{M+2}-1]^2+2^{M+3}-1}{2^{M+4}}$$

The given link about Nagell's equation mentions that $u^2+2^m-1=2^n$ has at most $2$ positive solutions for $m \ge 4$. It is easy to see that $u=1$ and $u=2^{m-1}-1$ are solutions, and there are no more.

The expression $(2a+1)\cdot 2^{M+2}-1$ cannot be $\pm1$. Assume the expression is $\pm(2^{M+2}-1)$. In the case of the plus-sign we get $a=0$. The minus-sign also leads easily to a contradiction. Therefore, there are no solutions. This completes the proof.

Peter
  • 86,576
  • 1
    Ahh, very nice. So I also learn now how the Nagell-equation can be used. I'll see what this gives me for the further generalizations of the problem .... – Gottfried Helms May 31 '18 at 13:53
  • @GottfriedHelms What (explained in simple words) is the quintessence of this result concerning cycles in the Collatz-conjecture ? – Peter May 31 '18 at 13:55
  • 1
    For the Collatz-conjecture itself (having $m=3$ and $a \ge 3$ ) it is easy to show the nonexistence of the 2-step-cycle. We can use the formula $2^S = (3+1/a)\cdot(3+1/b)$ (see the second eq. in the "motivation"-section) and insert $b=1$,$a=3$ to see there is no solution, and also that increasing $a,b$ does not help. I want to get more experienced to the full generalization of the Collatz and possibly find usable patterns in the type of equations most useful for the analyses. – Gottfried Helms May 31 '18 at 14:08