str = gets.split
N,K = str[0].to_i, str[1].to_i
mod = 1000000007

b = K-1
i,j = b,1
r = N-K+1
x,y = r-1,2

puts r
a0 = K-r
a1 = 0
if K < r
    a1 = K  
else
    a1 = r
end
b = 1
for p in 2..a1 do
    b = b*i/j
    r = r*x/y
    i -= 1
    j += 1
    x -= 1
    y += 1
    puts b*r%mod
end

for p in 1..a0 do
    puts 0
end