#include #include #include #include using namespace std; const int MOD = 1e9 + 7; long long repow(long long x, long long y){ if(y == 0) return 1; long long res = 1; while(y > 0){ if(y & 1) res = res * x % MOD; x = x * x % MOD; y >>= 1; } return res; } int main(){ ios::sync_with_stdio(false); cin.tie(nullptr); int N, M; cin >> N >> M; for(int i = 1; i <= M; i++){ if((i - 1) * 2 + 1 > N) cout << 0 << endl; else{ long long t = N; t -= (i - 1) * 2 + 1; long long cnt = t / i; long long ama = t % i; long long ans = 1; ans = ans * repow(2 + cnt, i - 1 - ama) % MOD * repow(3 + cnt, ama) % MOD * (1 + cnt) % MOD; cout << ans << endl; } } }