mod = 10**9 + 7 def power(n, k): if k == 0: return 1 res = 1 while k: if k % 2: res = res * n % mod n = n * n % mod k //= 2 return res n, m = map(int, input().split()) for i in range(1, m + 1): d, r = divmod(n + 1, i) print(power(d+1, r) * power(d, i-r-1) * (d-1) % mod)