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