#include 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 { lint diff = x - s; lint q = diff / n, r = diff % n; for (lint i = n; i >= 1; i--) { cout << (i >= n - r + 1 ? i + q + 1 : i + q) << " "; } cout << endl; } } }