N,M=map(int,input().split()) mod=10**9+7 for i in range(1,M+1): if (i-1)*2>=N: print(0) continue r,q=divmod((N-(i-1)),i) print(pow(r+2,q,mod)*pow(r+1,i-1-q,mod)*r%mod)