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

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

  def permutation(k)
    return 1 if k.zero?

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

  def factorial
    return 1 if self.zero?

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

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

(1..k).each do |i|
  if i == 1 || i == k
    puts (n-k+1).combination(i) % 1000000007
  else
    puts (n-k+1).permutation(i) % 1000000007
  end
end