[…] To compute the logarithm for an arbitrary base, b, you can use the "change-of-base formula," ( log_b(n) = log_k(n) / log_k(b) ) where k can be any convenient base. For details, see a previous article on this topic. …