from math import factorial as fc



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

MOD = (10 ** 9)+ 7



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

    if N-K+1<i:

        print((0))

        continue

    bunbo = fc(i)*fc(N-K+1-i)*fc(i-1)*fc(K-i)

    bunsi = fc(N-K+1)*fc(K-1)

    print(((bunsi//bunbo)%MOD))
N,K=list(map(int,input().split()))

mod=10**9+7

kaijo=[1]*(N+1)

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

    kaijo[i]=kaijo[i-1]*i%mod

gyaku=[0]*(N+1)

gyaku[N]=pow(kaijo[N],mod-2,mod)

for i in range(N,0,-1):

    gyaku[i-1]=gyaku[i]*i%mod

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

    if N-K+1<i:

        print((0))

        continue

    bunbo=gyaku[i]*gyaku[N-K+1-i]*gyaku[i-1]*gyaku[K-i]%mod

    bunsi=kaijo[N-K+1]*kaijo[K-1]%mod

    print((bunbo*bunsi%mod))
from math import factorial as fc

N, K = list(map(int, input().split()))
MOD = (10**9) + 7
for i in range(1, K + 1):
    if N - K + 1 < i:
        print((0))
        continue
    bunbo = fc(i) * fc(N - K + 1 - i) * fc(i - 1) * fc(K - i)
    bunsi = fc(N - K + 1) * fc(K - 1)
    print(((bunsi // bunbo) % MOD))

N, K = list(map(int, input().split()))
mod = 10**9 + 7
kaijo = [1] * (N + 1)
for i in range(1, N + 1):
    kaijo[i] = kaijo[i - 1] * i % mod
gyaku = [0] * (N + 1)
gyaku[N] = pow(kaijo[N], mod - 2, mod)
for i in range(N, 0, -1):
    gyaku[i - 1] = gyaku[i] * i % mod
for i in range(1, K + 1):
    if N - K + 1 < i:
        print((0))
        continue
    bunbo = gyaku[i] * gyaku[N - K + 1 - i] * gyaku[i - 1] * gyaku[K - i] % mod
    bunsi = kaijo[N - K + 1] * kaijo[K - 1] % mod
    print((bunbo * bunsi % mod))

-from math import factorial as fc - -MOD = (10**9) + 7 +mod = 10**9 + 7 +kaijo = [1] * (N + 1) +for i in range(1, N + 1): +    kaijo[i] = kaijo[i - 1] * i % mod +gyaku = [0] * (N + 1) +gyaku[N] = pow(kaijo[N], mod - 2, mod) +for i in range(N, 0, -1): +    gyaku[i - 1] = gyaku[i] * i % mod -    bunbo = fc(i) * fc(N - K + 1 - i) * fc(i - 1) * fc(K - i) -    bunsi = fc(N - K + 1) * fc(K - 1) -    print(((bunsi // bunbo) % MOD)) +    bunbo = gyaku[i] * gyaku[N - K + 1 - i] * gyaku[i - 1] * gyaku[K - i] % mod +    bunsi = kaijo[N - K + 1] * kaijo[K - 1] % mod +    print((bunbo * bunsi % mod))