let n, k = Scanf.scanf " %d %d" @@ fun a b -> a, b
let memo = Array.make_matrix 3000 3000 @@ -1
let rec comb n k =
  if memo.(n).(k) > -1 then memo.(n).(k)
  else
    (memo.(n).(k) <- if n < k then 0 else if n = k then 1 else if k = 0 then 1
      else (comb (n - 1) (k - 1) + comb (n - 1) k) mod 1_000_000_007;
    memo.(n).(k))
let _ =
  for i = 1 to k do
    Printf.printf "%d\n" @@
      if n - k = i - 1 then 1
      else if n - k < i - 1 then 0
      else comb (k - 1) (i - 1) * comb (n - k + 1) i mod 1_000_000_007 done