T=int(input()) for tests in range(T): N,X=map(int,input().split()) if N*(N+1)//2>X: print(-1) continue ANS=list(range(1,N)) ANS.append(X-sum(ANS)) print(*ANS)