0

Find integral solutions of $\left|3^{x}-2^{y}\right| = 1$


In case of $3^{x}-2^{y}=1$, By putting values of x,y to be 0 we get it's not possible and x,y has to be greater than 0. So $3^{x}=1+2^{y} \rightarrow$ $1+2^{y} \equiv 0(\bmod 3)$ which means $y$ is odd. I'm stuck here and don't know what to do next.

1 Answers1

0

This is a very famous problem, but surprisingly I cannot find a duplicate.

I give here the sketch of a solution. You may try to fill in the details.

For $3^x - 2^y = 1$:

Try $y = 0, 1$ directly. Now suppose $y \geq 2$. Mod $4$ shows that $x$ is even. Rewrite the equation as $(3^{x/2} + 1)(3^{x/2} - 1) = 2^y$. Both factors on the left hand side are powers of two, while their difference is $2$.

For $2^y - 3^x = 1$:

Try $x = 0$ directly. Now suppose $x \geq 1$. Mod $3$ shows that $y$ is even. Do the same as above.


As a remark, this is a special case of Catalan's conjecture (now a theorem of Mihăilescu).

WhatsUp
  • 22,201
  • 19
  • 48