def factorial2(n)
  arr = [*1..n]
    return 1 if n== 0
  loop do
    return arr[0] if arr.length == 1
    arr = arr.each_slice(2).map { |a, b| b ? a * b : a }
  end
end
 
n, k =gets.strip.split.map(&:to_i)
c=a=factorial2(k-1)
k.times do |i|
  i += 1
  combi=1
    i.times{|f|combi=combi*((n-k+1)-f)/(f+1) }
  a=factorial2(k-i)
  b=factorial2(i-1)
  puts combi*c/(a*b)%1000000007
end
