#include <iostream>
#include<bits/stdc++.h>
#define MOD 1000000007
using namespace std;
typedef long long ll;
ll n,k,c[2001][2001];
int main(void){
    cin>>n>>k;
    for(int i=0;i<2001;i++){
        for(int j=0;j<=i;j++){
            if(j==0||j==i)c[i][j]=1;
            else c[i][j]=(c[i-1][j]+c[i-1][j-1])%MOD;
        }
    }
    for(ll i=1LL;i<=k;i++){
        cout<<c[n-k+1][i]*c[k-1][i-1]%MOD<<endl;
    }
}
