#include using namespace std; using ll = long long; #define rep(i,m,n) for(int i=m; i bool chmin(T& a, T b){ if(a > b){a = b; return true;} return false; } template bool chmax(T& a, T b){ if(a < b){a = b; return true;} return false; } int main(){ ios::sync_with_stdio(false); cin.tie(nullptr); int T; scanf("%d", &T); while(T--){ ll N, X; scanf("%lld%lld", &N, &X); ll S = N*(N+1LL)/2LL; if(S > X){ printf("%d\n", -1); }else{ ll Y = X; for(ll i = 1LL; i < N; ++i){ printf("%lld ", i); Y -= i; } printf("%lld\n", Y); } } return 0; }