import math



def comb(n, k):

    return math.factorial(n) // math.factorial(k) // math.factorial(n - k)



def main():

    MOD = 10 ** 9 + 7

    N, K = list(map(int, input().split()))

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

        if i > N - K + 1:

            print((0))

            continue

        blue = comb(N-K+1,i) % MOD

        red = comb(K-1,i-1) % MOD



        ans = blue * red % MOD



        print(ans)

            



main()
from operator import mul

from functools import reduce



def cmb(n,r):

    r = min(n-r,r)

    if r == 0: return 1

    over = reduce(mul, list(range(n, n - r, -1)))

    under = reduce(mul, list(range(1,r + 1)))

    return over // under



def main():

    N, K = list(map(int, input().split()))

    MOD = 10 ** 9 + 7

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

        if N - K + 1 < i:

            print((0))

            continue

        blue = cmb(K-1,i-1)

        red = cmb(N-K+1,N-K-i+1)

        ans = blue * red

        ans %= MOD

        print(ans)

        





if __name__ == "__main__":

    main()
import math


def comb(n, k):
    return math.factorial(n) // math.factorial(k) // math.factorial(n - k)


def main():
    MOD = 10**9 + 7
    N, K = list(map(int, input().split()))
    for i in range(1, K + 1):
        if i > N - K + 1:
            print((0))
            continue
        blue = comb(N - K + 1, i) % MOD
        red = comb(K - 1, i - 1) % MOD
        ans = blue * red % MOD
        print(ans)


main()

from operator import mul
from functools import reduce


def cmb(n, r):
    r = min(n - r, r)
    if r == 0:
        return 1
    over = reduce(mul, list(range(n, n - r, -1)))
    under = reduce(mul, list(range(1, r + 1)))
    return over // under


def main():
    N, K = list(map(int, input().split()))
    MOD = 10**9 + 7
    for i in range(1, K + 1):
        if N - K + 1 < i:
            print((0))
            continue
        blue = cmb(K - 1, i - 1)
        red = cmb(N - K + 1, N - K - i + 1)
        ans = blue * red
        ans %= MOD
        print(ans)


if __name__ == "__main__":
    main()

-import math +from operator import mul +from functools import reduce -def comb(n, k): -    return math.factorial(n) // math.factorial(k) // math.factorial(n - k) +def cmb(n, r): +    r = min(n - r, r) +    if r == 0: +        return 1 +    over = reduce(mul, list(range(n, n - r, -1))) +    under = reduce(mul, list(range(1, r + 1))) +    return over // under +    N, K = list(map(int, input().split())) -    N, K = list(map(int, input().split())) -        if i > N - K + 1: +        if N - K + 1 < i: -        blue = comb(N - K + 1, i) % MOD -        red = comb(K - 1, i - 1) % MOD -        ans = blue * red % MOD +        blue = cmb(K - 1, i - 1) +        red = cmb(N - K + 1, N - K - i + 1) +        ans = blue * red +        ans %= MOD -main() +if __name__ == "__main__": +    main()