mod = 1000000007

balls, blue_balls = gets.split.map(&:to_i)

red_balls = balls - blue_balls

comb1 = red_balls + 1

def modpow (a, n, mod)
  res = 1
  while n > 0
    if n & 1 != 0
      res = res * a % mod
    end
    a = a * a % mod
    n >>= 1
  end
  res
end

p = 1

(1..blue_balls).each do |i|
  
  puts (p * comb1) % mod
  
  comb1 *= (red_balls + 1 - i)
  comb1 *= modpow(i + 1, mod - 2, mod)
  comb1 %= mod
  
  p *= (blue_balls - i)
  p *= modpow(i, mod - 2, mod)
  p %= mod
end