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.split.map(&:to_i)
r = n-k
mod = 10**9 + 7
flag = false
(1..k).each do |i|
	if flag
		puts 0
	else
		ans = (r+1).combination(i) * (k-1).combination(i-1) % mod
		flag = 0 if ans==0
		puts ans
	end
end

