You can write a number as a logarithm equation easily. For example, to write n as the base of b, the log equation is,
x = log_b n