import core.bitop, std.algorithm, std.ascii, std.bigint, std.conv, std.math,
    std.functional, std.numeric, std.range, std.stdio, std.string, std.random,
    std.typecons, std.container, std.format;
static import std.ascii;

// dfmt off
T lread(T = long)(){return readln.chomp.to!T();}
T[] aryread(T = long)(){return readln.split.to!(T[])();}
void scan(TList...)(ref TList Args){auto line = readln.split();
foreach (i, T; TList){T val = line[i].to!(T);Args[i] = val;}}
alias sread = () => readln.chomp();enum MOD = 10 ^^ 9 + 7;
alias PQueue(T, alias less = "a<b") = BinaryHeap!(Array!T, less);
// dfmt on

void main()
{
    long N, K;
    scan(N, K);
    foreach (i; 1 .. K + 1)
    {
        assert(N - K + 1 <= i);
        long a = combination_mod(N - K + 1, i, MOD);
        long b = combination_mod(K - 1, i - 1, MOD);
        writeln((a * b) % MOD);
    }
}

T combination_mod(T = long)(T n, T k, T m)
{
    if (n < k)
        return 0;
    long a = 1;
    long b = 1;
    long c = 1;
    foreach (i; 1 .. n + 1)
    {
        a = (a * i) % m;
        if (i == k)
            b = a;
        if (i == (n - k))
            c = a;
    }
    T powmod(T = long)(T x, T n, T m)
    {
        if (n < 1)
            return 1;
        if (n & 1)
        {
            return x * powmod(x, n - 1, m) % m;
        }
        T tmp = powmod(x, n / 2, m);
        return tmp * tmp % m;
    }

    long bc = b * c % m;
    long bc_inv = powmod(bc, m - 2, m);
    return a * bc_inv % m;
}
