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

(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 = [*1..blue+blue_box-1].combination(blue).size 
  red_way = [*1..red+red_box-1].combination(red).size
  p blue_way % MOD * red_way % MOD
}