n, k = gets.split.map(&:to_i)

def blue(k, i)
  return 0 if k < i
  h(i, k - i)
end

def red(k, i)
  need = i - 1
  return 0 if k < need
  h(i + 1, k - need)
end

class Integer
  def ex
    return 1 if self.zero?
    (1..self).inject(:*)
  end
end

def c(n, r)
  # puts "c(#{n}, #{r})"
  n.ex / (r.ex * (n - r).ex)
end

def h(n, r)
  # puts "h(#{n}, #{r})"
  c(n + r - 1, r)
end

(1..k).each do |i|
  # 青の並べ方: k個のボールをi箇所に分ける
  ans = blue(k, i) * red(n - k, i)
  puts ans % (10 ** 9 + 7)
end
