using System;
using System.IO;
using System.Text;

namespace Contest
{
    class Program
    {
        private Scanner sc;

        private int Mod = 1000000007;

        private long[,] Dp = new long[4000, 4000];

        public void Solve()
        {
            sc = new Scanner();
            int N = sc.NextInt();
            int K = sc.NextInt();
            var sb = new StringBuilder();
            CalcDp();
            for (int i = 1; i <= K; i++)
            {
                // K個をi個に分ける
                // K-1 C i -1
                long a = Combination(K - 1, i - 1);

                // N-K を　i-1 , i ,i+1

                long b;
                if (N - K == 0)
                {
                    if (i == 1)
                    {
                        b = 1;
                    }
                    else
                    {
                        b = 0;
                    }
                }
                else
                {
                    b = Combination(N - K - 1, i - 1) * 2;
                    b += Combination(N - K - 1, i);
                    b += Combination(N - K - 1, i - 2);
                    b %= Mod;
                }

                //Console.WriteLine($"{i} {a} {b}");
                sb.AppendLine(((a * b) % Mod).ToString());
            }
            Console.Write(sb.ToString());
            //Console.WriteLine();
            //Console.WriteLine(Combination(0, 0));
        }

        private void CalcDp()
        {
            Dp[0, 0] = 1;

            for (int i = 0; i < 4000; i++)
            {
                for (int j = 0; j < 4000; j++)
                {
                    if (i == 0 || j == 0)
                    {
                        Dp[i, j] = 1;
                    }
                    else
                    {
                        Dp[i, j] = Dp[i - 1, j] + Dp[i, j - 1];
                        Dp[i, j] %= Mod;
                    }
                }
            }
        }

        // n C m
        private long Combination(int n, int m)
        {
            if (m < 0) return 0;
            if (n < m) return 0;
            return Dp[n - m, m];
        }

        static void Main() => new Program().Solve();
    }
}

class Scanner
{
    public Scanner()
    {
        _stream = new StreamReader(Console.OpenStandardInput());
        _pos = 0;
        _line = new string[0];
        _separator = ' ';
    }
    private readonly char _separator;
    private readonly StreamReader _stream;
    private int _pos;
    private string[] _line;
    #region get a element
    public string Next()
    {
        if (_pos >= _line.Length)
        {
            _line = _stream.ReadLine().Split(_separator);
            _pos = 0;
        }
        return _line[_pos++];
    }
    public int NextInt()
    {
        return int.Parse(Next());
    }
    public long NextLong()
    {
        return long.Parse(Next());
    }
    public double NextDouble()
    {
        return double.Parse(Next());
    }
    #endregion
    #region convert array
    private int[] ToIntArray(string[] array)
    {
        var result = new int[array.Length];
        for (int i = 0; i < array.Length; i++)
        {
            result[i] = int.Parse(array[i]);
        }

        return result;
    }
    private long[] ToLongArray(string[] array)
    {
        var result = new long[array.Length];
        for (int i = 0; i < array.Length; i++)
        {
            result[i] = long.Parse(array[i]);
        }

        return result;
    }
    private double[] ToDoubleArray(string[] array)
    {
        var result = new double[array.Length];
        for (int i = 0; i < array.Length; i++)
        {
            result[i] = double.Parse(array[i]);
        }

        return result;
    }
    #endregion
    #region get array
    public string[] Array()
    {
        if (_pos >= _line.Length)
            _line = _stream.ReadLine().Split(_separator);
        _pos = _line.Length;
        return _line;
    }
    public int[] IntArray()
    {
        return ToIntArray(Array());
    }
    public long[] LongArray()
    {
        return ToLongArray(Array());
    }
    public double[] DoubleArray()
    {
        return ToDoubleArray(Array());
    }
    #endregion
}

Measured memory_bytes: 136024