n, k = gets.chomp.split.map(&:to_i)

$ff = [1, 1, 2]
def fact(x)
  if $ff[x] then
    return $ff[x]
  else
    r =  x * fact(x-1) % 1000000007
    $ff[x] = r
    return r
  end
end

def conv(i,j)
  return (fact(i) / fact(j) / fact(i-j))
end

def f(n,k,i)
  return conv(n-k+1,i) * conv(i+k, k-i) % 1000000007
end

1.upto(k) do |i|
  puts f(n, k, i)
end