#include using namespace std; //*/ #include using namespace atcoder; #pragma GCC optimize("Ofast,unroll-loops,no-stack-protector,fast-math") #pragma GCC target("avx2,bmi,bmi2,lzcnt,popcnt") #pragma GCC target("avx,avx2,fma") #pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,avx2,fma") //*/ #define rep(i,n) for(int i=0;i; using ll = long long; using ull = unsigned long long; //*/ template inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; } template inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; } typedef pair pii; typedef pair pll; typedef vector vll; typedef vector vint; random_device rnd; mt19937 rng(rnd()); struct Trie { struct Node { unordered_map to; int cnt; Node(): cnt(0) {} }; vector d; Trie(): d(1) {} void add(const string& s) { int v = 0; for (char c : s) { if (!d[v].to.count(c)) { d[v].to[c] = d.size(); d.push_back(Node()); } v = d[v].to[c]; } d[v].cnt++; } }; using mint = modint998244353; void solve(){ int n,k; cin >> n >> k; using fps = vector; fps sur = {1}; for(int i = 1;i <= n;i++){ fps now(min(n+1,k*i+1),0); int pos = 0; rep(j,k+1)if(i*j <= n) now[i*j] = 1; sur = convolution(sur,now); while(sur.size() > n+1) sur.pop_back(); } for(int i = 1;i <= n;i++) cout << sur[i].val() << " "; cout << endl; } int main() { ios::sync_with_stdio(false); cin.tie(nullptr); int t = 1; //cin >> t; rep(testcases,t) solve(); }