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