def combi(n,k)
  k=n-k if 2*k > n
  return 1 if k == 0
  ((n-k+1)..n).reduce(&:*)/((1..k).reduce(&:*))
end

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

blue = k
red = n-k

k.times do |i|
  p (combi(red+1, (i+1)) * combi(blue-1, i)) % (10**9 + 7)
end


