added powers of numbers, determines if a number is a power of any other int