t = int(input()) for _ in range(t): n, x = map(int, input().split()) 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)