N, M = map(int, input().split()) MOD = 10 ** 9 + 7 ans = [0] * M for i in range(1, M + 1): q, r = (N + 1) // i, (N + 1) % i ans[i - 1] = (q - 1) * pow(q, i - r - 1, MOD) * pow(q + 1, r, MOD) % MOD print(*ans, sep="\n")