MOD = 10 ** 9 + 7

def fac(n, m)
    (n..m).inject(1) {|r, v| r * v % MOD}
end

def power(x, n)
    n == 0 ? 1 : ((n.odd? ? x : 1) * power(x ** 2 % MOD, n / 2) % MOD)
end

def com(n, m)
    m = n - m if n < 2 * m
    fac(n - m + 1, n) * power(fac(1, m), MOD - 2) % MOD
end

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

1.upto(k) do |i|
    puts m + 1 < i ? 0 : com(m + 1, i) * com(k - 1, i - 1) % MOD
end