N,K = gets.chomp.split().map(&:to_i)
MOD=10**9+7

def fac i
  return 1 if i == 0
  (1..i).inject(&:*)
end

def cal_ordering_balls i
  ( fac(N-K+1)/(fac(i)*fac(N-K+1-i)) * fac(K-1)/(fac(i-1)*fac(K-i)) )%MOD
rescue # N-K < Kの場合はやりようがない。
  0
end

(1..K).each do |i|
  puts cal_ordering_balls(i)
end