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

@h = {}
(0..2000).each do |n|
  @h[n] = 1;next if n == 0
  @h[n] = @h[n-1]*n
end

def f(number)
  @h[number]
end

def c(n,k)
  return 1 if n == 0 or k == 0
  return 0 if n < k
  f(n) /(f(n-k)*f(k))
end
k.times do |i|
  i+=1
  puts c(n-k+1, i)*c(k-1, i-1) % 1000000007
end