#include #define chmin(x,y) (x) = min((x),(y)) #define chmax(x,y) (x) = max((x),(y)) #define ld long double using namespace std; using ll = long long; const ll mod = 998244353; using Graph = vector>; const vector dx = {1,0,-1,0}, dy = {0,1,0,-1}; int main(){ int T; cin >> T; while(T--){ ll N,X; cin >> N >> X; if(2 * X < (N+1) * N) cout << -1 << endl; else{ ll M = X - (N*(N+1))/2; ll Q = M / N, R = M % N; vector ans(N); for(int i = 1; i <= N; i++) ans[i-1] = Q + i; reverse(ans.begin(),ans.end()); ans[0] += R; for(int i = 0; i < N; i++){ if(i) cout << " "; cout << ans[i]; } cout << endl; } } }