//#define _GLIBCXX_DEBUG #include #include #include #include using namespace std; using namespace atcoder; using ll = long long; using mint = modint998244353; const double pi = 3.14159265359879323846264338327950288419; const ll INF = 9 * 1e18; using p = pair; int main() { int t; cin >> t; for(int i = 0; i < t; i++){ ll n, x; cin >> n >> x; vector ans(n); for(int j = 0; j < n; j++){ ans[j] = j+1; x -= j+1; } if(x < 0) cout << -1 << endl; else{ ans[n-1] += x; for(auto v : ans) cout << v << " "; cout << endl; } } }