INF = 10 ** 9 + 7

class Integer
  def combination(k)
    return 1 if k.zero?

    (self - k + 1..self).inject(:*) / k.factorial
  end

  def factorial
    return 1 if self.zero?

    (1..self).inject(:*)
  end
end

n, k = gets.chomp.split(" ").map(&:to_i)
blue = k
red = n - k

# (1..k).each do |index|
#   insert_spots = index - 1
#   options = blue - 1
#   inner_combi = options.combination(insert_spots)
#   new_red = red - insert_spots
#   all_insert_spots = insert_spots + 2
#   outer_combi = (new_red + all_insert_spots - 1).factorial / (new_red.factorial * (all_insert_spots - 1).factorial)
#   puts inner_combi * outer_combi % INF
# end

(1..k).each do |index|
  insert_spots = index - 1
  options = blue - 1
  inner_combi = options.combination(insert_spots)
  new_red = red - insert_spots
  all_insert_spots = insert_spots + 2
  pre = 1
  (1..all_insert_spots - 1).each do |i|
    pre *= (new_red + i)
  end
  outer_combi = pre / (all_insert_spots - 1).factorial
  puts inner_combi * outer_combi % INF
end