t = int(input()) N = [] X = [] for _ in range(t): n, x = map(int, input().split()) N.append(n) X.append(x) for j in range(t): n = N[j] x = X[j] if n == 1: print(x) exit() ans = [] for i in range(1, n): ans.append(i) sum_ans = sum(ans) if x-sum_ans <= ans[-1]: print(-1) else: print(*ans, x-sum_ans)