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

m = 10**9+7

a = 1

b = n-k+1

print((a*b%m))

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

  a *= k+1-i

  a //= i-1

  at = a%m

  b *= n-k+2-i

  b //= i

  bt = b%m

  print((at*bt%m))
n,k = list(map(int,input().split()))

m = 10**9+7

b = 1

r = n-k+1

print((b*r%m))

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

  b *= k-i+1

  b //= i-1

  r *= n-k-i+2

  r //= i

  print((b*r%m))
n, k = list(map(int, input().split()))
m = 10**9 + 7
a = 1
b = n - k + 1
print((a * b % m))
for i in range(2, k + 1):
    a *= k + 1 - i
    a //= i - 1
    at = a % m
    b *= n - k + 2 - i
    b //= i
    bt = b % m
    print((at * bt % m))

n, k = list(map(int, input().split()))
m = 10**9 + 7
b = 1
r = n - k + 1
print((b * r % m))
for i in range(2, k + 1):
    b *= k - i + 1
    b //= i - 1
    r *= n - k - i + 2
    r //= i
    print((b * r % m))

-a = 1 -b = n - k + 1 -print((a * b % m)) +b = 1 +r = n - k + 1 +print((b * r % m)) -    a *= k + 1 - i -    a //= i - 1 -    at = a % m -    b *= n - k + 2 - i -    b //= i -    bt = b % m -    print((at * bt % m)) +    b *= k - i + 1 +    b //= i - 1 +    r *= n - k - i + 2 +    r //= i +    print((b * r % m))