#include<bits/stdc++.h>
#define M 1000000007
using namespace std;
int A[2005][2005];
int main(){
	int a,b,i,j,c;
	long long w;
	cin>>a>>b,c=a-b;
	for(i=0;i<=a;i++){
		A[i][0]=1;
		for(j=1;j<=i;j++)A[i][j]=(A[i-1][j-1]+A[i-1][j])%M;
	}
	for(i=1;i<=b;i++){
		if(i>c+1){
			cout<<0<<endl;
			continue;
		}
		w=1;
		w=(w*A[c+1][i])%M;
		w=(w*A[b-1][i-1])%M;
		cout<<w<<endl;
	}
}