

MOD = 10 ** 9 + 7





def main():

    n, k = list(map(int, input().split()))

    a = aa = n + 1 - k

    b = 1

    bb = k

    for i in range(1, k + 1):

        print(a * b % MOD)

        aa -= 1

        a = a * aa / (i + 1)

        bb -= 1

        b = b * bb / i





if __name__ == '__main__':

    main()



MOD = 10 ** 9 + 7





def main():

    n, k = list(map(int, input().split()))

    a = aa = n + 1 - k

    b = 1

    bb = k

    for i in range(1, k + 1):

        print(a * b % MOD)

        aa -= 1

        a = a * aa // (i + 1)

        bb -= 1

        b = b * bb // i





if __name__ == '__main__':

    main()

MOD = 10**9 + 7


def main():
    n, k = list(map(int, input().split()))
    a = aa = n + 1 - k
    b = 1
    bb = k
    for i in range(1, k + 1):
        print(a * b % MOD)
        aa -= 1
        a = a * aa / (i + 1)
        bb -= 1
        b = b * bb / i


if __name__ == "__main__":
    main()

MOD = 10**9 + 7


def main():
    n, k = list(map(int, input().split()))
    a = aa = n + 1 - k
    b = 1
    bb = k
    for i in range(1, k + 1):
        print(a * b % MOD)
        aa -= 1
        a = a * aa // (i + 1)
        bb -= 1
        b = b * bb // i


if __name__ == "__main__":
    main()

-        a = a * aa / (i + 1) +        a = a * aa // (i + 1) -        b = b * bb / i +        b = b * bb // i