#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; void solve() { int N; long long X; cin >> N >> X; long long mn = (long long)N*(N+1)/2; if(X < mn) cout << -1 << endl; else { long long d = X-mn; vector ans(N); for(int i = 0;i < N;i++) ans[i] = N-i; for(int i = 0;i < N;i++) { ans[i] += d/N; if(i < d%N) ans[i]++; } for(int i = 0;i < N;i++) cout << ans[i] << (i+1 == N ? "\n":" "); } } int main() { ios::sync_with_stdio(false); cin.tie(nullptr); int tt = 1; cin >> tt; while(tt--) solve(); }