#include using namespace std; //*/ #include using namespace atcoder; //*/ #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; queue q; for(int i = 1;i <= n;i++){ fps now(n+1,0); int pos = 0; rep(j,k+1)if(i*j <= n) now[i*j] = 1; q.push(now); } while (q.size() >= 2) { fps a = q.front(); q.pop(); fps b = q.front(); q.pop(); fps res = convolution(a,b); while(res.size() > n+1) res.pop_back(); q.push(res); } fps f = q.front(),g = q.front(); // while(k){ // if(k&1) f = convolution(f,g); // while(f.size() > n+1) f.pop_back(); // g = convolution(g,g); // while(g.size() > n+1) g.pop_back(); // k >>= 1; // } for(int i = 1;i <= n;i++) cout << f[i].val() << " "; cout << endl; } int main() { ios::sync_with_stdio(false); cin.tie(nullptr); int t = 1; //cin >> t; rep(testcases,t) solve(); }