minimum of (log a/log x) + (log x/log a), for 1 < a < x