#include <bits/stdc++.h>
using namespace std;

using lint = long long;

int main() {
    int t;
    cin >> t;
    while (t--) {
        lint n, x;
        cin >> n >> x;
        lint s = (n + 1LL) * n / 2LL;
        if (s > x) {
            cout << -1 << endl;
        } else {
            for (lint i = 1; i <= n; i++) {
                cout << (i < n ? i : i + x - s) << " ";
            }
            cout << endl;
        }
    }
}