def per(n, r)
  ans = 1
  for i in (n-r+1)..n
    ans *= i
  end
  return ans
end

def cmb(n, r)
  return per(n, r) / per(r, r)
end
  
n, k = gets.split.map(&:to_i)

for i in 1..k
  puts (cmb(n-k+1, i) * cmb(k-1, i-1)) % (10**9 + 7)
end