def factorial(number)
  (1..number).inject(1,:*)
end

def calc_p(first, second)
  factorial(first) / factorial(first - second)
end

def calc_c(first, second)
  second = first - second if second > (first - second)
  calc_p(first, second) / calc_p(second, second)
end

n, k = gets.chomp.split(/ /).map(&:to_i)

1.upto(k) { |i|
  # (n-k+1)個のスキマからi個のスキマを選ぶ
  # スキマへのボールの入れ方は "k-1個のスキマから(i-1)個のスキマを選ぶ"
  puts calc_c(n - k + 1, i) * calc_c(k - 1, i - 1) % (10**9 + 7)
}
