n,k = gets.split(' ').map(&:to_i)
wari = 1000000000+7
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
