n, k =gets.strip.split.map(&:to_i)
c=(1..(k-1)).to_a.inject(1) {|f, i| f*i}
k.times do |i|
  i += 1
  combi=1
    i.times{|f|combi=combi*((n-k+1)-f)/(f+1) }
  a=(1..(k-i)).to_a.inject(1) {|f, i| f*i}
  b=(1..(i-1)).to_a.inject(1) {|f, i| f*i}
  puts combi*c/(a*b)%1000000007
end