from scipy.misc import comb

# from scipy.special import comb

MOD = 10**9+7

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

red, blue = N-K, K

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

  print(((comb(red+1, i, exact=True) * comb(blue-1, i-1, exact=True)) % MOD))

MOD = 10**9+7

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

red, blue = N-K, K

ai = red+1

print(ai)

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

    ai = ai * (red-i+2) * (blue-i+1) // (i*(i-1))

    print((ai%MOD))
from scipy.misc import comb

# from scipy.special import comb
MOD = 10**9 + 7
N, K = list(map(int, input().split()))
red, blue = N - K, K
for i in range(1, blue + 1):
    print(((comb(red + 1, i, exact=True) * comb(blue - 1, i - 1, exact=True)) % MOD))

MOD = 10**9 + 7
N, K = list(map(int, input().split()))
red, blue = N - K, K
ai = red + 1
print(ai)
for i in range(2, blue + 1):
    ai = ai * (red - i + 2) * (blue - i + 1) // (i * (i - 1))
    print((ai % MOD))

-from scipy.misc import comb - -# from scipy.special import comb -for i in range(1, blue + 1): -    print(((comb(red + 1, i, exact=True) * comb(blue - 1, i - 1, exact=True)) % MOD)) +ai = red + 1 +print(ai) +for i in range(2, blue + 1): +    ai = ai * (red - i + 2) * (blue - i + 1) // (i * (i - 1)) +    print((ai % MOD))