#include <bits/stdc++.h>
#include <atcoder/all>
using ll = long long;
#define MOD 1000000007
#define Mod 998244353
const int MAX = 1000000005;
const long long INF = 1000000000000000005LL;
using namespace std;
using namespace atcoder;



int main() {
    ios::sync_with_stdio(0);cin.tie();
    int T;
    cin >> T;
    while (T--) {
        int N;
        ll X;
        cin >> N >> X;
        if (X < (ll)N*(N+1)/2) {
            cout << -1 << endl;
            continue;
        }
        X -= (ll)N*(N+1)/2;
        ll c = X/N + 1;
        vector<ll> ans(N);
        for (int i = 0; i < N; i++) {
            if (i < X%N) ans[i] = N - i + c;
            else ans[i] = N - i + c - 1;
        }
        for (int i = 0; i < N; i++) cout << ans[i] << (i+1 == N ? "\n" : " ");
    }
}