#!/usr/bin/ruby
#encoding: utf-8

MOD = 1e9.to_i + 7

#input 
n,k = gets.split.map(&:to_i)

(1..k).each do |i|
  a = Array.new(k-1).combination(i-1).size%MOD
  b = Array.new(n-k+1).combination(i).size%MOD
  puts (a*b)%MOD
end