def div(n) ->list:
    """Return divisors of ``n``"""
    result = list()
    for i in range(1, n + 1 // 2):
        if n % i == 0:
            result.append(i)
    result.append(n)
    return result
