T = int(input()) for _ in range(T): N, X = map(int, input().split()) s = (N)*(N+1)//2 if X < s: print(-1) continue diff = X-s ans = [] for i in range(1, N+1): ans.append(i) ans[-1] += diff print(*ans)