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)
n,k=list(map(int,input().split()))

p=n-k+1

i=0

while i<k:print((p%(10**9+7)));i+=1;p=p*(k-i)*(n-k+1-i)//i//-~i
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)

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

-exec("print(p%(10**9+7));i+=1;p=p*(k-i)*(n-k+1-i)//i//-~i;" * k) +while i < k: +    print((p % (10**9 + 7))) +    i += 1 +    p = p * (k - i) * (n - k + 1 - i) // i // -~i