The Change of Base formula is

You must use the same base, a, to correctly evaluate the quotient.