n, k = gets.chomp!.split(" ").map(&:to_i)
MOD = (10 ** 9) + 7 

$pascal = {
    0 => {0 => 1},
    1 => {0 => 1, 1 => 1},
}

def pascal(n, i)
    return 1 if n == 0
    return $pascal[n][i] if $pascal[n] && $pascal[n][i]

    if n == i || i == 0
        $pascal[n] ||= {}
        $pascal[n][i] = 1
    else
        $pascal[n] ||= {}
        $pascal[n][i] = (pascal(n-1, i-1) + pascal(n-1, i)) % MOD
    end

    return $pascal[n][i]
end

# 入れられる場所の数
red = n - k + 1

1.upto(k) do |i|
    if i > red
        puts 0
    else
        # i回の操作 => i個に青を分割する
        # 入れられる場所の数に対してi個
        x = pascal(red, i)
        y = pascal(k - 1, i - 1)
        puts (x * y) % MOD
    end
end
