public class compiler
  shared sub Main()
    const c 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))
    for i as integer = 1 to k
        dim tmp as long = Combination(n - k + 1, i) * Combination(k - 1, i - 1)
        Console.WriteLine(tmp mod c)
    next
  end sub

  shared function Combination(n as long, m as long) as long
    if m = 0 then return 1
    if n = 0 then return 0
    return n * Combination(n - 1, m - 1) / m
  end function
end class