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