def fact(n)
  (1..n).to_a.inject(1) {|f, i| f*i}
end

n, k = gets.split.map(&:to_i)
ans = []
k.times do |i|
  if i <= (n - k)
    a = fact(k - 1)*fact(n - k + 1)/fact(i)/fact(k - i - 1)/fact(i + 1)/fact(n - k - i)
    ans << a % 1000000007
  else
    ans << 0
  end
end
puts ans