#include <bits/stdc++.h>
using namespace std;
using Int = unsigned long long;
Int md = 1000000007;
Int facct(int p){
    Int sum = 1;
    for (int i = 1; i <= p; ++i)
    {
        sum = (i*sum)%md;
    }
    return sum;
}

Int inv(Int a, Int m) {
    Int b = m, u = 1, v = 0;
    while (b) {
        Int t = a / b;
        a -= t * b; swap(a, b);
        u -= t * v; swap(u, v);
    }
    u %= m;
    if (u < 0) u += m;
    return u;
}

int main(){
    cin.tie(0);
    ios::sync_with_stdio(false);

    int n,k; cin>>n>>k;
    for (int i = 1; i <= k; i++){
        Int blue,red;
        blue=(facct(k-1)%md)*inv(facct(k-i)*facct(i-1),md)%md;
        red =(facct(n-k+1)%md)*inv(facct(n-k-i+1)*facct(i),md)%md;
        cout<<((blue%md)*(red%md))%md<<'\n';
    }
}
    