

function Main(input) {
  input = input.split("\n");
  var N = parseInt(input[0].split(" ")[0]);
  var K = parseInt(input[0].split(" ")[1]);
  var anssub=new Array();
  var mod =Math.pow(10,9)+7;
  
  var fac = new Array(2001);
  var ifac = new Array(2001);
  fac[0] = 1;
  ifac[0] = 1;
  for(var i = 0; i<2000; i++){
      fac[i+1] = fac[i]*(i+1) % mod;
      ifac[i+1] = ifac[i]*mpow(i+1, mod-2) % mod;
  }
  function mpow(x, n){
    var ans = 1;
    while(n != 0){
      if(n&1) ans = ans*x % mod;
      x = x*x % mod;
      n = n >> 1;
    }
    return ans;
  }
  
  function comb(a, b){
    if(a == 0 && b == 0)return 1;
    if(a < b || a < 0)return 0;
    tmp = ifac[a-b]* ifac[b] % mod;
    return tmp * fac[a] % mod;
  }


  for(var i=1;i<=K;i++){
    var a = comb(N-K+1,i)%mod;
    var b = comb(K-1,i-1)%mod;
    var c = a*b%mod;
    anssub.push(c);
  }
  var ans = anssub.join("\n");

  console.log('%s', ans);
  return ans;
}




function debug(n){
  var input = document.getElementById("input"+n).value;
  var ans=Main(input);
  var result="WA";
  if(ans==document.getElementById("output"+n).value.split("\n")[0]){
    result="AC";
  }
  document.getElementById("result"+n).innerHTML=result;
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));