let modulo = 1_000_000_007
let (+%) a b = (a + b) mod modulo
let (-%) a b = let tmp = (a - b) mod modulo in
               if tmp >= 0 then tmp
               else tmp + modulo
let ( *% ) a b = (a * b) mod modulo
let rec ( **% ) a n =
  if n = 0 then 1
  else if n mod 2 = 1 then a *% a **% (n - 1)
  else let t = a **% (n / 2) in t *% t
let (/%) a b =
  let inv a = a **% (modulo - 2)
  in
  a *% inv b

let m_fact = Array.make 3000 (-1)
let rec fact n =
  if n = 0 then 1
  else
    if m_fact.(n) >= 0 then m_fact.(n)
    else (m_fact.(n) <- n *% fact (n - 1);
          m_fact.(n))
  
let m_nCr = Array.make_matrix 3000 3000 (-1)
let rec nCr n r =
  fact n /% fact (n - r) /% fact r
  
let () =
  let (n, k) = Scanf.sscanf (input_line stdin) "%d %d" (fun a b -> (a, b)) in
  let rec loop i =
    if i > k then ()
    else
      let ans = nCr (n-k+1) i *% nCr (k-1) (i-1) in
      (print_int ans;
       print_newline ();
       loop (i + 1))
  in loop 1
    
