

def binomial_coefficients_list(n):
    " Return a list of binomial coefficients as rows of the Pascal's\n    triangle.\n\n    Examples\n    ========\n\n    >>> from sympy.ntheory import binomial_coefficients_list\n    >>> binomial_coefficients_list(9)\n    [1, 9, 36, 84, 126, 126, 84, 36, 9, 1]\n\n    See Also\n    ========\n\n    binomial_coefficients, multinomial_coefficients\n    "
    d = ([1] * (n + 1))
    a = 1
    for k in range(1, ((n // 2) + 1)):
        a = ((a * ((n - k) + 1)) // k)
        d[k] = d[(n - k)] = d
    return d

dataset/ETHPy150Open sympy/sympy/sympy/ntheory/multinomial.py binomial_coefficients_list/VarMisuse@84/227 `a`->`d`