n,k = gets.split(' ').map(&:to_i)
wari = 1000000000+7
=begin
def calcu(hajime, owari)
  x = 1
  for i in 0..owari-1
    x *= (hajime-i)
  end
  return x
end
for i in 1..k do
  a = calcu(k-1,i-1)/calcu(i-1,i-1)%wari
  b = calcu(n-k+1,i)/calcu(i,i)%wari
  puts (a*b)%wari
end
=end

def calcu(hajime,owari)
  x = 1
  y = 1
  if owari == 0
    return 1
  else
   for i in 1..owari
    x *= (hajime+1-i)
    y *= i

   end
   return (x/y) % (1000000000+7)
 end

end

for i in 1..k do
  ans = calcu(k-1,i-1) * calcu(n-k+1,i)
  puts ans % (1000000000+7)
end
