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 Permutation(x as long, y as long) as long
    dim z as long = 1
    for i as long = x - y + 1 to x
      z *= i
    next
    return z
  end function
    
  ' 階乗
  shared function Factorial(x as long) as long
    dim z as long = 1
    for i as long = 2 to x
      z *= i
    next
    return z
  end Function
    
  ' 組合せ
  shared function Combination(x as long, y as long) as long
    if x < y then return 0
    if x = y then return 1
    if x - y < y then y = x - y
    return Permutation(x, y) / Factorial(y)
  end function
end class