def nCr(n, r)
  return 1 if r == 0 || r == n
  return ((n-r+1)..n).to_a.inject(1){|a,b|a*b}/(1..r).to_a.inject(1){|a,b|a*b}
end
N, K = gets.split(" ").map(&:to_i)
1.upto(K) do |i|
  div = nCr(K-1, i-1)
  puts (nCr(N-K+1, i)*div)%(10**9+7)
end