#緑以下K sig = lambda x: x*(x+1)//2 for _ in range(int(input())): N,X = map(int,input().split()) if sig(N) > X: print(-1); continue #t-N+1, t-N+2, ... , t がX以上となる最小のtを探す ok,ng = 10**18,N-1 while abs(ok-ng)>1: mid = (ok+ng)//2 if sig(mid) - sig(mid-N) >= X: ok,ng = mid,ng else: ok,ng = ok,mid A = [i for i in range(ok,ok-N,-1)] diff = sum(A)-X for i in range(diff): A[-i-1]-=1 print(*A)