log(a, b^r)=r log(a, b)