object Main {

  import scala.collection.mutable.ArrayBuffer

  def main(args: Array[String]): Unit = {
    val sc = new java.util.Scanner(System.in)
    val N, K = sc.nextInt
    val mod = 1000000007L

    val res = new ArrayBuffer[Long]()

    def comb(n: Int, r: Int): Long = {
      if (r > n / 2) {
        comb(n, n - r)
      } else {
        var num = 1L
        for (i <- 1 to r) {
          val tmp = (num * (n - i + 1) / i) % mod
          num = tmp
        }
        num % mod
      }
    }

    def hcomb(n: Int, r: Int): Long = {
      comb(n + r - 1, r)
    }

    for (i <- 0 until K) {
      if (i == 0) {
        res += N - K + 1
      } else {
        val insert = comb(K - 1, i) % mod
        res += insert * hcomb(i + 2, N - K - i) % mod
      }
    }

    res.foreach(println)
  }
}