import scala.io.StdIn._
import scala.collection.mutable.{HashMap => MMap}
import java.io.PrintWriter
object Main extends App {
  val Mod = 1000000007
  val BIMod = BigInt(Mod)
  val map = new MMap[(Long, Long), BigInt]
  val Array(n, b) = readLine.split(" ").map(_.toInt)
  val r = n - b
  def nCk(n: Long, k: Long): BigInt = {
    map.getOrElse((n, k), {
      val numer = (n - k + 1 to n).foldLeft(1L)((z, i) => z * i % Mod)
      (BigInt(2) to BigInt(k)).foldLeft(BigInt(numer))((z, i) => i.modInverse(BIMod) * z % BIMod)
    })
  }

  val pw = new PrintWriter(System.out)
  for (i <- 1 to b) {
    pw.println(nCk(r + 1, i) * nCk(b - 1, i - 1) % BIMod)
  }
  pw.flush()
}
