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