MOD = 1000000007

def fact(n)
  (1..n).inject(1){ |ans,x| ans*x % MOD }
end

def pow(n,k)
  ans = 1
  while k > 0
    ans = ans*n % MOD if k.odd?
    n = n*n % MOD
    k >>= 1
  end
  ans
end

def comb(n,k)
  fact(n) * pow(fact(n-k),MOD-2) % MOD * pow(fact(k),MOD-2) % MOD
end

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

(1..k).each do |i|
  if l-i+1 < 0
    puts(0)
  else
    ans = comb(k-1,i-1) * comb(l+1,i) % MOD
    puts(ans)
  end
end