// https://atcoder.jp/contests/abc132/tasks/abc132_d

fun main() {
    abc132d()
}

fun abc132d() {
    val (n, k) = readLine()!!.split(" ").map { it.toInt() }
    val base = 1_000_000_007L
    val red = n - k
    val com = List(n + 1) { LongArray(n + 1) { 0 } }
    com[0][0] = 1L
    for (i in 1 .. n) {
        for (j in 0..i) {
            if (j == 0 || j == i) {
                com[i][j] = 1L
            } else {
                com[i][j] = (com[i - 1][j - 1] + com[i - 1][j]) % base
            }
        }
    }
    for (i in 1..k) {
        if (red < i - 1) {
            println(0)
            continue
        }
        println(com[k - 1][i - 1] * com[red + 1][i] % base)
    }
}