Convert to Logarithmic Form m^n=1