program main
  implicit none
  integer(8) N,K,ans,i
  !read(*, *) (L(i), i = 1,N)
  read(*, *) N, K
  ans = mod(N-K+1,10**9+7)
  write(*, *) mod(ans,10**9+7)
  if (K /= 1) then
    do i = 2,K
      if(i<=N-K) then
        ans = mod((K-i+1)*(K-i)*ans,10**9+7)
        write(*, *) ans
      else if(i == N-K+1) then
        write(*, *) 1
      else
        write(*, *) 0
      end if
    end do
  end if
end program main
