#include using namespace std; void fast_io() { ios::sync_with_stdio(false); std::cin.tie(nullptr); } void solve() { long long n, x; cin >> n >> x; if (n * (n + 1) / 2 > x) { cout << -1 << endl; return; } vector a(n); for (int i = 0; i < n - 1; i++) { a[i] = i + 1; } a[n - 1] = x - (n * (n - 1) / 2); for (int i = 0; i < n; i++) { cout << a[i] << (i == n - 1 ? "\n" : " "); } } int main() { fast_io(); int t; cin >> t; while (t--) { solve(); } }