Per the title, what is the fastest way to compute exactly the exponent $m$ of the largest power of 2 such that $2^m < 3^n$? Is it possible to do this in time that is sub-linear in the value of $n$?
I'm wondering if there's a way that is better than simply computing $3^n$ and counting the number of bits in the resulting number.
As others have noted the problem is equivalent to calculating $\log_23=1/\log_32$ accurately enough. A problematic case may occur when $n\log_23$ is very close to an integer, because then you may need to increase the precision to unexpected heights. I don't know how to do that, but one of the authors of
confided to me that they managed to do exactly this in order to solve their problem (described in the title of the paper). May be their technique will help you also?