n = 10000 acc = [1 for _ in range(n)] for j in range(1,n): acc[j] = acc[j-1] + j + 1 T = int(input()) nx = [None for _ in range(T)] for t in range(T): nx[t] = list(map(int,input().split())) for j in range(T): N,X = nx[j][0],nx[j][1] 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)