import math


def can_be_written_as_sum_of_nth_power(number: int, exponent: int) -> bool:
    """Check if a given integer number `number` can be written
    as the sum of `exponent`th powers of its digits."""
    sum_of_digit_powers = sum([math.pow(int(digit), exponent) for digit in str(number)])
    return number == sum_of_digit_powers