def _divisible_slice(perm, divisor, start_index):
    """Check if a three digit slice of a permutation is divisible by divisor"""
    perm_slice = perm[start_index:start_index + 3]
    number = int(''.join(perm_slice))
    return number % divisor == 0