n, k =gets.strip.split.map(&:to_i)
k.times do |i|
  i += 1
  combi=(1..(n-k+1)).to_a.combination(i).to_a.length
    c=(1..(k-1)).to_a.inject(1) {|f, i| f*i}
  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