n,k = gets.chomp.split.collect{ |item| item.to_i}
rn = n-k
result = 0
num = 1000000007
data = Hash.new(0)

def calc_c(cn,ck)
  ck = [ck, cn-ck].min
  val = 0
  if ck==0
    val = 1
  else
    val = calc_c(cn-1,ck-1)*cn/ck
  end
  return val
end

k.times do |i|
  ki = i+1
  red_set = rn - ki + 1
  if (rn < (ki-1))
    puts 0
  else
    blue_va = calc_c(k-1,ki-1)
    red_va  = calc_c(rn+1,ki)
    result = blue_va * red_va
    puts result%num
  end
end
