def _is_digit_power_sum(number: int, power: int) -> bool:
    """ Returns whether a number is equal to the sum of its digits to the given power """
    return number == sum(d ** power for d in map(int, str(number)))