from itertools import chain, islice


def a002024(n: int) -> list:
    """
    https://oeis.org/A002024

    >>> a002024(1)
    [1]
    >>> a002024(7)
    [1, 2, 2, 3, 3, 3, 4]
    """
    seq = chain.from_iterable(
        (i for _ in range(i)) for i in range(1, 100))
    return [*islice(seq, n)]