n,k = gets.chomp.split(" ").map(&:to_i)
div = 10**9 + 7
fact = Array.new(n+1,1)
for i in 1..n do
    fact[i] = fact[i-1] * i
    fact[i] = fact[i]
end

for i in 1..k do
    n1 = n-k+1
    k1 = i
    n2 = k-1
    k2 = i-1
    op1 = fact[n1]*fact[n2]
    op2 = fact[k1]*fact[n1-k1]*fact[k2]*fact[n2-k2]
    puts (op1/op2)%div
end
