N, K = gets.split.map(&:to_i)

def combi(n,k)
    k=n-k if 2*k > n
    return 1 if k == 0
    ((n-k+1)..n).reduce(&:*)/((1..k).reduce(&:*))
end

dec = 10**9+7
for i in 1..K do
    puts (combi(N-K+1,i) % dec) * (combi(K-1,i-1) % dec)
end
