n, k = gets.split(" ").map(&:to_i)
mod = 1000000007
ans = 0
hiku = 0

for i in 1..k do
  if (n-k+i) == n
    ans = "1"
    puts ans
  elsif i == 1
    ans = (((1..(n-k+i)).inject(1,:*) / (1..(n-k)).inject(1,:*))) % mod
    puts ans
    hiku = ans
  else
    ans = (((1..(n-k+i)).inject(1,:*) / (1..(n-k)).inject(1,:*))) / 2 % mod
    puts ans
    hiku = ans
  end
end