You can calculate a logarithm in a given base by calculating two logarithms in an arbitrary base, using the following equation:
log_b (x) = log_k (x) / log_k (b)
As the windows calculator got a ln button, which stands for the natural logarithm (that is, log in basis e,) then you can press 125, ln, /, 5, ln, and get the desired result.
For bonus points, here is why the above equation holds:
- Let ab = c. Remember that this sets b = log_a (c).
- Take log_k of both sides of the first equation. We get: log_k (ab) = log_k (c)
- Using the logarithmic identity log (xy) = y * log (x), we get b * log_k (a) = log_k (c)
- Hence b = log_k (c) / log_k (a).
- From the first step, we have b = log_a (c), hence log_a (c) = log_k (c) / log_k (a). QED.