n,m=map(int,input().split()) mod=10**9+7 for x in range(1,m+1): if x==n: print(0) else: if n%x==0: print(pow(n//x,x,mod)) else: hon=n//x amari=n-x*hon if hon>=0: print(pow(hon+1,amari,mod)*pow(hon,x-amari,mod)%mod) else: if x-amari>1: print(0) else: print(pow(hon+1,amari,mod)*pow(hon,x-amari,mod)%mod)