import std.stdio, std.conv, std.string, std.range, std.algorithm, std.array,
  std.functional, std.container, std.typecons;

enum MOD = 1000000007;

ulong _c(ulong n, ulong k) {
  if(n == 1) return 1;
  if(k == 0 || k == n) return 1;
  return (c(n-1, k) + c(n-1, k-1)) % MOD;
}
alias c = memoize!_c;

void main() {
  auto input = readln.split.to!(int[]);
  int N = input[0], K = input[1];

  ulong calc(int i) {
   return (c(N-K+1, i) * c(K-1, i-1)) % MOD;
  }

  foreach(i; 1..(K+1)) {
    calc(i).writeln;
  }
}
