What is the continued fraction representation of $\log a \over \log b$? Both $a, b$ are integers $>1$.
Wolfram gives expressions for $\log(1+z)$ as well as $\log({1+z\over1-z})$, but does not give any explanation for their derivation.
The Handbook of Continued Fractions for Special Functions is excellent but its exposition does not seem to help with the fact that there are two arguments to the expression, not one.
My goal is to produce successive rational approximations to $\log a \over \log b$. I could produce successive rational expressions for $\log a$ and $\log b$ independently and divide to produce an approximation to the ratio, but that approximation is not optimal. Some Mathematica tests using exhastive search for the first few ideal rational approximations show the ratio method is vastly inferior to the optimal answer that treats the values simultaneously.
If you know how to get the simple continued fraction of $n/m$ using the subtractive extended Euclidean algorithm, you do essentially the same thing except instead of subtraction you use division. If you want to find good rational approximations to $\log x/\log y,$ use this algorithm.
First, initial values are $x_0 = x>1, y_0 = y>1.$ In step $n$ we have $x_n = x^{a_n}/y^{b_n},\; y_n = y^{d_n}/x^{c_n}.$ If $x_n=y_n$ then we stop since $x^{a_n+c_n}=y^{b_n+d_n}$ and $\log x/\log y=(b_n+d_n)/(a_n+c_n).$ Otherwise, suppose $x_n<y_n.$ Then let $x_{n+1}=x_n,\; y_{n+1}=y_n/x_n,\;$ and $\;y_{n+1}=y^{d_n+b_n}/x^{a_n+c_n}.$ So now we get that $a_{n+1}=a_n,\; b_{n+1}=b_n,\; c_{n+1}=c_n+a_n,\; d_{n+1}=d_n+b_n.$ Similarly if $x_n>y_n,$ with the roles of $x$ and $y$ reversed. For all $n$, $\;(b_n+d_n)/(a_n+c_n)\approx \log x/\log y=\log_y x.$
For an example, let $x=2,y=10.$ Then, $x_4=1.6=2^4/10^1,\; y_4=1.25=10^1/2^3$ giving $\log_{10}2 \approx (1+1)/(4+3)=2/7$ and next $x_5=1.28=2^7/10^2,\;y_5=1.25=10^1/2^3$ giving $\log_{10}2\approx (2+1)/(7+3)=3/10=.300.$ Next approximation is $4/13=.307\dots\;$ and so on.
(Note) Shanks' algorithm from 1954 is closely related except he finds just the simple continued fraction partial quotients. The algorithm I describe gives rational bounds at each stage using only one division per step. More precisely, $\;b_n/a_n<\log_yx<d_n/c_n\;$ for all $n$.