{-# LANGUAGE OverloadedLists #-}

import           Control.Monad                  ( forM_
                                                , replicateM
                                                )

main :: IO ()
main = do
    [n, k] <- map read . words <$> getLine :: IO [Int]
    let pascals 0 = [1] :: [Integer]
        pascals n = 1: (zipWith (\a b->(a+b)`mod`1000000007) a (tail a) ) ++ [1]
            where a = pascals (n-1) :: [Integer]

    forM_ ([1 .. k] :: [Int]) $ \i -> do
        let b = pascals (k - 1) !! (i - 1)
            r = pascals (n - k + 1) !! i
        print $ b * r `mod` 1000000007
