import sys input = sys.stdin.readline for _ in range(int(input())): n, x = map(int, input().split()) min_ = n * (n + 1) // 2 if x < min_: print(-1) continue d = x - min_ q, r = divmod(d, n) ANS = [n - i for i in range(n)] for i in range(n): if i < r: ANS[i] += q + 1 else: ANS[i] += q print(*ANS)