I have two integer b,n. I need to check if the number n is integer power of number b. 100 is an integer power of 10. As 10^2 = 100. But 110 is not an integer power of 10. How to determine this?
Show admin stats
I have two integer b,n. I need to check if the number n is integer power of number b. 100 is an integer power of 10. As 10^2 = 100. But 110 is not an integer power of 10. How to determine this?