fun main(args: Array<String>) {
    val (n, k) = readLine()!!.split(' ').map(String::toInt)
    val po = 1000000007L
    val comb = Array(n + 1) { Array(n + 1) { 0L } }
    for (i in 0..n) {
        comb[i][0] = 1
        for (j in 1..i) {
            comb[i][j] = (comb[i - 1][j - 1] + comb[i - 1][j]) % po
        }
    }

    for (i in 1..k) {
        val a = comb[n - k + 1][i]
        val b = comb[k - 1][i - 1]
        println((a * b) % po)
    }
}
