from collections import * from itertools import * from functools import * from heapq import * import sys,math input = sys.stdin.readline def answer(): N,X = map(int,input().split()) if N*(N+1)//2 >X: print(-1) return res = X - N*(N+1)//2 base,p = divmod(res,N) ans = [base + N-i for i in range(N)] for j in range(p): ans[j] += 1 print(*ans) for _ in range(int(input())): answer()