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

@fa_cache = []
@fa_cache[0] = 1

def fa(n)
    @fa_cache[n] || @fa_cache[n] = n * fa(n - 1)
end

cnt = []
(1..k).each do |i|
    cuts = i - 1
    base = fa(k - 1) / (fa(cuts) * fa(k - 1 - cuts))
    cnt[i] = base

    rem = (n - k) - cuts
    slits = cuts + 1
    ptns = fa(rem + slits) / (fa(rem) * fa(slits))

    cnt[i] = base * ptns
end

mod = 10 ** 9 + 7
cnt.drop(1).each { |c| puts c % mod }
