Let $a,b$ be integers $>1$ and consider the values
$$3^a - 2^b $$
I was interested in the smallest possible values this can have.
If we use a greedy method by taking $3^n$ for all integers going from $1$ to $n$ and substract the highest possible power of $2$ from it we get the sequence :
Difference between $3^n$ and highest power of $2$ less than or equal to $3^n$ :
$$0, 1, 1, 11, 17, 115, 217, 139, 2465, 3299, 26281, 46075, 7153,...$$
But we immediately notice this is not even a strictly increasing sequence.
Ordering the sequence we get - assuming there are no huge drops in values to get in between values -
$$ 1,11,17,115,139,217,2465,3299,7153,...$$
I wonder how fast this function grows.
It seems to fit well with an exponential trend for some fixed base. Something like $c d^n$ for some fixed $c,d$. Maybe they relate to $\ln(3)/\ln(2)$ ...
But my main concern here, how do I know there are no in between values ?
So to be more specific I ask the following :
How do I know
$$ 217 < 3^a - 2^b < 2465 $$
has no integer solutions $a,b$ ??
Ofcourse I do not want to solve the set of equations
$$3^a - 2^b = 218$$ $$3^a - 2^b = 219$$
etc one by one.
I am looking for something more efficient.
