def ti(number)
  if number.zero?
    1
  else
    number * ti(number - 1)
  end
end

n,k = gets.split(" ").map(&:to_i)
for i in 1..k
  ans=(ti(k-1)/(ti(k-i)*ti(i-1))) * (ti(n-k+1)/(ti(i)*ti(n-k-i+1)))
  puts ans % 1000000007
end
