let m = 1000000000 + 7

let rec apb a b =
  if b = 0 then 1
  else
    (a * apb (a - 1) (b - 1))

let rec powab a b =
  if b = 0 then 1
  else
    (a * powab a (b - 1))

let nCr n r =
  (apb n r / apb r r) mod m
  
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
      if k - i >= 0 && n - k - i + 1 >= 0 then
        let ans = (nCr (k - 1) (k - i) * nCr (n - k + 1) (n - k - i + 1)) mod m in
        (print_int ans;
         print_newline ();
        loop (i + 1))
      else
        (print_endline "0";
         loop (i + 1))
  in loop 1
