#include <bits/stdc++.h>
using namespace std;

int64_t mcomb(int n, int k)
{
  static map<pair<int, int>, int64_t> cmb;
  return cmb.count({n, k}) != 0 ? cmb[{n, k}] : n < k ? 0 : k == 0 ? 1 :
    cmb[{n, k}] = (mcomb(n - 1, k - 1) + mcomb(n - 1, k)) % 1000000007;
}

int main()
{
  int n, k;
  cin >> n >> k;
  for (int i = 0; i < k; i++) {
    cout << mcomb(n - k + 1, i + 1) * mcomb(k - 1, i) % 1000000007 << endl;
  }
}
