#include #define ll long long using namespace std; int main() { int t; cin >> t; for (int i = 0; i < t; i++) { ll n, x; cin >> n >> x; ll d = x - n * (n + 1) / 2; if (d >= 0) { ll p = d / n, q = d % n; for (int j = 1; j <= n; j++) { if (j <= q) cout << n + 1 - j + p + 1; else cout << n + 1 - j + p; if (j == n) cout << endl; else cout << " "; } } else cout << -1 << endl; } }