Expand the Logarithmic Expression log base a of M^r