N, K = gets.chomp.split(" ").map(&:to_i)
for i in 1..K
    if i > N - K + 1
        puts 0
    else
        puts (1..(i + 1)).to_a.repeated_combination((N - K + 1 - i)).size * (1..i).to_a.repeated_combination(K-i).size % (10**9 + 7)
    end
end