N,M = map(int,input().split()); MOD = pow(10,9)+7 ans = [] for i in reversed(range(1,M+1)): if N < i*2 - 1: ans.append(0) else: base = N//i amari = N%i temp = pow(base,i-amari,MOD)*pow(base+1,amari,MOD) ans.append(temp) #print(temp,i) ans.reverse() print(*ans,sep="\n")