import math

def bi(x, y):

  if x < y or y < 0 or x < 0: return 0

  if y == 0: return 1

  return math.factorial(x) // math.factorial(y) // math.factorial(x - y)



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

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

  print((bi(k - 1, i - 1) * bi(n - k + 1, i) % (10**9 + 7)))

def BC132_D():

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

    f = [1] * max(k, n - k + 2)

    for i in range(1, len(f)):

        f[i] = f[i - 1] * i



    def comb(n, r):

        if n < r: return 0

        return f[n] // f[r] // f[n - r]



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

        print((comb(k - 1, i - 1) * comb(n - k + 1, i) % (10**9 + 7)))



BC132_D()

import math


def bi(x, y):
    if x < y or y < 0 or x < 0:
        return 0
    if y == 0:
        return 1
    return math.factorial(x) // math.factorial(y) // math.factorial(x - y)


n, k = list(map(int, input().split(" ")))
for i in range(1, k + 1):
    print((bi(k - 1, i - 1) * bi(n - k + 1, i) % (10**9 + 7)))

def BC132_D():
    n, k = list(map(int, input().split(" ")))
    f = [1] * max(k, n - k + 2)
    for i in range(1, len(f)):
        f[i] = f[i - 1] * i

    def comb(n, r):
        if n < r:
            return 0
        return f[n] // f[r] // f[n - r]

    for i in range(1, k + 1):
        print((comb(k - 1, i - 1) * comb(n - k + 1, i) % (10**9 + 7)))


BC132_D()

-import math +def BC132_D(): +    n, k = list(map(int, input().split(" "))) +    f = [1] * max(k, n - k + 2) +    for i in range(1, len(f)): +        f[i] = f[i - 1] * i + +    def comb(n, r): +        if n < r: +            return 0 +        return f[n] // f[r] // f[n - r] + +    for i in range(1, k + 1): +        print((comb(k - 1, i - 1) * comb(n - k + 1, i) % (10**9 + 7))) -def bi(x, y): -    if x < y or y < 0 or x < 0: -        return 0 -    if y == 0: -        return 1 -    return math.factorial(x) // math.factorial(y) // math.factorial(x - y) - - -n, k = list(map(int, input().split(" "))) -for i in range(1, k + 1): -    print((bi(k - 1, i - 1) * bi(n - k + 1, i) % (10**9 + 7))) +BC132_D()