#include using namespace std; using ll = long long; using P = pair; using T = tuple; // #include // using namespace atcoder; // using mint = modint1000000007; #define rep(i, n) for(ll i = 0; i < n; i++) int main() { cin.tie(nullptr); ios_base::sync_with_stdio(false); ll t; cin >> t; while(t--) { ll n, x; cin >> n >> x; if( x < (1+n)*n/2 ) cout << -1 << endl; else { rep(i,n-1) cout << i+1 << " "; cout << x-(1+n)*n/2+n << endl; } } return 0; }