Public Class compiler
    Shared Sub Main()
        Const p As Long = 1000000007
        Dim input As String() = Console.ReadLine().split(" ")
        Dim n As Long = Long.Parse(input(0))
        Dim k As Long = Long.Parse(input(1))
        Dim m As Modulo = New Modulo(2000, p)
        For i As Integer = 1 To k
            Dim red As Long = m.Ncr(n - k + 1, i)
            Dim blue As Long = m.Ncr(k - 1, i - 1)
            Console.WriteLine(red * blue Mod p)
        Next
    End Sub

    Class Modulo
        Private Factorial As Long()
        Private Inverse As Long()
        Private M As Long

        Public Sub New(size As Integer, m As Long)
            Me.M = m

            ReDim Factorial(0 To size)
            Factorial(0) = 1
            For i As Integer = 1 To size
                Factorial(i) = Factorial(i - 1) * i Mod m
            Next

            ReDim Inverse(0 To size)
            Inverse(size) = Pow(Factorial(size), m - 2) Mod m
            For i As Integer = size To 1 Step -1
                Inverse(i - 1) = Inverse(i) * i Mod m
            Next
        End Sub

        Public Function Pow(x As Long, y As Long) As Long
            If y = 0 Then Return 1
            If y Mod 2 = 0 Then
                Dim d As Long = Pow(x, y / 2)
                Return (d * d) Mod Me.M
            Else
                Return (x * Pow(x, y - 1)) Mod Me.M
            End If
        End Function

        Public Function Ncr(n As Long, r As Long) As Long
            If n < r Then Return 0
            If n = r Then Return 1
            Return ((Factorial(n) * Inverse(r)) Mod Me.M) * Inverse(n - r) Mod Me.M
        End Function
    End Class
End Class
