N, M = map(int, input().split()) P = 10 ** 9 + 7 for X in range(1, M + 1): if X == 1: print(N) elif X == 2: a = N // 2 + 1 b = N // 2 print(a * b) elif N < 2 * X - 1: print(0) else: m = N - (2 * X - 1) div, mod = divmod(m, X) a = div + 3 b = div + 2 c = div + 1 na = mod nb = X - 1 - mod nc = 1 res = pow(a, na, P) * pow(b, nb, P) * c % P print(res)