I have the following inequality:
$$\left\lceil \frac{\log((n-1)/6000)}{\log(3)} \right\rceil < \left\lceil \frac{\log((n-1)/3000)}{\log(3)} \right\rceil,$$ where $n$ is a positive integer, and I want to determine precisely for which values of $n$ it is verified.
I have no idea. Is it really possible?
Thanks.
We can write
$$\lceil \log_3\left(\frac{n-1}{3000}\right)\rceil=\lceil \log_3\left(\frac{n-1}{1000}\right)-1\rceil=\lceil \log_3\left(\frac{n-1}{1000}\right)\rceil-1$$
Similarly
$$\lceil \log_3\left(\frac{n-1}{6000}\right)\rceil=\lceil \log_3\left(\frac{n-1}{1000}\right)-\log_3(2)-1\rceil=\lceil \log_3\left(\frac{n-1}{1000}\right)-\log_3(2)\rceil-1$$
Thus the inequality is equivalent to
$$\lceil \log_3\left(\frac{n-1}{1000}\right)-\log_3(2)\rceil<\lceil \log_3\left(\frac{n-1}{1000}\right)\rceil.$$
Now $$\lceil \log_3\left(\frac{n-1}{1000}\right)-\log_3(2)\rceil=\lceil \log_3\left(\frac{n-1}{1000}\right)\rceil$$ if and only if:
$$\lceil \log_3\left(\frac{n-1}{1000}\right)\rceil-1< \log_3\left(\frac{n-1}{1000}\right)-\log_3(2)\leq\lceil \log_3\left(\frac{n-1}{1000}\right)\rceil.$$
The upper bound holds trivially. The other inequality is equivalent to
$$\lceil \log_3\left(\frac{n-1}{1000}\right)\rceil< \log_3\left(\frac{n-1}{1000}\right)+1-\log_3(2)\qquad (*)$$
If you plot
$$\log_3\left(\frac{n-1}{1000}\right)+1-\log_3(2)-\lceil \log_3\left(\frac{n-1}{1000}\right)\rceil$$
you get a nice picture showing which value satisfy the inequality (where the plot is above zero, and where the inequality is an equality (where the plot is below zero).
Now, one particular set of values for which the inequality $(*)$ holds (so that the original equality holds with equality) is where $\log_3\left(\frac{n-1}{1000}\right)$ is an integer, i.e. where there exists an integer $m$ such that $$3^m=\frac{n-1}{1000} \Leftrightarrow n=1000(3^m)+1$$
I am not sure where to go from here.