TEISU = 1_000_000_007

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)

1.upto(K) do |i|
  where = (N-K+1).combination(i) % TEISU
  how = (K-1).combination(i-1) % TEISU
  puts (where * how)
end
