n,m=map(int,input().split()) mod=10**9+7 for i in range(1,m+1): if n+1<2*i: print(0) else: x,y=n//i,n%i ans=pow(x,i-y,mod) ans*=pow(x+1,y,mod) print(ans%mod)