base and pow should have same number.