// copy of https://atcoder.jp/contests/abc132/submissions/6970968 to see what is wrong with my code
#include <iostream>
using namespace std;

long long n, k, M=1e9+7, c[2005][2005];
int main() {
	cin >> n >> k;
	int i, j;
	for(i=0; i<=n; i++) {
		c[i][0] = 1;
		for(j=1; j<=i; j++) c[i][j] = (c[i-1][j-1] + c[i-1][j]) % M;
	}
	for(i=1; i<=k; i++) cout << c[n-k+1][i] * c[k-1][i-1] % M << endl;
	return 0;
}
