Title says most of it. There is a related thread, but I do not have enough reputation to comment.
Here is the prompt:
A number, a, is a power of b if it is