N, K = gets.chomp.split(" ").map(&:to_i)
1.upto(K) do |i|
  if i > N - K + 1
    puts 0
  else
    blue = (1..i + 1).to_a.repeated_combination(N - K + 1 - i).size
    red = (1..i).to_a.repeated_combination(K - i).size
    ans = blue * red % (10 ** 9 + 7)
    puts ans
  end
end
