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

$memo = {}
def fact(n)
  $memo[n] ||= n < 2 ? 1 : n * fact(n - 1)
end

def comb(n, k, mod = MOD)
  fact(n) / fact(n-k) / fact(k) % mod
end

(1..K).each{|n|
  blue_box = n
  blue = K - n
  red_box = blue_box + 1
  red = (N - K) - (n - 1)
  # p [blue, red]
  blue_way = comb(blue + blue_box - 1, blue)
  red_way = comb(red + red_box - 1, red)
  p blue_way * red_way % MOD
}