M=10**9+7

class Integer
  def factorial
    (1..self).inject(1){|l,r| l * r }
  end
end

(n,k)=gets.split.map(&:to_i)
b=k
r=n-k

(1..k).each{|i|
    r0 = r - (i-1)
    b0 = b - i
    p ((r0+i).factorial/((i).factorial*(r0).factorial) % M) *  ((b0+i-1).factorial/((i-1).factorial*(b0).factorial) % M)
}