from math import factorial



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

n_blue, n_red = K, N-K



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

    if k-1 > n_red:

        print((0))

        continue

    retval = (factorial(n_red+1) // (factorial(n_red-k+1) * factorial(k))) * (factorial(n_blue-1) // (factorial(n_blue-k) * factorial(k-1)))

    print((retval % (10**9 + 7)))
import sys

readline = sys.stdin.readline

from math import factorial

MOD = 10 ** 9 + 7



def main():

    N, K = list(map(int, readline().rstrip().split()))

    f1 = factorial(N-K+1)

    f2 = factorial(K-1)

    f3 = 1

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

        if N - K + 1 - i < 0:

            print((0))

            continue

        ans = f2 // (f3 * factorial(K-i))

        f3 *= i

        ans *= f1 // (f3 * factorial(N-K+1-i))

        print((ans % MOD))





if __name__ == '__main__':

    main()
from math import factorial

N, K = list(map(int, input().split()))
n_blue, n_red = K, N - K
for k in range(1, K + 1):
    if k - 1 > n_red:
        print((0))
        continue
    retval = (factorial(n_red + 1) // (factorial(n_red - k + 1) * factorial(k))) * (
        factorial(n_blue - 1) // (factorial(n_blue - k) * factorial(k - 1))
    )
    print((retval % (10**9 + 7)))

import sys

readline = sys.stdin.readline
from math import factorial

MOD = 10**9 + 7


def main():
    N, K = list(map(int, readline().rstrip().split()))
    f1 = factorial(N - K + 1)
    f2 = factorial(K - 1)
    f3 = 1
    for i in range(1, K + 1):
        if N - K + 1 - i < 0:
            print((0))
            continue
        ans = f2 // (f3 * factorial(K - i))
        f3 *= i
        ans *= f1 // (f3 * factorial(N - K + 1 - i))
        print((ans % MOD))


if __name__ == "__main__":
    main()

+import sys + +readline = sys.stdin.readline -N, K = list(map(int, input().split())) -n_blue, n_red = K, N - K -for k in range(1, K + 1): -    if k - 1 > n_red: -        print((0)) -        continue -    retval = (factorial(n_red + 1) // (factorial(n_red - k + 1) * factorial(k))) * ( -        factorial(n_blue - 1) // (factorial(n_blue - k) * factorial(k - 1)) -    ) -    print((retval % (10**9 + 7))) +MOD = 10**9 + 7 + + +def main(): +    N, K = list(map(int, readline().rstrip().split())) +    f1 = factorial(N - K + 1) +    f2 = factorial(K - 1) +    f3 = 1 +    for i in range(1, K + 1): +        if N - K + 1 - i < 0: +            print((0)) +            continue +        ans = f2 // (f3 * factorial(K - i)) +        f3 *= i +        ans *= f1 // (f3 * factorial(N - K + 1 - i)) +        print((ans % MOD)) + + +if __name__ == "__main__": +    main()