Check if a number can be expressed as x raised to power y - Set 1