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

def f(a)
  @f ||= [0, 1]
  return 0 if a > K
  @f[a] ||= @f[a - 1] * (K - a + 1) / (a - 1) % MOD
end

def g(a)
  @g ||= [0, 1]
  return 0 if a > N - K
  @g[a] ||= @g[a - 1] * (N - K - a + 1) / (a - 1) % MOD
end

(1 .. K).each{|i| puts f(i)*(g(i + 1) + 2*g(i) + g(i - 1))}