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_nCr = Array.make_matrix 3000 3000 (-1)
let rec nCr n r =
  if n < 0  || r < 0 || n < r then 0
  else
    if m_nCr.(n).(r) >= 0 then m_nCr.(n).(r)
    else (m_nCr.(n).(r) <- if n = r then 1
                           else if r = 0 then 1
                           else nCr (n - 1) (r - 1) +% nCr (n - 1) r;
          m_nCr.(n).(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
    
