module Mod = struct
  module type S = sig val modulo : int end
  module Make (S : S) = struct open S
    let modulo = modulo
    let (+) a b = (a + b) mod modulo
    let (-) a b = (a - b + modulo) mod 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 inv a = a ** (modulo-2)
    let (/) a b = a * inv b
  end
end
module M = Mod.Make(struct let modulo = 1000000007 end)

let fact = begin
  let a = Array.make 4020 1 in
  for i = 1 to 4000 do a.(i) <- M.(i * a.(i-1)) done;
  a
end

let comb n k = if n < max 0 k then 0 else M.(fact.(n) / fact.(k) / fact.(n-k))

let () =
  Scanf.scanf "%d %d" @@ fun n k ->
  for i = 1 to k do
    Printf.printf "%d\n" @@
    M.(comb (k-i+i-1) (i-1) * comb (n-k-i+1+i) (i))
  done
