def INT(): return int(input()) def MI(): return map(int, input().split()) def LI(): return list(map(int, input().split())) T = INT() for _ in range(T): N, X = MI() if N * (N + 1) // 2 > X: print(-1) A = [] for i in range(1, N): A.append(i) X -= i A.append(X) print(*A)