import Control.Applicative

m = 10^9 + 7
modm n = mod n m

mul' x y = modm $ modm x * modm y

power' x 0 = 1
power' x 1 = modm x
power' x n
  | (n `mod` 2) == 0 = let i = power' x (n `div` 2) in mul' i i
  | otherwise = mul' x $ power' x (n - 1)

div' x y = mul' x $ power' y (m - 2)

product' xs = foldl mul' 1 xs

factorial' n = product' [1..n]

npr' n r = product' [n - i | i <- [0..(r - 1)]]

ncr' n r = modm $ (npr' n r) `div'` (factorial' r)

main = do
  [n, k] <- (map read). words <$> getLine :: IO [Int]
  mapM_ (putStrLn.show) $ (flip map) [1..k] $ \x -> modm $ product' [(ncr' (n - k + 1) x), (ncr' (k - 1) (x - 1))]
