t = int(input()) for _ in range(t): n, x = map(int, input().split()) mi = (1 + n) * n // 2 if x >= mi: ans = list(range(1, n + 1)) ans[-1] += x - mi print(*ans) else: print(-1)