How many answers to $|3^x-2^y|=5$?

379 Views Asked by At

How many answers are there to the equation $|3^x-2^y|=5$ such that $x$ and $y$ are positive integers? Are there infinite? I've found $(2,2)$, $(3,5)$, and $(1,3)$. It seems to explode with larger values, but it's not a steady increase and there seems to be many dips. Do we KNOW that there are no large values for $x$ and $y$ where a power of 3 comes close to a power of 2?

4

There are 4 best solutions below

1
On BEST ANSWER

There are only a finite number of solutions. It was proved by Pillai that $a^x - b^y = k$ where $a,b,k$ are fixed positive integers, $a > 1, b > 1, k \neq 0,$ with positive integer variables $x,y,$ has finitely many solutions. This is from page 51 in Shorey and Tijdeman, Exponential Diophantine Equations. The two papers by Pillai are 1931 and 1936. Both are in the Journal of the Indian Mathematical Society. A detail: if $k$ is larger than some bound that depends on $a,b,$ there is only one solution. Since we have more than one solution for $k = -5,$ it appears Pillai's bound is not tight enough to finish this problem. We just know one solution for $k=5.$

0
On

This is not a complete answer, but I'd just like to note a connection with the concept of irrationality measure. First recall that $\alpha \in \mathbf{R}$ has irrationality measure $\mu(\alpha)$ if, for all $r>\mu(\alpha)$, there are only finitely many pairs of integers $p,q$ such that $$ \left| \alpha - \frac{p}{q} \right| < \frac{1}{q^r}. $$ Note that $\mu(\alpha)=\infty$ is allowed (but we have $\mu(\alpha)=2$ for all but a measure-zero set of reals $\alpha$).

With this definition out of the way, note that $$ \left| 3^x - 2^y \right| = 5 $$ implies $$ 3^x = 2^y \pm 5. $$ Take logs: $$ \log(3^x) = \log(2^y) + \log(1 \pm 5 \cdot 2^{-y}). $$ So by the Taylor expansion of $\log(1+t)$, $$ \left| \log(3^x) - \log(2^y) \right| < 5 \cdot 2^{-y}+\frac{5^2 \cdot 2^{-2y}}{2}+\cdots < 6 \cdot 2^{-y} $$ for $y$ sufficiently large. Hence, using $\log(3^x) = x \log 3$ and $\log(2^y) = y \log 2$ $$ \left| \frac{\log 3}{\log 2} - \frac{y}{x} \right| < \frac{6}{x \log 2} \cdot 2^{-y}. $$ Since the RHS decreases much faster than anything polynomial in $x$ (at least for $y/x$ within some fixed small interval around $\log(3)/\log(2)$), the existence of infinitely many solutions to your equation would imply that $\mu(\log(3)/\log(2))$ were infinite. It is probably known that this latter statement is false, probably by methods similar to the proof in the Shorey/Tijdeman book mentioned by Will Jagy.

0
On

Adapting from my answer to Question 537010:

There is a large literature on such Diophantine questions. One key phrase is "$S$-unit equations". In general it has been known for some time that there are finitely many solutions, and indeed for equations of the form $$\prod_i p_i^{n_i} - \prod_j q_j^{m_j} = r$$ this already follows from Thue's theorem (1909); and by now we even have effective algorithms known to find all solutions. There's still no elementary technique known in general, but in your case (where only the primes 2,3,5) appear an elementary solution is contained in a 1976 paper

L. J. Alex: Diophantine equations related to finite groups, Communications in Algebra 4 #1 (1976), 77-100 (MR54:12634).

[My answer to 537010 cited David Rusin's known-math article on S-units, but the site is no longer supported by math.niu.edu and I can't find it elsewhere.]

0
On

Here's an elementary self-contained argument that there is no solution with $y>5$.

A power of $3$ is congruent to either $1$ or $3 \bmod 8$, so once $y \geq 3$ we must have $3^x - 2^y = -5$.

Once $y \geq 6$, we then have $3^x \equiv -5 \bmod 2^6$, and thus $x \equiv 11 \bmod 16$.

But then $3^x + 5 \equiv 12 \bmod 17$, and no power of $2$ is congruent to $12 \bmod 17$ (the powers of $2 \bmod 17$ are $2,4,8,-1,-2,-4,-8,1,2,4,8,-1$ etc.), QED.