def sigma(num): return num * (num + 1) // 2 def solve(): N, X = map(int, input().split()) if sigma(N) > X: print(-1) else: ans = list(range(1, N)) ans.append(X - sigma(N-1)) print(*ans) T = int(input()) for _ in range(T): solve()