def split_number(n: int, parts: int):
    """
    Returns a list of integers of length `parts` that sum to `n`
    where the positive difference of any two elements does not exceed 1.
    """
    return [n // parts + (1 if i < n % parts else 0) for i in range(parts)]