N, M = map(int, input().split()) MOD = 10**9+7 for X in range(1, M+1): print(pow((N+1)//X+1, (N+1)%X, MOD)*pow((N+1)//X, X-(N+1)%X-1, MOD)*((N+1)//X-1)%MOD)