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