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