from operator import mul

from functools import reduce





def cmb(n, r):

	if n < r:

		return 0

	r = min(n - r, r)

	if r == 0:

		return 1

	numer = reduce(mul, list(range(n, n - r, -1)))

	denom = reduce(mul, list(range(1, r + 1)))

	return numer // denom % INF





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

INF = 10 ** 9 + 7



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

	print((cmb(K - 1, i - 1) * cmb(N - K + 1, i) % INF))
from operator import mul

from functools import reduce



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



def cmb(n, r):

  if(n<r):

    return 0

  r=min(r,n-r)

  if(r==0):

      return 1  

  

  upper=reduce(mul, list(range(n, n-r, -1)))

  under=reduce(mul, list(range(1,r+1)))

    

  return upper // under % INF



INF=10**9+7

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

  ret = cmb(N-K+1,i)*cmb(K-1,i-1)

  print((ret%INF))

  
from operator import mul
from functools import reduce


def cmb(n, r):
    if n < r:
        return 0
    r = min(n - r, r)
    if r == 0:
        return 1
    numer = reduce(mul, list(range(n, n - r, -1)))
    denom = reduce(mul, list(range(1, r + 1)))
    return numer // denom % INF


N, K = list(map(int, input().split()))
INF = 10**9 + 7
for i in range(1, K + 1):
    print((cmb(K - 1, i - 1) * cmb(N - K + 1, i) % INF))

from operator import mul
from functools import reduce

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


def cmb(n, r):
    if n < r:
        return 0
    r = min(r, n - r)
    if r == 0:
        return 1
    upper = reduce(mul, list(range(n, n - r, -1)))
    under = reduce(mul, list(range(1, r + 1)))
    return upper // under % INF


INF = 10**9 + 7
for i in range(1, K + 1):
    ret = cmb(N - K + 1, i) * cmb(K - 1, i - 1)
    print((ret % INF))

+ +N, K = list(map(int, input().split())) -    r = min(n - r, r) +    r = min(r, n - r) -    numer = reduce(mul, list(range(n, n - r, -1))) -    denom = reduce(mul, list(range(1, r + 1))) -    return numer // denom % INF +    upper = reduce(mul, list(range(n, n - r, -1))) +    under = reduce(mul, list(range(1, r + 1))) +    return upper // under % INF -N, K = list(map(int, input().split())) -    print((cmb(K - 1, i - 1) * cmb(N - K + 1, i) % INF)) +    ret = cmb(N - K + 1, i) * cmb(K - 1, i - 1) +    print((ret % INF))