log equation with different bases