It asks to determine, for a given natural number n, if n = a^b for some natural numbers a and b > 1. I've thought of taking the logarithm of n; this gives log n = b log a, but doesn't seem to help the determination if a and b are natural numbers (obviously, if one allows a and b to be real numbers, there are infinitely many solutions to n = a^
This isn't an essential part of the algorithm as it's basically an early-out, but I'm curious anyways.
How do you tell whether n is of the form a^b?












