import math

N,K = (int(x) for x in input().split())

R = N - K

mod = 10**9 + 7



def fact(n, r):

    return math.factorial(n) // (math.factorial(n - r) * math.factorial(r))



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

  if N - K + 1 < i:

    ans = 0

  else:

    ans = fact(R+1, i)*fact(K-1,i-1)

  print((int(ans)%mod))



  

n,k = (int(x) for x in input().split())

mod = 10**9 + 7

ans = n - k + 1

print(ans)

for i in range(1,k):

  ans = ans*(n-k+1-i)*(k-i)//(i*(i+1))

  print((ans%mod))

  

import math

N, K = (int(x) for x in input().split())
R = N - K
mod = 10**9 + 7


def fact(n, r):
    return math.factorial(n) // (math.factorial(n - r) * math.factorial(r))


for i in range(1, K + 1):
    if N - K + 1 < i:
        ans = 0
    else:
        ans = fact(R + 1, i) * fact(K - 1, i - 1)
    print((int(ans) % mod))

n, k = (int(x) for x in input().split())
mod = 10**9 + 7
ans = n - k + 1
print(ans)
for i in range(1, k):
    ans = ans * (n - k + 1 - i) * (k - i) // (i * (i + 1))
    print((ans % mod))

-import math - -N, K = (int(x) for x in input().split()) -R = N - K +n, k = (int(x) for x in input().split()) - - -def fact(n, r): -    return math.factorial(n) // (math.factorial(n - r) * math.factorial(r)) - - -for i in range(1, K + 1): -    if N - K + 1 < i: -        ans = 0 -    else: -        ans = fact(R + 1, i) * fact(K - 1, i - 1) -    print((int(ans) % mod)) +ans = n - k + 1 +print(ans) +for i in range(1, k): +    ans = ans * (n - k + 1 - i) * (k - i) // (i * (i + 1)) +    print((ans % mod))