MOD = 10**9 + 7 n, k = map(int, input().split()) inv = pow(pow(2, k, MOD), -1, MOD) r = pow(2, k, n) ans = [0] * n p = (r - 1) % n for _ in range(r): ans[p] += inv p = (p - 2) % n tot = sum(ans) d = 1 - tot d *= pow(n, MOD - 2, MOD) d %= MOD for i in range(1, 2 * n, 2): ans[i % n] += d ans = [a % MOD for a in ans] print(*ans, sep="\n")