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