from scipy.misc import*

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

for i in range(k):print((comb(n-k+1,i+1,1)*comb(k-1,i,1)%(10**9+7)))
n,k=list(map(int,input().split()));p=n-k+1;i=0;exec('print(p%(10**9+7));i+=1;p=p*(k-i)*(n-k+1-i)//i//-~i;'*k)
from scipy.misc import *

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

n, k = list(map(int, input().split()))
p = n - k + 1
i = 0
exec("print(p%(10**9+7));i+=1;p=p*(k-i)*(n-k+1-i)//i//-~i;" * k)

-from scipy.misc import * - -for i in range(k): -    print((comb(n - k + 1, i + 1, 1) * comb(k - 1, i, 1) % (10**9 + 7))) +p = n - k + 1 +i = 0 +exec("print(p%(10**9+7));i+=1;p=p*(k-i)*(n-k+1-i)//i//-~i;" * k)