#include #pragma GCC target("avx2") #pragma GCC optimize("O3") #pragma GCC optimize("unroll-loops") #pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native") #define REP(i,j,n) for(int i=(int)(j);i<=(int)(n);i++) #define endl "\n" using std::cin; using std::cout; int main(){ std::ios::sync_with_stdio(false); std::cin.tie(nullptr); std::cout.tie(nullptr); int N,M; cin>>N>>M; std::vector ans(N+1); REP(i,0,M){ int sum=i*i; REP(j,0,M){ int sum2=sum+(i+j)*j; if(sum2>N) break; REP(k,0,M){ int sum3=sum2+(i+j+k)*k; if(sum3>N) break; REP(l,0,M){ int sum4=sum3+(i+j+k+l)*l; if(sum4>N) break; ans[sum4]++; } } } } REP(i,0,N) cout<