def nCr(n, r)
  return 1 if r == 0
  return $c[n][r]
end

N, K = gets.split(" ").map(&:to_i)
$c = Array.new(N+1){Array.new(N+1)}
1.upto(N) do |i|
  1.upto(i) do |j|
    if i == j
      $c[i][j] = 1
    elsif j == 1
      $c[i][j] = i
    else
      $c[i][j] = $c[i-1][j-1] + $c[i-1][j]
    end
  end
end

1.upto(K) do |i|
  div = nCr(K-1, i-1)
  puts (nCr(N-K+1, i)*div)%(10**9+7)
end