T=int(input()) for _ in range(T): N,X=map(int,input().split()) if (N+1)*N//2>X: print(-1) continue d=(N+1)*N//2 ans=[i+(X-d)//N for i in range(1,N+1)][::-1] for i in range((X-d)%N): ans[i]+=1 print(*ans)