#include using namespace std; void fast_io() { ios_base::sync_with_stdio(false); cin.tie(nullptr); } void solve() { long long n, x; cin >> n >> x; if (x < n * (n + 1) / 2) { cout << "-1\n"; return; } long long tot = n * (n + 1) / 2; long long k = (x - tot) / n, r = (x - tot) % n; vector ans; if (k == 0) { for (int i = n; i > 0; i--) { ans.push_back(k + i); } } else { for (int i = n; i > n - r; i--) { ans.push_back(k + i + 1); } for (int i = n - r; i > 0; i--) { ans.push_back(k + i); } } for (int i = 0; i < n; i++) { cout << ans[i] << (i == n - 1 ? '\n' : ' '); } } int main() { fast_io(); int t; cin >> t; for (; t--;) { solve(); } }